
* The Decorator are temporarily using ui_color() - this needs to be changed to use the DesktopSettings (when the decorator stuff gets refactored); right now, the colors are fixed. * Added B_WINDOW_TEXT_COLOR, B_WINDOW_INACTIVE_TAB_COLOR, and B_WINDOW_INACTIVE_TEXT_COLOR to the UI colors, B_WINDOW_TAB_COLOR is no longer deprecated. Note, however, that not every decorator may use these colors. * Removed unused and wrong (ie. hard-coded paths) stuff from ServerConfig.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17236 a95241bf-73f2-0310-859d-f6bbb57e9c96
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2001-2005, Haiku, Inc.
|
|
* Distributed under the terms of the MIT license.
|
|
*
|
|
* Author: DarkWyrm <bpmagic@columbus.rr.com>
|
|
*/
|
|
#ifndef APP_SERVER_H
|
|
#define APP_SERVER_H
|
|
|
|
|
|
#include <OS.h>
|
|
#include <Locker.h>
|
|
#include <List.h>
|
|
#include <Application.h>
|
|
#include <Window.h>
|
|
#include <String.h>
|
|
#include <ObjectList.h>
|
|
#include <TokenSpace.h>
|
|
|
|
#include "ServerConfig.h"
|
|
#include "MessageLooper.h"
|
|
|
|
class ServerApp;
|
|
class BitmapManager;
|
|
class Desktop;
|
|
|
|
using BPrivate::BTokenSpace;
|
|
|
|
namespace BPrivate {
|
|
class PortLink;
|
|
};
|
|
|
|
|
|
class AppServer : public MessageLooper {
|
|
public:
|
|
AppServer();
|
|
virtual ~AppServer();
|
|
|
|
void RunLooper();
|
|
virtual port_id MessagePort() const { return fMessagePort; }
|
|
|
|
private:
|
|
virtual void _DispatchMessage(int32 code, BPrivate::LinkReceiver& link);
|
|
|
|
Desktop* _CreateDesktop(uid_t userID);
|
|
Desktop* _FindDesktop(uid_t userID);
|
|
|
|
void _LaunchInputServer();
|
|
|
|
private:
|
|
port_id fMessagePort;
|
|
|
|
BObjectList<Desktop> fDesktops;
|
|
BLocker fDesktopLock;
|
|
};
|
|
|
|
extern BitmapManager *gBitmapManager;
|
|
extern port_id gAppServerPort;
|
|
|
|
#endif /* APP_SERVER_H */
|