summaryrefslogtreecommitdiff
path: root/sametime/utils.h
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-06-03 13:27:13 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-06-03 13:27:13 +0000
commit964a7089f8a243fed81b9fc293512c7e2be6ce18 (patch)
tree4c81ec9feacd624190965318061c8fdaab8ae08a /sametime/utils.h
parent60cbe2d6c7d0a0b9dafce40d9d9ecdc868c4c49b (diff)
import sametime plugin source
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@412 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'sametime/utils.h')
-rw-r--r--sametime/utils.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/sametime/utils.h b/sametime/utils.h
new file mode 100644
index 0000000..600562c
--- /dev/null
+++ b/sametime/utils.h
@@ -0,0 +1,37 @@
+#ifndef _UTILS_INC
+#define _UTILS_INC
+
+#include "common.h"
+#include "options.h"
+
+wchar_t *a2w(const char *as);
+char *w2a(const wchar_t *ws);
+
+char *w2u(const wchar_t *ws);
+wchar_t *u2w(const char *ws);
+
+TCHAR *u2t(const char *utfs);
+char *t2u(const TCHAR *ts);
+
+char *t2a(const TCHAR *ts);
+TCHAR *a2t(const char *as);
+
+char *u2a(const char *utfs);
+char *a2u(const char *as);
+
+void InitUtils();
+void DeinitUtils();
+
+void ShowPopupA( const char* line1, const char* line2, int flags = 0);
+void ShowPopupW( const wchar_t* line1, const wchar_t* line2, int flags = 0);
+
+#ifdef _UNICODE
+#define ShowPopup ShowPopupW
+#else
+#define ShowPopup ShowPopupA
+#endif
+
+void ShowWarning(TCHAR *msg);
+void ShowError(TCHAR *msg);
+
+#endif