diff options
Diffstat (limited to 'plugins/ContactsPlus/src/utils.h')
-rw-r--r-- | plugins/ContactsPlus/src/utils.h | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/plugins/ContactsPlus/src/utils.h b/plugins/ContactsPlus/src/utils.h index adb29ff1fd..f89ee6ca9b 100644 --- a/plugins/ContactsPlus/src/utils.h +++ b/plugins/ContactsPlus/src/utils.h @@ -24,24 +24,17 @@ #ifndef __UTILS_H
#define __UTILS_H
-
extern HINSTANCE hInst;
// utils.cpp
-void __fastcall SAFE_FREE(void** p);
size_t __fastcall strlennull(const char *string);
int __fastcall strcmpnull(const char *str1, const char *str2);
char* __fastcall null_strdup(const char *string);
-char *GetContactUID(HANDLE hContact, int bTchar);
-TCHAR *GetContactDisplayNameT(HANDLE hContact);
-
-int DBGetContactSettingT(HANDLE hContact, const char *szModule, const char* szSetting, DBVARIANT *dbv);
-TCHAR* DBGetContactSettingStringT(HANDLE hContact, const char *szModule,const char* szSetting, TCHAR* szDef);
-int DBWriteContactSettingStringT(HANDLE hContact, const char *szModule, const char* szSetting, TCHAR* szValue);
+TCHAR* GetContactUID(HANDLE hContact);
void DrawProtocolIcon(HWND hwndDlg, LPARAM lParam, HANDLE hContact);
-void UpdateDialogTitle(HWND hwndDlg, HANDLE hContact, char* pszTitleStart);
+void UpdateDialogTitle(HWND hwndDlg, HANDLE hContact, TCHAR *pszTitleStart);
void UpdateDialogAddButton(HWND hwndDlg, HANDLE hContact);
HICON InitMButton(HWND hDlg, int idButton, LPCSTR szIcon, char* szTip);
@@ -52,30 +45,4 @@ HICON LoadContactProtoIcon(HANDLE hContact); void EnableDlgItem(HWND hwndDlg, UINT control, int state);
-/// Unicode 2 in 1 Framework
-size_t __fastcall strlenT(const TCHAR *string);
-TCHAR* __fastcall strdupT(const TCHAR *string);
-int __fastcall strcmpT(const TCHAR *string1, const TCHAR *string2);
-TCHAR* __fastcall strcpyT(TCHAR* dest, const TCHAR* src);
-TCHAR* __fastcall strncpyT(TCHAR* dest, const TCHAR* src, size_t len);
-TCHAR* __fastcall strcatT(TCHAR* dest, const TCHAR* src);
-
-LRESULT SendMessageT(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
-TCHAR* GetWindowTextT(HWND hWnd);
-BOOL SetWindowTextT(HWND hWnd, TCHAR* lpString);
-TCHAR* GetDlgItemTextT(HWND hDlg, int nIDDlgItem);
-BOOL SetDlgItemTextT(HWND hDlg, int nIDDlgItem, TCHAR* lpString);
-HWND CreateDialogParamT(HINSTANCE hInstance, const char* szTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam);
-int ListView_InsertColumnT(HWND hwnd, int iCol, const LPLVCOLUMN pcol);
-void ListView_SetItemTextT(HWND hwnd, int i, int iSubItem, TCHAR* pszText);
-
-TCHAR* __fastcall SRCTranslateT(const char* src, const WCHAR* unibuf);
-
-void InitI18N(void);
-TCHAR* ansi_to_tchar(const char* string, int codepage = CP_ACP);
-char* tchar_to_ansi(const TCHAR* src);
-TCHAR* utf8_to_tchar(const unsigned char* utf);
-unsigned char *make_utf8_string(const wchar_t *unicode);
-
-
#endif /* __UTILS_H */
\ No newline at end of file |