00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __UT_LMHost_h__
00021 #define __UT_LMHost_h__
00022
00023 #include "UT_API.h"
00024
00025 #define UT_SESI_LMHOST_REGISTRY_VALUE \
00026 "LicenseServer"
00027 #define UT_SESI_LMHOST_ENVVAR \
00028 "SESI_LMHOST"
00029
00030 class UT_String;
00031 class UT_StringArray;
00032
00033 class UT_API UT_LMHost
00034 {
00035 public:
00036 static void getLMHost(UT_String &host_str, bool canUseHserver);
00037 static void getLMHosts(UT_StringArray &hosts, bool canUseHserver);
00038
00039
00040
00041
00042 static void setLMHostAlwaysAsTemp(bool flag);
00043 static bool getLMHostAlwaysAsTemp();
00044
00045
00046 static void setLMHost(const UT_String &host, bool doHserverToo);
00047 static void setLMHosts(const UT_StringArray &host, bool doHserverToo);
00048
00049
00050 static void parseHostString(const char *host_str, UT_StringArray &hosts);
00051 static void packHostString(const UT_StringArray &hosts,
00052 UT_String &host_str);
00053 };
00054
00055 #endif