- headless server now supports lan option

This commit is contained in:
Mark Vejvoda
2012-11-09 21:50:01 +00:00
parent 8793b3400b
commit e3a7aedd5c
5 changed files with 31 additions and 6 deletions

View File

@@ -28,6 +28,15 @@ using namespace Shared::Platform;
namespace Shared { namespace Util {
enum GlobalStaticFlagTypes {
gsft_none = 0x00,
gsft_lan_mode = 0x01,
//gsft_xx = 0x02
//gsft__xx = 0x04,
//gsft__xx = 0x08,
//gsft__xx = 0x10,
};
class GlobalStaticFlags {
public:
static bool getIsNonGraphicalModeEnabled() {
@@ -38,8 +47,15 @@ public:
isNonGraphicalMode = value;
}
static void setFlags(uint64 flagsValue) { flags = flagsValue; }
static uint64 getFlags() { return flags; }
static void setFlag(GlobalStaticFlagTypes flag) { flags |= flag; }
static bool isFlagSet(GlobalStaticFlagTypes flag) { return (flags & flag) == flag; }
protected:
static bool isNonGraphicalMode;
static uint64 flags;
};
class SystemFlags