Cleaned up BRoster's friends mess. All access to private BRoster functionality is now done through the newly added BRoster::Private class, which is BRoster's only friend (poor BRoster ;-).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2664 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-02-08 23:29:21 +00:00
parent 1c18696ba4
commit 2ed834e3f6
13 changed files with 246 additions and 172 deletions
+3 -19
View File
@@ -39,17 +39,6 @@ class BList;
class BMessage;
class BNodeInfo;
// TODO: relocate these private prototypes
extern "C" int _init_roster_();
extern "C" int _delete_roster_();
status_t _send_to_roster_(BMessage *message, BMessage *reply, bool mime);
bool _is_valid_roster_mess_(bool mime);
namespace BPrivate {
void init_registrar_roster(BMessenger mainMessenger,
BMessenger mimeMessenger);
}
/*-------------------------------------------------------------*/
/* --------- app_info Struct and Values ------------------------ */
@@ -149,15 +138,10 @@ public:
const char *appSig = NULL) const;
/*----- Private or reserved ------------------------------*/
class Private;
private:
friend class BApplication;
friend class BWindow;
friend class _BAppCleanup_;
friend int _init_roster_();
friend status_t _send_to_roster_(BMessage *, BMessage *, bool);
friend bool _is_valid_roster_mess_(bool);
friend void BPrivate::init_registrar_roster(BMessenger, BMessenger);
friend class GetRecentTester;
friend class Private;
class ArgVector;