Files
haiku-beta6/headers/private/app/RosterPrivate.h
T

86 lines
2.4 KiB
C++
Raw Normal View History

2006-02-16 17:37:36 +00:00
/*
* Copyright 2001-2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ingo Weinhold ([email protected])
*/
#ifndef _ROSTER_PRIVATE_H
#define _ROSTER_PRIVATE_H
2006-02-16 17:37:36 +00:00
#include <Messenger.h>
#include <Roster.h>
2006-02-16 17:37:36 +00:00
class BRoster::Private {
2006-02-16 17:37:36 +00:00
public:
Private() : fRoster(const_cast<BRoster*>(be_roster)) {}
Private(BRoster &roster) : fRoster(&roster) {}
Private(BRoster *roster) : fRoster(roster) {}
2006-02-16 17:37:36 +00:00
void SetTo(BMessenger mainMessenger, BMessenger mimeMessenger);
2006-02-16 17:37:36 +00:00
status_t SendTo(BMessage *message, BMessage *reply, bool mime);
bool IsMessengerValid(bool mime) const;
2006-02-16 17:37:36 +00:00
status_t ShutDown(bool reboot, bool confirm, bool synchronous)
{ return fRoster->_ShutDown(reboot, confirm, synchronous); }
2005-07-03 17:04:47 +00:00
2006-02-16 17:37:36 +00:00
// needed by BApplication
2006-02-16 17:37:36 +00:00
status_t AddApplication(const char *mimeSig, const entry_ref *ref,
uint32 flags, team_id team, thread_id thread,
port_id port, bool fullReg, uint32 *token,
team_id *otherTeam) const
{ return fRoster->_AddApplication(mimeSig, ref, flags, team, thread,
port, fullReg, token, otherTeam); }
2006-02-16 17:37:36 +00:00
status_t SetSignature(team_id team, const char *mimeSig) const
{ return fRoster->_SetSignature(team, mimeSig); }
2006-02-16 17:37:36 +00:00
status_t CompleteRegistration(team_id team, thread_id thread,
port_id port) const
{ return fRoster->_CompleteRegistration(team, thread, port); }
status_t IsAppRegistered(const entry_ref *ref, team_id team,
uint32 token, bool *preRegistered, app_info *info) const
{ return fRoster->_IsAppRegistered(ref, team, token, preRegistered,
info); }
2006-02-16 17:37:36 +00:00
status_t RemoveApp(team_id team) const
{ return fRoster->_RemoveApp(team); }
2006-02-16 17:37:36 +00:00
// needed by GetRecentTester
2006-02-16 17:37:36 +00:00
void AddToRecentApps(const char *appSig) const
{ fRoster->_AddToRecentApps(appSig); }
2006-02-16 17:37:36 +00:00
void ClearRecentDocuments() const
{ fRoster->_ClearRecentDocuments(); }
2006-02-16 17:37:36 +00:00
void ClearRecentFolders() const
{ fRoster->_ClearRecentFolders(); }
2006-02-16 17:37:36 +00:00
void ClearRecentApps() const
{ fRoster->_ClearRecentApps(); }
2006-02-16 17:37:36 +00:00
void LoadRecentLists(const char *file) const
{ fRoster->_LoadRecentLists(file); }
2006-02-16 17:37:36 +00:00
void SaveRecentLists(const char *file) const
{ fRoster->_SaveRecentLists(file); }
// needed by the debug server
void ApplicationCrashed(team_id team) const
{ fRoster->_ApplicationCrashed(team); }
2006-02-16 17:37:36 +00:00
static void InitBeRoster();
static void DeleteBeRoster();
2006-02-16 17:37:36 +00:00
private:
BRoster *fRoster;
};
#endif // _ROSTER_PRIVATE_H