ServerWindow is no more a ServerApp's friend. Some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12663 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1956,6 +1956,14 @@ ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
ServerApp::CountBitmaps() const
|
||||
{
|
||||
return fBitmapList ? fBitmapList->CountItems() : 0;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\brief Looks up a ServerApp's ServerBitmap in its list
|
||||
\param token ID token of the bitmap to find
|
||||
@@ -1975,6 +1983,27 @@ ServerApp::FindBitmap(int32 token) const
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
ServerApp::CountPictures() const
|
||||
{
|
||||
return fPictureList ? fPictureList->CountItems() : 0;
|
||||
}
|
||||
|
||||
|
||||
ServerPicture *
|
||||
ServerApp::FindPicture(int32 token) const
|
||||
{
|
||||
ServerPicture *picture;
|
||||
for (int32 i = 0; i < fPictureList->CountItems(); i++) {
|
||||
picture = static_cast<ServerPicture *>(fPictureList->ItemAt(i));
|
||||
if (picture && picture->GetToken() == token)
|
||||
return picture;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
team_id
|
||||
ServerApp::ClientTeamID() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user