X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fcommon%2Fpreferences.h;h=09a97d1c3056dd3f6c8f0ce6e85327a43e937c44;hp=bf849bf2686bb5656ce1cb70163c996ecc400e3d;hb=22339c898f8c04af609419f036828323b26f480f;hpb=d4b44cdc2002d9214a0ae2528be8b1cab14c5120 diff --git a/source/common/preferences.h b/source/common/preferences.h index bf849bf..09a97d1 100644 --- a/source/common/preferences.h +++ b/source/common/preferences.h @@ -30,48 +30,48 @@ class XCALPrefThemes private: public: - wxArrayString ThemeName; - wxArrayString ThemeData; + wxArrayString themeName; + wxArrayString themeData; }; class XCALPrefAccounts { private: - wxArrayString AccountName; - wxArrayString AccountType; - wxArrayString AccountAddress; - wxArrayInt AccountPort; - wxArrayInt AccountSSL; - wxArrayString AccountUsername; - wxArrayString AccountPassword; - wxArrayString DirectoryPrefix; - wxArrayString AccountDirectory; - wxArrayLong AccountRefresh; - int AccountsCount; + wxArrayString accountName; + wxArrayString accountType; + wxArrayString accountAddress; + wxArrayInt accountPort; + wxArrayInt accountSSL; + wxArrayString accountUsername; + wxArrayString accountPassword; + wxArrayString directoryPrefix; + wxArrayString accountDirectory; + wxArrayLong accountRefresh; + int accountsCount; public: XCALPrefAccounts(); int GetCount(); - wxString GetAccountName(int AccountNum); - wxString GetAccountType(int AccountNum); - wxString GetAccountAddress(int AccountNum); - int GetAccountPort(int AcconutNum); - bool GetAccountSSL(int AccountNum); - wxString GetAccountUsername(int AccountNum); - wxString GetAccountPassword(int AccountNum); - wxString GetAccountDirectory(int AccountNum); - wxString GetAccountDirPrefix(int AccountNum); - long GetAccountRefresh(int AccountNum); - int AddAccount(wxString NewAccName, - wxString NewAccType, - wxString NewAccAddress, - int NewAccPort, - int NewAccSSL, - wxString NewAccUser, - wxString NewAccPass, - wxString NewAccDirPrefix, - wxString NewAccDir, - long NewAccRefresh + wxString GetAccountName(int accountNum); + wxString GetAccountType(int accountNum); + wxString GetAccountAddress(int accountNum); + int GetAccountPort(int acconutNum); + bool GetAccountSSL(int accountNum); + wxString GetAccountUsername(int accountNum); + wxString GetAccountPassword(int accountNum); + wxString GetAccountDirectory(int accountNum); + wxString GetAccountDirPrefix(int accountNum); + long GetAccountRefresh(int accountNum); + int AddAccount(wxString newAccName, + wxString newAccType, + wxString newAccAddress, + int newAccPort, + int newAccSSL, + wxString newAccUser, + wxString newAccPass, + wxString newAccDirPrefix, + wxString newAccDir, + long newAccRefresh ); }; @@ -84,20 +84,20 @@ class XCALPreferences private: // General Tab - bool SaveWindowPos = FALSE; - wxRect MainWindowData; - bool HideLocalABs = FALSE; + bool saveWindowPos = FALSE; + wxRect mainWindowData; + bool hideLocalABs = FALSE; // Themes tab - bool EnableThemes = FALSE; + bool enableThemes = FALSE; // Accounts tab // General things. - wxString Filename; + wxString filename; public: - XCALPreferences(wxString PreferencesFilename); + XCALPreferences(wxString preferencesFilename); ~XCALPreferences(); XCALPrefAccounts accounts; @@ -106,17 +106,17 @@ public: int WritePreferences(); int ReadPreferences(); - bool GetBoolData(wxString SettingName); - bool SetBoolData(wxString SettingName, bool SettingValue); + bool GetBoolData(wxString settingName); + bool SetBoolData(wxString settingName, bool settingValue); wxRect GetMainWindowData(); - void SetMainWindowData(wxRect WindowData); + void SetMainWindowData(wxRect windowData); //int AddAccount(wxString Name); int GetThemeCount(); - wxString GetThemeData(wxString ThemeName); + wxString GetThemeData(wxString themeName); - int ErrorFlag; + int errorFlag; };