summaryrefslogtreecommitdiff
path: root/protocols/JabberG/jabber.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-30 13:54:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-30 13:54:56 +0000
commitee9d85e617be7be900d31be00d0dec766119c2e5 (patch)
treefcc7a837d39e057a79bae3b9509bef659f1643f2 /protocols/JabberG/jabber.h
parent9951afcf3b7dbb6ec2037dcb345c56db811329cd (diff)
yet another option for chats' history reading
git-svn-id: http://svn.miranda-ng.org/main/trunk@233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/jabber.h')
-rw-r--r--protocols/JabberG/jabber.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/protocols/JabberG/jabber.h b/protocols/JabberG/jabber.h
index c5965f9f8f..d990982d90 100644
--- a/protocols/JabberG/jabber.h
+++ b/protocols/JabberG/jabber.h
@@ -332,7 +332,7 @@ struct ThreadData
HANDLE hThread;
JABBER_SESSION_TYPE type;
-
+
// network support
JABBER_SOCKET s;
BOOL useSSL;
@@ -445,7 +445,7 @@ struct filetransfer
HANDLE hFileEvent;
unsigned __int64 *fileSize;
TCHAR* szDescription;
-
+
CJabberProto* ppro;
};
@@ -499,8 +499,8 @@ class _A2T
TCHAR* buf;
public:
- _A2T( const char* s ) : buf( mir_a2t( s )) {}
- _A2T( const char* s, int cp ) : buf( mir_a2t_cp( s, cp )) {}
+ __forceinline _A2T( const char* s ) : buf( mir_a2t( s )) {}
+ __forceinline _A2T( const char* s, int cp ) : buf( mir_a2t_cp( s, cp )) {}
~_A2T() { mir_free(buf); }
__forceinline operator TCHAR*() const
@@ -508,6 +508,19 @@ public:
}
};
+class _T2A
+{
+ char* buf;
+
+public:
+ __forceinline _T2A( const TCHAR* s ) : buf( mir_t2a( s )) {}
+ __forceinline ~_T2A() { mir_free(buf); }
+
+ __forceinline operator char*() const
+ { return buf;
+ }
+};
+
//---- jabber_treelist.c ------------------------------------------------
typedef struct TTreeList_ItemInfo *HTREELISTITEM;