* Radically culled the list of BApplication friends and introduced a

BApplication::Private class for accessing relevant parts.
* Pulled the app server connection and IK initialization out of
  InitData() into a new method _InitGUIContext() and introduced a private
  constructor that allows to avoid this initialization. This will be used
  for servers that don't have GUI respectively want to init the app server
  connection later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13312 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-06-28 12:55:16 +00:00
parent ecf3bc3eb4
commit c8e7f53e08
5 changed files with 93 additions and 46 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
#include <Application.h>
#include <Locker.h>
#include <ApplicationPrivate.h>
#include <AppServerLink.h>
@@ -33,8 +34,8 @@ AppServerLink::AppServerLink(void)
// if there is no be_app, we can't do a whole lot, anyway
if (be_app) {
fReceiver = &be_app->fServerLink->Receiver();
fSender = &be_app->fServerLink->Sender();
fReceiver = &BApplication::Private::ServerLink()->Receiver();
fSender = &BApplication::Private::ServerLink()->Sender();
} else {
debugger("You need to have a valid app_server connection first!");
}