summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/mirandasettings.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
commit3576b67db9fa0a3d8d5c1747cc3560504d31d125 (patch)
treef6a6cb9916cbf1aab83bac572fec8822f6ad065e /plugins/HistoryStats/src/mirandasettings.h
parent73e6231455372205e912963083624aaa371bab0b (diff)
- adaptation for standard Windows ways of handling Unicode;
- obsoleted code removed; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@8407 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/mirandasettings.h')
-rw-r--r--plugins/HistoryStats/src/mirandasettings.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/HistoryStats/src/mirandasettings.h b/plugins/HistoryStats/src/mirandasettings.h
index 827c9f4ac5..e58b379fad 100644
--- a/plugins/HistoryStats/src/mirandasettings.h
+++ b/plugins/HistoryStats/src/mirandasettings.h
@@ -22,7 +22,7 @@ private:
ext::a::string m_strModule;
private:
- static int enumSettingsProc(const mu_ansi* szSetting, LPARAM lParam);
+ static int enumSettingsProc(const char* szSetting, LPARAM lParam);
public:
// constructor
@@ -32,29 +32,29 @@ public:
MCONTACT getContact() const { return m_hContact; }
void setContact(MCONTACT hContact) { m_hContact = hContact; }
const ext::a::string& getModule() const { return m_strModule; }
- void setModule(const mu_ansi* module) { m_strModule = module; }
+ void setModule(const char* module) { m_strModule = module; }
// reading
- bool readBool(const mu_ansi* szSetting, bool bDefault) const;
- int readByte(const mu_ansi* szSetting, int bDefault) const;
- int readWord(const mu_ansi* szSetting, int wDefault) const;
- int readDWord(const mu_ansi* szSetting, int dwDeault) const;
- ext::string readStr(const mu_ansi* szSetting, const mu_text* szDefault) const;
- ext::string readStrDirect(const mu_ansi* szSetting, const mu_text* szDefault) const;
- void readTree(const mu_ansi* szSetting, const mu_text* szDefault, SettingsTree& value) const;
+ bool readBool(const char* szSetting, bool bDefault) const;
+ int readByte(const char* szSetting, int bDefault) const;
+ int readWord(const char* szSetting, int wDefault) const;
+ int readDWord(const char* szSetting, int dwDeault) const;
+ ext::string readStr(const char* szSetting, const TCHAR* szDefault) const;
+ ext::string readStrDirect(const char* szSetting, const TCHAR* szDefault) const;
+ void readTree(const char* szSetting, const TCHAR* szDefault, SettingsTree& value) const;
// writing
- void writeBool(const mu_ansi* szSetting, bool bValue) const;
- void writeByte(const mu_ansi* szSetting, int bValue) const;
- void writeWord(const mu_ansi* szSetting, int wValue) const;
- void writeDWord(const mu_ansi* szSetting, int dwValue) const;
- void writeStr(const mu_ansi* szSetting, const mu_text* szValue) const;
- void writeStrDirect(const mu_ansi* szSetting, const mu_text* szValue) const;
- void writeTree(const mu_ansi* szSetting, const SettingsTree& value) const;
+ void writeBool(const char* szSetting, bool bValue) const;
+ void writeByte(const char* szSetting, int bValue) const;
+ void writeWord(const char* szSetting, int wValue) const;
+ void writeDWord(const char* szSetting, int dwValue) const;
+ void writeStr(const char* szSetting, const TCHAR* szValue) const;
+ void writeStrDirect(const char* szSetting, const TCHAR* szValue) const;
+ void writeTree(const char* szSetting, const SettingsTree& value) const;
// misc functions
- bool settingExists(const mu_ansi* szSetting) const;
- bool delSetting(const mu_ansi* szSetting);
+ bool settingExists(const char* szSetting) const;
+ bool delSetting(const char* szSetting);
// enumeration
void enumSettings(SetInserter& insertIterator);