diff options
author | Szymon Tokarz <wsx22@o2.pl> | 2012-12-22 00:30:47 +0000 |
---|---|---|
committer | Szymon Tokarz <wsx22@o2.pl> | 2012-12-22 00:30:47 +0000 |
commit | 1b50be65056f9f625a2242b3eab128b2c1c2ad7f (patch) | |
tree | 6fd7a6af17c7f78b312e669b24bd10bf85061873 /protocols/Gadu-Gadu/src/gg_proto.h | |
parent | 5d674840ea8cafd9975bd5f1ce7aa13a504891c5 (diff) |
Gadu-Gadu protocol:
Change libgadu gg encoding from GG_ENCODING_CP1250 to GG_ENCODING_UTF8 and support it.
This is a long-awaited change with introducing UTF-8 support at:
- messages
- status descriptions (fixes issue #8)
- group chats
(searching and public directory not support UTF-8 beacouse of libgadu limitations, thats works as previously)
Thanks to Tomasz Figa for his path from http://code.google.com/p/miranda/issues/detail?id=1195
git-svn-id: http://svn.miranda-ng.org/main/trunk@2786 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/gg_proto.h')
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index 10ca4efafa..3c75f1179d 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -132,8 +132,8 @@ struct GGPROTO : public PROTO_INTERFACE, public MZeroedObject int contactdeleted(WPARAM wParam, LPARAM lParam);
int dbsettingchanged(WPARAM wParam, LPARAM lParam);
void notifyall();
- void changecontactstatus(uin_t uin, int status, const char *idescr, int time, uint32_t remote_ip, uint16_t remote_port, uint32_t version);
- char *getstatusmsg(int status);
+ void changecontactstatus(uin_t uin, int status, const TCHAR *idescr, int time, uint32_t remote_ip, uint16_t remote_port, uint32_t version);
+ TCHAR *getstatusmsg(int status);
void dccstart();
void dccconnect(uin_t uin);
int gettoken(GGTOKEN *token);
@@ -223,7 +223,6 @@ struct GGPROTO : public PROTO_INTERFACE, public MZeroedObject TCHAR * gc_getchat(uin_t sender, uin_t *recipients, int recipients_count);
GGGC *gc_lookup(TCHAR *id);
int gc_changenick(HANDLE hContact, TCHAR *ptszNick);
- #define UIN2ID(uin,id) _itoa(uin,id,10)
int __cdecl gc_event(WPARAM wParam, LPARAM lParam);
@@ -271,12 +270,12 @@ struct GGPROTO : public PROTO_INTERFACE, public MZeroedObject UINT_PTR timer;
struct
{
- char *online;
- char *away;
- char *dnd;
- char *freechat;
- char *invisible;
- char *offline;
+ TCHAR *online;
+ TCHAR *away;
+ TCHAR *dnd;
+ TCHAR *freechat;
+ TCHAR *invisible;
+ TCHAR *offline;
} modemsg;
HANDLE netlib;
HGENMENU hMenuRoot;
|