diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-07 12:10:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-07 12:10:19 +0000 |
commit | 52a0c6e6efb7014b87552097c13ceea6175ce377 (patch) | |
tree | dc4d3e62d27d6538672c9e80166ed945cf659a2f /plugins/Folders/src/folderItem.h | |
parent | 97ecd2b560357a1c7756d7b93d0b820f63071080 (diff) |
folders -> TCHAR
git-svn-id: http://svn.miranda-ng.org/main/trunk@1389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Folders/src/folderItem.h')
-rw-r--r-- | plugins/Folders/src/folderItem.h | 58 |
1 files changed, 24 insertions, 34 deletions
diff --git a/plugins/Folders/src/folderItem.h b/plugins/Folders/src/folderItem.h index ab2c1bbd38..89731b32be 100644 --- a/plugins/Folders/src/folderItem.h +++ b/plugins/Folders/src/folderItem.h @@ -35,44 +35,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define FOLDER_SUCCESS 1
#define FOLDER_FAILURE 0
-class CFolderItem{
- protected:
- char szSection[FOLDERS_NAME_MAX_SIZE];
- char szName[FOLDERS_NAME_MAX_SIZE]; //don't forget to modify in m_folders.h
- union{
- char *szFormat;
- wchar_t *szFormatW;
- };
- union{
- char *szOldFormat;
- wchar_t *szOldFormatW;
- };
- DWORD flags;
+class CFolderItem
+{
+ char *m_szSection;
+ char *m_szName;
+ TCHAR *m_tszFormat, *m_tszOldFormat;
+ DWORD m_flags;
- void GetDataFromDatabase(const char *szNotFound);
- void WriteDataToDatabase();
+ void GetDataFromDatabase(const TCHAR *szNotFound);
+ void WriteDataToDatabase();
- int FolderCreateDirectory(int showFolder = 0);
- int FolderDeleteOldDirectory(int showFolder = 0);
+ int FolderCreateDirectory(int showFolder = 0);
+ int FolderDeleteOldDirectory(int showFolder = 0);
+public:
+ CFolderItem(const char *sectionName, const char *name, const TCHAR *format, const DWORD flags);
+ virtual ~CFolderItem();
+
+ void Expand(TCHAR *buffer, int size);
+ void Save();
- public:
- CFolderItem(const char *sectionName, const char *name, const char *format, const DWORD flags);
- virtual ~CFolderItem();
- void Expand(char *buffer, int size);
- void Save();
-
- int IsUnicode() const;
- int IsEqual(const CFolderItem *other);
- int IsEqual(const char *section, const char *name);
- int IsEqualTranslated(const char *trSection, const char *trName);
- int operator ==(const CFolderItem *other);
+ int IsEqual(const CFolderItem *other);
+ int IsEqual(const char *section, const char *name);
+ int IsEqualTranslated(const char *trSection, const char *trName);
+ int operator ==(const CFolderItem *other);
- const char *GetSection() const;
- const char *GetName() const;
- const char *GetFormat() const;
- const wchar_t *GetFormatW() const;
- void SetFormat(const char *newFormat);
- void SetFormatW(const wchar_t *newFormat);
+ __inline const char* GetSection() const { return m_szSection; }
+ __inline const char* GetName() const { return m_szName; }
+ __inline const TCHAR* GetFormat() const { return m_tszFormat; }
+ void SetFormat(const TCHAR *newFormat);
};
typedef CFolderItem *PFolderItem;
|