summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-02 18:22:15 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-02 18:22:15 +0000
commitf95374e9cace38d5555c17b2bce782477787e060 (patch)
tree2252f62d5c185b00bc9ba0838c045f891d42d7c2 /plugins/NewXstatusNotify/src
parent0c451cc7f96026b3e6b4553b0416435b508c513d (diff)
removed not used headers
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3849 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src')
-rw-r--r--plugins/NewXstatusNotify/src/common.h63
-rw-r--r--plugins/NewXstatusNotify/src/indsnd.cpp7
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp22
-rw-r--r--plugins/NewXstatusNotify/src/options.cpp9
-rw-r--r--plugins/NewXstatusNotify/src/options.h2
-rw-r--r--plugins/NewXstatusNotify/src/popup.cpp5
-rw-r--r--plugins/NewXstatusNotify/src/stdafx.cpp18
-rw-r--r--plugins/NewXstatusNotify/src/utils.cpp4
-rw-r--r--plugins/NewXstatusNotify/src/version.h16
-rw-r--r--plugins/NewXstatusNotify/src/xstatus.cpp8
10 files changed, 70 insertions, 84 deletions
diff --git a/plugins/NewXstatusNotify/src/common.h b/plugins/NewXstatusNotify/src/common.h
index dd739eff71..473a51c1fc 100644
--- a/plugins/NewXstatusNotify/src/common.h
+++ b/plugins/NewXstatusNotify/src/common.h
@@ -30,50 +30,44 @@
#define _WIN32_WINNT 0x0500
#define WINVER 0x0600
-#define MIRANDA_VER 0x0A00
-//Standard Windows "libraries"
#include <windows.h>
#include <mmsystem.h>
#include <commctrl.h>
#include <commdlg.h>
#include <shellapi.h>
#include <time.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <tchar.h>
#include <malloc.h>
#include <newpluginapi.h>
-#include <m_system.h>
-#include <m_system_cpp.h>
-#include <statusmodes.h>
#include <win2k.h>
+#include <m_button.h>
+#include <m_clc.h>
+#include <m_database.h>
+#include <m_genmenu.h>
+#include <m_history.h>
+#include <m_icolib.h>
+#include <m_ignore.h>
+#include <m_langpack.h>
+#include <m_message.h>
+#include <m_options.h>
+#include <m_popup.h>
+#include <m_protosvc.h>
+#include <m_skin.h>
+#include <m_userinfo.h>
+#include <m_xstatus.h>
+#include <m_extraicons.h>
+
+#include <m_metacontacts.h>
+#include <m_toptoolbar.h>
-#include "m_awaymsg.h"
-#include "m_button.h"
-#include "m_clc.h"
-#include "m_database.h"
-#include "m_genmenu.h"
-#include "m_history.h"
-#include "m_icolib.h"
-#include "m_ignore.h"
-#include "m_langpack.h"
-#include "m_message.h"
-#include "m_options.h"
-#include "m_popup.h"
-#include "m_protosvc.h"
-#include "m_skin.h"
-#include "m_system.h"
-#include "m_userinfo.h"
-#include "m_utils.h"
-#include "m_xstatus.h"
-#include "m_extraicons.h"
-
-#include "m_metacontacts.h"
-#include "m_toptoolbar.h"
#include "resource.h"
-
+#include "indsnd.h"
+#include "options.h"
+#include "popup.h"
+#include "utils.h"
+#include "version.h"
+#include "xstatus.h"
#define MODULE "NewStatusNotify"
@@ -151,4 +145,11 @@ Cast them to (int) if you need them that way.
#define TMR_CONNECTIONTIMEOUT 10000
+extern OPTIONS opt;
+extern LIST<DBEVENT> eventList;
+extern TEMPLATES templates;
+extern HINSTANCE hInst;
+extern HANDLE hEnableDisableMenu;
+extern STATUS StatusList[STATUS_COUNT];
+
#endif //COMMON_H
diff --git a/plugins/NewXstatusNotify/src/indsnd.cpp b/plugins/NewXstatusNotify/src/indsnd.cpp
index af4a2da89a..52f2456d10 100644
--- a/plugins/NewXstatusNotify/src/indsnd.cpp
+++ b/plugins/NewXstatusNotify/src/indsnd.cpp
@@ -20,13 +20,6 @@
*/
#include "common.h"
-#include "options.h"
-#include "indsnd.h"
-#include "utils.h"
-
-extern STATUS StatusList[];
-extern OPTIONS opt;
-extern HINSTANCE hInst;
void PreviewSound(HWND hList)
{
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index d7418dbc1e..b45602279d 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -20,12 +20,6 @@
*/
#include "common.h"
-#include "indsnd.h"
-#include "options.h"
-#include "popup.h"
-#include "utils.h"
-#include "version.h"
-#include "xstatus.h"
HINSTANCE hInst;
@@ -39,17 +33,15 @@ STATUS StatusList[STATUS_COUNT];
DWORD LoadTime = 0;
int hLangpack;
-extern OPTIONS opt;
-
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
- "xStatus Notify",
- __VERSION_DWORD,
- "Notifies you when a contact changes his/her (X)status or status message.",
- "Luca Santarelli, Vasilich, yaho",
- "yaho@miranda-easy.net",
- "© 2001-2004 Luca Santarelli, 2005-2007 Vasilich, 2007-2011 yaho",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
// EBF19652-E434-4D79-9897-91A0FF226F51
{0xebf19652, 0xe434, 0x4d79, {0x98, 0x97, 0x91, 0xa0, 0xff, 0x22, 0x6f, 0x51}}
diff --git a/plugins/NewXstatusNotify/src/options.cpp b/plugins/NewXstatusNotify/src/options.cpp
index ce95154171..e58de111c7 100644
--- a/plugins/NewXstatusNotify/src/options.cpp
+++ b/plugins/NewXstatusNotify/src/options.cpp
@@ -20,11 +20,6 @@
*/
#include "common.h"
-#include "indsnd.h"
-#include "options.h"
-#include "popup.h"
-#include "xstatus.h"
-#include "utils.h"
OPTIONS opt = {0};
TEMPLATES templates = {0};
@@ -32,10 +27,6 @@ BOOL UpdateListFlag = FALSE;
LIST<PROTOTEMPLATE> ProtoTemplates(10);
int LastItem = 0;
-extern HINSTANCE hInst;
-extern HANDLE hEnableDisableMenu;
-extern STATUS StatusList[STATUS_COUNT];
-
INT_PTR CALLBACK DlgProcAutoDisableOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
void LoadTemplates()
diff --git a/plugins/NewXstatusNotify/src/options.h b/plugins/NewXstatusNotify/src/options.h
index 7947401c31..6d3c018570 100644
--- a/plugins/NewXstatusNotify/src/options.h
+++ b/plugins/NewXstatusNotify/src/options.h
@@ -22,8 +22,6 @@
#ifndef OPTIONS_H
#define OPTIONS_H
-#include "common.h"
-
#define DEFAULT_LOGFILE "NewStatusNotify.log"
typedef struct tagOPTIONS {
diff --git a/plugins/NewXstatusNotify/src/popup.cpp b/plugins/NewXstatusNotify/src/popup.cpp
index 1ddc5648e1..e082e59595 100644
--- a/plugins/NewXstatusNotify/src/popup.cpp
+++ b/plugins/NewXstatusNotify/src/popup.cpp
@@ -20,11 +20,6 @@
*/
#include "common.h"
-#include "popup.h"
-#include "options.h"
-#include "utils.h"
-
-extern OPTIONS opt;
void QueryAwayMessage(HWND hWnd, PLUGINDATA *pdp)
{
diff --git a/plugins/NewXstatusNotify/src/stdafx.cpp b/plugins/NewXstatusNotify/src/stdafx.cpp
new file mode 100644
index 0000000000..1976d867da
--- /dev/null
+++ b/plugins/NewXstatusNotify/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "common.h" \ No newline at end of file
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp
index 67c955cffb..3e9d0f7f35 100644
--- a/plugins/NewXstatusNotify/src/utils.cpp
+++ b/plugins/NewXstatusNotify/src/utils.cpp
@@ -20,10 +20,6 @@
*/
#include "common.h"
-#include "options.h"
-
-extern OPTIONS opt;
-extern STATUS StatusList[STATUS_COUNT];
TCHAR *db2t(DBVARIANT *dbv)
{
diff --git a/plugins/NewXstatusNotify/src/version.h b/plugins/NewXstatusNotify/src/version.h
index 10ac34a753..ffce1df914 100644
--- a/plugins/NewXstatusNotify/src/version.h
+++ b/plugins/NewXstatusNotify/src/version.h
@@ -1,4 +1,14 @@
-#define __FILEVERSION_STRING 1,4,0,9
-#define __VERSION_STRING "1.4.0.9"
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(1, 4, 0, 9)
+#define __MAJOR_VERSION 1
+#define __MINOR_VERSION 4
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 9
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "xStatus Notify"
+#define __FILENAME "NewXstatusNotify.dll"
+#define __DESCRIPTION "Notifies you when a contact changes his/her (X)status or status message."
+#define __AUTHOR "Luca Santarelli, Vasilich, yaho"
+#define __AUTHOREMAIL "yaho@miranda-easy.net"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2001-2004 Luca Santarelli, 2005-2007 Vasilich, 2007-2011 yaho"
diff --git a/plugins/NewXstatusNotify/src/xstatus.cpp b/plugins/NewXstatusNotify/src/xstatus.cpp
index feb214f93a..8052a5526b 100644
--- a/plugins/NewXstatusNotify/src/xstatus.cpp
+++ b/plugins/NewXstatusNotify/src/xstatus.cpp
@@ -18,14 +18,6 @@
*/
#include "common.h"
-#include "options.h"
-#include "popup.h"
-#include "utils.h"
-#include "xstatus.h"
-
-extern LIST<DBEVENT> eventList;
-extern OPTIONS opt;
-extern TEMPLATES templates;
XSTATUSCHANGE *NewXSC(HANDLE hContact, char *szProto, int xstatusType, int action, TCHAR *stzTitle, TCHAR *stzText)
{