2 * Copyright 2001-2015, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
6 * DarkWyrm <bpmagic@columbus.rr.com>
7 * Axel Dörfler, axeld@pinc-software.de
13 #include <Application.h>
16 #include <ObjectList.h>
21 #include "MessageLooper.h"
22 #include "ServerConfig.h"
25 #ifndef HAIKU_TARGET_PLATFORM_LIBBE_TEST
27 # define SERVER_BASE BServer
29 # include "TestServerLoopAdapter.h"
30 # define SERVER_BASE TestServerLoopAdapter
39 class AppServer
: public SERVER_BASE
{
41 AppServer(status_t
* status
);
44 virtual void MessageReceived(BMessage
* message
);
45 virtual bool QuitRequested();
48 Desktop
* _CreateDesktop(uid_t userID
,
49 const char* targetScreen
);
50 virtual Desktop
* _FindDesktop(uid_t userID
,
51 const char* targetScreen
);
53 void _LaunchInputServer();
56 BObjectList
<Desktop
> fDesktops
;
61 extern BitmapManager
*gBitmapManager
;
62 extern port_id gAppServerPort
;
65 #endif /* APP_SERVER_H */