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:
Stefano Ceccherini
2005-05-14 13:22:26 +00:00
parent d5b04e50f8
commit cb80e15b3c
3 changed files with 53 additions and 46 deletions
+29
View File
@@ -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
{