X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Fpreferences.h;h=09a97d1c3056dd3f6c8f0ce6e85327a43e937c44;hb=0c44eca2593eb8434505dbc17d385f7ea2619576;hp=dd5c5c6098acf4d344930889f9b4ddad2fcae3fe;hpb=5b1cce07faa46fa19248ee845ff509d669b967cd;p=xestiacalendar%2F.git diff --git a/source/common/preferences.h b/source/common/preferences.h index dd5c5c6..09a97d1 100644 --- a/source/common/preferences.h +++ b/source/common/preferences.h @@ -1,6 +1,6 @@ // preferences.h - Preferences subroutines header. // -// (c) 2012-2016 Xestia Software Development. +// (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Calendar. Originally from Xestia Address Book. // @@ -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; };