
Public Member Functions | |
| delegate void | ContextChangedEventHandler (object sender, Core.Objects.ContextEventArgs e) |
| ApplicationContext () | |
| byte[] | Decrypt (byte[] data) |
| byte[] | Encrypt (byte[] data) |
| bool | InitializeRSA () |
| Boolean | Initialize () |
| void | RaiseContextChanged () |
| object | GetContextObject (String key) |
| void | SetContextObject (String key, object obj) |
| Boolean | Reset () |
| Boolean | resetConfig () |
| void | LogDebug (String message) |
| void | LogError (String message) |
| void | LogWarning (String message) |
| void | Log (String message) |
| void | Log (int level, String message) |
| void | ApplyPowerStatus (int power_level, int backup_level) |
| void | Unsetup () |
| void | Shutdown (Boolean confirm) |
| void | Shutdown (Boolean confirm, String message) |
| void | Shutdown () |
| void | Destroy () |
Static Public Member Functions | |
| static Core.Interfaces.IApplicationContext | GetInstance () |
| static Core.Interfaces.IApplicationContext | GetInstance (bool use_database) |
| static Core.Interfaces.IApplicationContext | GetInstance (String context_path, String log_name) |
| static Core.Interfaces.IApplicationContext | GetInstance (String context_path, String log_name, bool use_database) |
Public Attributes | |
| const String | FILE_CONFIG_NAME = "ApplicationConfiguration.xml" |
| const String | FILE_STATUS_NAME = "ApplicationStatus.xml" |
| const String | CONFIG_PATH = "Config" |
| const String | LOG_PATH = "Logs" |
| const int | POWER_MODE_UNKNOWN = 0 |
| const int | POWER_MODE_FULL = 1 |
| const int | POWER_MODE_HALF = 2 |
| const int | POWER_MODE_LOW = 3 |
| const int | POWER_MODE_WARNING = 4 |
| const int | POWER_MODE_CRITICAL = 5 |
| const String | SERVICE_NAME_MESSENGER = "MessengerService" |
| const String | SERVICE_NAME_STATUS = "StatusService" |
Static Public Attributes | |
| static Core.Interfaces.IApplicationContext | Singleton = null |
Protected Member Functions | |
| virtual void | OnContextChanged (Objects.ContextEventArgs e) |
Properties | |
| String | InstallationId [get] |
| SqlConnection | ConnectionXX [get] |
| String | ConnectionString [get, set] |
| Core.Data.DbFactory.CONNECTION_TYPE | DatabaseType [get, set] |
| bool | UseDatabase [get, set] |
| bool | UseDatabaseLog [get, set] |
| bool | HardenRSA [get, set] |
| bool | ConsoleMode [get, set] |
| String | PreferredLogName [get, set] |
| Core.Interfaces.ISecurityManager | SecurityManager [get] |
| RSACryptoServiceProvider | RSARemove [get] |
| String | RSAContainPath [get, set] |
| String | RSAContainName [get, set] |
| int | BatteryStatus [get, set] |
| int | BackupBatteryStatus [get, set] |
| int | PowerMode [get] |
| String | DeviceId [get, set] |
| String | DeviceName [get, set] |
| Core.Interfaces.IRuntime | ComponentRuntime [get] |
| Core.Interfaces.IConfig | ApplicationStatus [get] |
| Core.Interfaces.IConfig | ApplicationConfig [get] |
| int | ReadyState [get] |
| String | StartupPath [get, set] |
| Core.Util.Logger.AeiLog | Logger [get] |
Events | |
| ContextChangedEventHandler | ContextChanged |
Private Attributes | |
| bool | harden_rsa = false |
| Hashtable | context_objects = new Hashtable() |
| String | rsa_contain_name = "CoreBlock" |
| String | rsa_contain_path = null |
| RSACryptoServiceProvider | rsa = null |
| Core.Interfaces.ISecurityManager | security_manager = null |
| int | ready_state = 0 |
| String | startup_path = null |
| Core.Interfaces.IConfig | application_status = null |
| Core.Interfaces.IConfig | application_config = null |
| Core.Interfaces.IRuntime | component_runtime = null |
| Core.Util.Logger.AeiLog | logger = null |
| String | device_id = null |
| String | device_name = null |
| int | battery_status = 0 |
| int | backup_battery_status = 0 |
| int | power_mode = 0 |
| bool | console_mode = false |
| Core.Objects.Runnables.MessengerRunnable | messenger_service = null |
| String | preferred_log_name = null |
| bool | use_database = false |
| bool | use_database_log = false |
| Core.Data.DbFactory.CONNECTION_TYPE | database_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN |
| String | connection_string = null |
| String | installation_id = null |
| Core.ApplicationContext.ApplicationContext | ( | ) |
Correct path reflection for partial protocol as seen with Mono 2.2 on Ubuntu 8.10 file:/dir/ -> file:///dir
| delegate void Core.ApplicationContext.ContextChangedEventHandler | ( | object | sender, | |
| Core.Objects.ContextEventArgs | e | |||
| ) |
| static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance | ( | ) | [static] |
| static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance | ( | bool | use_database | ) | [static] |
| static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance | ( | String | context_path, | |
| String | log_name | |||
| ) | [static] |
| static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance | ( | String | context_path, | |
| String | log_name, | |||
| bool | use_database | |||
| ) | [static] |
| byte [] Core.ApplicationContext.Decrypt | ( | byte[] | data | ) |
Implements Core.Interfaces.IApplicationContext.
| byte [] Core.ApplicationContext.Encrypt | ( | byte[] | data | ) |
Implements Core.Interfaces.IApplicationContext.
| bool Core.ApplicationContext.InitializeRSA | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| Boolean Core.ApplicationContext.Initialize | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| virtual void Core.ApplicationContext.OnContextChanged | ( | Objects.ContextEventArgs | e | ) | [protected, virtual] |
| void Core.ApplicationContext.RaiseContextChanged | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| object Core.ApplicationContext.GetContextObject | ( | String | key | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.SetContextObject | ( | String | key, | |
| object | obj | |||
| ) |
Implements Core.Interfaces.IApplicationContext.
| Boolean Core.ApplicationContext.Reset | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| Boolean Core.ApplicationContext.resetConfig | ( | ) |
| void Core.ApplicationContext.LogDebug | ( | String | message | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.LogError | ( | String | message | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.LogWarning | ( | String | message | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Log | ( | String | message | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Log | ( | int | level, | |
| String | message | |||
| ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.ApplyPowerStatus | ( | int | power_level, | |
| int | backup_level | |||
| ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Unsetup | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Shutdown | ( | Boolean | confirm | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Shutdown | ( | Boolean | confirm, | |
| String | message | |||
| ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Shutdown | ( | ) |
Implements Core.Interfaces.IApplicationContext.
| void Core.ApplicationContext.Destroy | ( | ) |
Implements Core.Interfaces.IApplicationContext.
bool Core.ApplicationContext.harden_rsa = false [private] |
Hashtable Core.ApplicationContext.context_objects = new Hashtable() [private] |
String Core.ApplicationContext.rsa_contain_name = "CoreBlock" [private] |
String Core.ApplicationContext.rsa_contain_path = null [private] |
RSACryptoServiceProvider Core.ApplicationContext.rsa = null [private] |
Core.Interfaces.ISecurityManager Core.ApplicationContext.security_manager = null [private] |
Core.Interfaces.IApplicationContext Core.ApplicationContext.Singleton = null [static] |
| const String Core.ApplicationContext.FILE_CONFIG_NAME = "ApplicationConfiguration.xml" |
| const String Core.ApplicationContext.FILE_STATUS_NAME = "ApplicationStatus.xml" |
| const String Core.ApplicationContext.CONFIG_PATH = "Config" |
| const String Core.ApplicationContext.LOG_PATH = "Logs" |
int Core.ApplicationContext.ready_state = 0 [private] |
String Core.ApplicationContext.startup_path = null [private] |
Core.Interfaces.IConfig Core.ApplicationContext.application_status = null [private] |
Core.Interfaces.IConfig Core.ApplicationContext.application_config = null [private] |
Core.Interfaces.IRuntime Core.ApplicationContext.component_runtime = null [private] |
Core.Util.Logger.AeiLog Core.ApplicationContext.logger = null [private] |
String Core.ApplicationContext.device_id = null [private] |
String Core.ApplicationContext.device_name = null [private] |
int Core.ApplicationContext.battery_status = 0 [private] |
int Core.ApplicationContext.backup_battery_status = 0 [private] |
int Core.ApplicationContext.power_mode = 0 [private] |
bool Core.ApplicationContext.console_mode = false [private] |
| const int Core.ApplicationContext.POWER_MODE_UNKNOWN = 0 |
| const int Core.ApplicationContext.POWER_MODE_FULL = 1 |
| const int Core.ApplicationContext.POWER_MODE_HALF = 2 |
| const int Core.ApplicationContext.POWER_MODE_LOW = 3 |
| const int Core.ApplicationContext.POWER_MODE_WARNING = 4 |
| const int Core.ApplicationContext.POWER_MODE_CRITICAL = 5 |
| const String Core.ApplicationContext.SERVICE_NAME_MESSENGER = "MessengerService" |
| const String Core.ApplicationContext.SERVICE_NAME_STATUS = "StatusService" |
String Core.ApplicationContext.preferred_log_name = null [private] |
bool Core.ApplicationContext.use_database = false [private] |
bool Core.ApplicationContext.use_database_log = false [private] |
Core.Data.DbFactory.CONNECTION_TYPE Core.ApplicationContext.database_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN [private] |
String Core.ApplicationContext.connection_string = null [private] |
String Core.ApplicationContext.installation_id = null [private] |
String Core.ApplicationContext.InstallationId [get] |
SqlConnection Core.ApplicationContext.ConnectionXX [get] |
String Core.ApplicationContext.ConnectionString [get, set] |
Implements Core.Interfaces.IApplicationContext.
Core.Data.DbFactory.CONNECTION_TYPE Core.ApplicationContext.DatabaseType [get, set] |
Implements Core.Interfaces.IApplicationContext.
bool Core.ApplicationContext.UseDatabase [get, set] |
Implements Core.Interfaces.IApplicationContext.
bool Core.ApplicationContext.UseDatabaseLog [get, set] |
Implements Core.Interfaces.IApplicationContext.
bool Core.ApplicationContext.HardenRSA [get, set] |
Implements Core.Interfaces.IApplicationContext.
bool Core.ApplicationContext.ConsoleMode [get, set] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.PreferredLogName [get, set] |
Implements Core.Interfaces.IApplicationContext.
Core.Interfaces.ISecurityManager Core.ApplicationContext.SecurityManager [get] |
Implements Core.Interfaces.IApplicationContext.
RSACryptoServiceProvider Core.ApplicationContext.RSARemove [get] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.RSAContainPath [get, set] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.RSAContainName [get, set] |
Implements Core.Interfaces.IApplicationContext.
int Core.ApplicationContext.BatteryStatus [get, set] |
Implements Core.Interfaces.IApplicationContext.
int Core.ApplicationContext.BackupBatteryStatus [get, set] |
Implements Core.Interfaces.IApplicationContext.
int Core.ApplicationContext.PowerMode [get] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.DeviceId [get, set] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.DeviceName [get, set] |
Implements Core.Interfaces.IApplicationContext.
Core.Interfaces.IRuntime Core.ApplicationContext.ComponentRuntime [get] |
Implements Core.Interfaces.IApplicationContext.
Core.Interfaces.IConfig Core.ApplicationContext.ApplicationStatus [get] |
Implements Core.Interfaces.IApplicationContext.
Core.Interfaces.IConfig Core.ApplicationContext.ApplicationConfig [get] |
Implements Core.Interfaces.IApplicationContext.
int Core.ApplicationContext.ReadyState [get] |
Implements Core.Interfaces.IApplicationContext.
String Core.ApplicationContext.StartupPath [get, set] |
Implements Core.Interfaces.IApplicationContext.
Core.Util.Logger.AeiLog Core.ApplicationContext.Logger [get] |
Implements Core.Interfaces.IApplicationContext.
| ContextChangedEventHandler Core.ApplicationContext.ContextChanged |