HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_LMHost.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Action (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UT_LMHost_h__
13 #define __UT_LMHost_h__
14 
15 #include "UT_API.h"
16 
17 #define UT_SESI_LMHOST_REGISTRY_VALUE \
18  "LicenseServer"
19 #define UT_SESI_LMHOST_ENVVAR \
20  "SESI_LMHOST"
21 
22 class UT_String;
23 class UT_StringArray;
24 
26 {
27 public:
28  static void getLMHost(UT_String &host_str, bool canUseHserver);
29  static void getLMHosts(UT_StringArray &hosts, bool canUseHserver);
30 
31  // if this flag is true, setLMHost will always set the host in its
32  // temporary static variable. Ie, when this flag is true, setLMHost
33  // will not set the hserver, environment variable, or write to a file.
34  static void setLMHostAlwaysAsTemp(bool flag);
35  static bool getLMHostAlwaysAsTemp();
36 
37  // NB: doHserverToo is disregarded when AlwaysAsTemp is true
38  static void setLMHost(const UT_String &host, bool doHserverToo);
39  static void setLMHosts(const UT_StringArray &host, bool doHserverToo);
40 
41 
42  static void parseHostString(const char *host_str, UT_StringArray &hosts);
43  static void packHostString(const UT_StringArray &hosts,
44  UT_String &host_str);
45 };
46 
47 #endif
#define UT_API
Definition: UT_API.h:13
png_infop png_uint_32 flag
Definition: png.h:2242