diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-23 14:01:17 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-23 14:01:17 +0000 |
commit | f33e8fab62c9ee9a73617fafde7b33715420f4c9 (patch) | |
tree | 4124c93424d05495b83fb4cdb5c2e197888a4f84 /plugins/CSList/src/cslist.h | |
parent | 197abf300c77a2ca088d2cd22ea51e23dfc48983 (diff) |
added precompiled header
added version info
git-svn-id: http://svn.miranda-ng.org/main/trunk@3724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CSList/src/cslist.h')
-rw-r--r-- | plugins/CSList/src/cslist.h | 71 |
1 files changed, 16 insertions, 55 deletions
diff --git a/plugins/CSList/src/cslist.h b/plugins/CSList/src/cslist.h index a8324f1c1f..60af6dcfe8 100644 --- a/plugins/CSList/src/cslist.h +++ b/plugins/CSList/src/cslist.h @@ -22,16 +22,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- ============================================================================
-
- File name : $URL$
- Revision : $Rev$
- Last change on : $Date$
- Last change by : $Author$
-
- ============================================================================
-
-
DESCRIPTION:
Offers List of your Custom Statuses.
@@ -43,44 +33,34 @@ #ifndef __CSLIST_H
#define __CSLIST_H 1
-
#define WINVER 0x501
#define _WIN32_WINNT 0x501
#define _WIN32_IE 0x600
-#define MIRANDA_VER 0x0A00
-
-#pragma warning( disable: 4996 )
-#pragma comment( lib, "comctl32.lib")
+#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
-#include <commctrl.h>
-#include <tchar.h>
-#include <win2k.h>
#include <newpluginapi.h>
#include <m_database.h>
-#include <m_utils.h>
#include <m_system_cpp.h>
#include <m_langpack.h>
-#include <m_clist.h>
#include <m_clistint.h>
-#include <m_genmenu.h>
-#include <m_skin.h>
#include <m_icolib.h>
-#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_xstatus.h>
#include <m_options.h>
#include <m_hotkeys.h>
-#include <m_variables.h>
-// ====[ BASIC DEFINITIONS ]==================================================
+#include <m_variables.h>
#include "resource.h"
#include "version.h"
+// ====[ BASIC DEFINITIONS ]==================================================
+
#define MODULENAME LPGEN("Custom Status List")
+#define MODNAME "CSList"
// ====[ LIMITS ]=============================================================
@@ -109,15 +89,15 @@ #define ListView_SetSelectionMark( x, y ) 0
#endif
-#define getByte( setting, error ) DBGetContactSettingByte( NULL, __INTERNAL_NAME, setting, error )
-#define setByte( setting, value ) DBWriteContactSettingByte( NULL, __INTERNAL_NAME, setting, value )
-#define getWord( setting, error ) DBGetContactSettingWord( NULL, __INTERNAL_NAME, setting, error )
-#define setWord( setting, value ) DBWriteContactSettingWord( NULL, __INTERNAL_NAME, setting, value )
-#define getDword( setting, error ) DBGetContactSettingDword( NULL, __INTERNAL_NAME, setting, error )
-#define setDword( setting, value ) DBWriteContactSettingDword( NULL, __INTERNAL_NAME, setting, value )
-#define getTString( setting, dest ) DBGetContactSettingTString( NULL, __INTERNAL_NAME, setting, dest )
-#define setTString( setting, value ) DBWriteContactSettingTString( NULL, __INTERNAL_NAME, setting, value )
-#define deleteSetting( setting ) DBDeleteContactSetting( NULL, __INTERNAL_NAME, setting )
+#define getByte(setting, error) db_get_b(NULL, MODNAME, setting, error)
+#define setByte(setting, value) db_set_b(NULL, MODNAME, setting, value)
+#define getWord(setting, error) db_get_w(NULL, MODNAME, setting, error)
+#define setWord(setting, value) db_set_w(NULL, MODNAME, setting, value)
+#define getDword(setting, error) db_get_dw(NULL, MODNAME, setting, error)
+#define setDword(setting, value) db_set_dw(NULL, MODNAME, setting, value)
+#define getTString(setting, dest) db_get_ts(NULL, MODNAME, setting, dest)
+#define setTString(setting, value) db_set_ts(NULL, MODNAME, setting, value)
+#define deleteSetting(setting) db_unset(NULL, MODNAME, setting)
// --
typedef void (__cdecl *pForAllProtosFunc)( char*, void *);
@@ -385,8 +365,8 @@ struct CSWindow void __inline saveWindowPosition( HWND hwnd )
{
- if ( getByte( "RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION ) == TRUE )
- Utils_SaveWindowPosition(hwnd,NULL,__INTERNAL_NAME,"Position");
+ if (getByte("RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION) == TRUE)
+ Utils_SaveWindowPosition(hwnd, NULL, MODNAME, "Position");
}
};
@@ -423,13 +403,6 @@ void IitIcoLib(); void RegisterHotkeys(char buf[200], TCHAR* accName, int Number);
void SetStatus(WORD code, StatusItem* item, char *protoName);
-// ====[ INIT STUFF ]=========================================================
-
-extern "C" __declspec( dllexport ) PLUGININFOEX* MirandaPluginInfoEx( DWORD );
-
-extern "C" __declspec( dllexport ) int Load(void);
-extern "C" __declspec( dllexport ) int Unload( void );
-
// ====[ PROCEDURES ]=========================================================
INT_PTR CALLBACK CSWindowProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam );
@@ -437,16 +410,4 @@ INT_PTR CALLBACK CSAMWindowProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM INT_PTR CALLBACK CSRNWindowProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam );
INT_PTR CALLBACK CSOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam );
-// ====[ HELPERS ]============================================================
-
-void __fastcall SAFE_FREE(void** p)
-{
- if (*p)
- {
- free(*p);
- *p = NULL;
- }
-}
-
-
#endif /* __CSLIST_H */
|