summaryrefslogtreecommitdiff
path: root/plugins/Svc_vi/CPlugin.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-26 14:47:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-26 14:47:04 +0000
commit1d9dd615e5f1a43d3b78f37b5aaae836dfac1c4d (patch)
treedd3dd64e8c60cccb072e5acae857c9c55203e86d /plugins/Svc_vi/CPlugin.h
parent32abe163ec316671ec5a0a3bbec68ec13f71cb92 (diff)
- plugin converted to Unicode
- old bug fixed with the profile path git-svn-id: http://svn.miranda-ng.org/main/trunk@182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi/CPlugin.h')
-rw-r--r--plugins/Svc_vi/CPlugin.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/plugins/Svc_vi/CPlugin.h b/plugins/Svc_vi/CPlugin.h
index 4eb1adc69a..46528b8511 100644
--- a/plugins/Svc_vi/CPlugin.h
+++ b/plugins/Svc_vi/CPlugin.h
@@ -31,35 +31,41 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <string>
#ifndef M_NEWPLUGINAPI_H__
-#include "../../include/newpluginapi.h"
+ #include "newpluginapi.h"
#endif
#define DEF_UUID_CHARMARK "¤"
extern const int cPLUGIN_UUID_MARK;
-extern char PLUGIN_UUID_MARK[];
+extern TCHAR PLUGIN_UUID_MARK[];
//using namespace std;
+#if defined( _UNICODE )
+ #define tstring wstring
+#else
+ #define tstring string
+#endif
+
class CPlugin {
private:
- std::string lpzFileName;
- std::string lpzShortName;
- std::string lpzVersion;
- std::string lpzUnicodeInfo; //aditional info, Unicode aware ...
- std::string lpzTimestamp; //to show the last modified timestamp
- std::string lpzLinkedModules; //to show linked modules that aren't found
+ std::tstring lpzFileName;
+ std::tstring lpzShortName;
+ std::tstring lpzVersion;
+ std::tstring lpzUnicodeInfo; //aditional info, Unicode aware ...
+ std::tstring lpzTimestamp; //to show the last modified timestamp
+ std::tstring lpzLinkedModules; //to show linked modules that aren't found
MUUID pluginID;
public:
CPlugin();
- CPlugin(std::string fileName, std::string shortName, MUUID pluginID, std::string unicodeInfo, DWORD version, std::string timestamp, std::string linkedModules);
+ CPlugin(LPCTSTR fileName, LPCTSTR shortName, MUUID pluginID, LPCTSTR unicodeInfo, DWORD version, LPCTSTR timestamp, LPCTSTR linkedModules);
CPlugin(const CPlugin&);
~CPlugin();
- std::string getFileName();
- std::string getInformations(DWORD, char *, char *);
+ std::tstring getFileName();
+ std::tstring getInformations(DWORD, TCHAR *, TCHAR *);
- void SetErrorMessage(std::string error);
+ void SetErrorMessage(LPCTSTR error);
//Operators
bool operator<(CPlugin&);