17 |
namespace AnywhereTS |
namespace AnywhereTS |
18 |
{ |
{ |
19 |
public static class ProSupport |
public static class ProSupport |
20 |
{ |
{ |
21 |
// File names |
// File names |
22 |
public const string strHostsFilename = "hosts"; // The name of the thin clients host file. |
public const string strHostsFilename = "hosts"; // The name of the thin clients host file. |
23 |
public const string strNetworkConfigFilename = "network"; // Name of the Thinstation common config file in the TFTP root directory. |
public const string strNetworkConfigFilename = "network"; // Name of the Thinstation common config file in the TFTP root directory. |
27 |
// Registry keys |
// Registry keys |
28 |
public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database |
public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database |
29 |
public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory |
public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory |
30 |
public const string strRegDatabaseServer = "AnywhereTSServer"; // Reg key for database server |
public const string strRegAnywhereTSServer = "ATSServer"; // Reg key for database server |
31 |
|
public const string strRegDatabaseServer = "DatabaseServer"; // Reg key for database server |
32 |
|
public const string strRegDatabaseInstance = "DatabaseInstance"; // Reg key for database server |
33 |
public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode.. |
public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode.. |
34 |
|
|
35 |
// Database constants |
// Database constants |
36 |
public const string DEFAULT_RECORD_MAC = "Default "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients |
public const string DEFAULT_RECORD_MAC = "Default "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients |
37 |
|
|
42 |
public static atsDataSetTableAdapters.AppInfoTableAdapter appInfoTableAdapter; // The AnywhereTS application data adapter for the AppInfo table. Only this adapter should be used. |
public static atsDataSetTableAdapters.AppInfoTableAdapter appInfoTableAdapter; // The AnywhereTS application data adapter for the AppInfo table. Only this adapter should be used. |
43 |
|
|
44 |
public static string strAnywhereTSServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel |
public static string strAnywhereTSServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel |
45 |
|
public static string strDatabaseServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel |
46 |
|
public static string strDatabaseInstance; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel |
47 |
|
|
48 |
// Directories |
// Directories |
49 |
public static string strDatabasePath; // The directory where the database file is located. |
public static string strDatabasePath; // The directory where the database file is located. |
50 |
public static string strDestDir; // Destination directory for client files in unmanaged mode. |
public static string strDestDir; // Destination directory for client files in unmanaged mode. |
51 |
|
|
52 |
// Constructor Initializes the global variables |
// Constructor Initializes the global variables |
53 |
static ProSupport() |
static ProSupport() |
54 |
{ |
{ |
55 |
// Initiate variables from registry |
// Initiate variables from registry |
56 |
|
strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegAnywhereTSServer); |
57 |
strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir); |
strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir); |
58 |
strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir); |
strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir); |
59 |
strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer); |
strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer); |
60 |
|
strDatabaseInstance = ATSGlobals.GetATSRegValueString(strRegDatabaseInstance); |
61 |
} |
} |
62 |
|
|
63 |
// Loook up local IP for computer |
// Loook up local IP for computer |