summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-14 12:56:15 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-14 12:56:15 +0000
commita42cae3b61b4696346033cbc257198f2708af486 (patch)
tree8fb8d0d773e9c56f1986b156447951be53c012a9 /plugins/WhoUsesMyFiles/src
parentde1d4b7048bb2cf6b117b5792a9f17e494a9dc39 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@4023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles/src')
-rw-r--r--plugins/WhoUsesMyFiles/src/Version.h14
-rw-r--r--plugins/WhoUsesMyFiles/src/resizer.cpp1
-rw-r--r--plugins/WhoUsesMyFiles/src/stdafx.cpp18
-rw-r--r--plugins/WhoUsesMyFiles/src/wumf.cpp3
-rw-r--r--plugins/WhoUsesMyFiles/src/wumf.h22
-rw-r--r--plugins/WhoUsesMyFiles/src/wumfplug.cpp14
6 files changed, 50 insertions, 22 deletions
diff --git a/plugins/WhoUsesMyFiles/src/Version.h b/plugins/WhoUsesMyFiles/src/Version.h
new file mode 100644
index 0000000000..803deaecb5
--- /dev/null
+++ b/plugins/WhoUsesMyFiles/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 1
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Who Use My Files"
+#define __FILENAME "WhoUsesMyFiles.dll"
+#define __DESCRIPTION "Scans for network users of your shared files and notify you with popups."
+#define __AUTHOR "Nikolay Redko"
+#define __AUTHOREMAIL "nike000@users.sf.net"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2003 Nike"
diff --git a/plugins/WhoUsesMyFiles/src/resizer.cpp b/plugins/WhoUsesMyFiles/src/resizer.cpp
index 4fc7906441..17121b1e9f 100644
--- a/plugins/WhoUsesMyFiles/src/resizer.cpp
+++ b/plugins/WhoUsesMyFiles/src/resizer.cpp
@@ -1,5 +1,4 @@
#include "wumf.h"
-#pragma hdrstop
typedef struct {
DWORD helpID;
diff --git a/plugins/WhoUsesMyFiles/src/stdafx.cpp b/plugins/WhoUsesMyFiles/src/stdafx.cpp
new file mode 100644
index 0000000000..d0b1b5a1f0
--- /dev/null
+++ b/plugins/WhoUsesMyFiles/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 "wumf.h" \ No newline at end of file
diff --git a/plugins/WhoUsesMyFiles/src/wumf.cpp b/plugins/WhoUsesMyFiles/src/wumf.cpp
index 8eeb2308e0..4deb46a1b6 100644
--- a/plugins/WhoUsesMyFiles/src/wumf.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumf.cpp
@@ -1,9 +1,10 @@
+#include "wumf.h"
+
#define MAX_CHARS 4096
#define WS_WINDOW_STYLE WS_OVERLAPPED
#define NAME "WUMF"
#define WM_MYCMD 0x0401
-#include "wumf.h"
static PWumf list = NULL;
static PWumf lst = NULL;
diff --git a/plugins/WhoUsesMyFiles/src/wumf.h b/plugins/WhoUsesMyFiles/src/wumf.h
index 331fa48eef..f817d6dbf9 100644
--- a/plugins/WhoUsesMyFiles/src/wumf.h
+++ b/plugins/WhoUsesMyFiles/src/wumf.h
@@ -1,25 +1,21 @@
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
-#include <commctrl.h>
#include <lm.h>
-#include <locale.h>
+#include <locale.h>
#include <shlobj.h>
-#include "newpluginapi.h"
-#include "m_system.h"
-#include "m_options.h"
-#include "m_langpack.h"
-#include "m_clui.h"
-#include "m_clist.h"
-#include "m_database.h"
-#include "m_utils.h"
-#include "m_skin.h"
-#include "m_popup.h"
+#include <newpluginapi.h>
+#include <m_options.h>
+#include <m_langpack.h>
+#include <m_clist.h>
+#include <m_database.h>
+#include <m_popup.h>
-#include "m_toptoolbar.h"
+#include <m_toptoolbar.h>
#include "resource.h"
+#include "Version.h"
#define ModuleName "WUMF Plugin"
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
index b4af03a16b..9dd9c58c93 100644
--- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
@@ -8,13 +8,13 @@ HWND hDlg;
static PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "WUMF: Who Use My Files?",
- PLUGIN_MAKE_VERSION(0,1,0,1),
- "Scans for network users of your shared files and notify you with popups. Uses PopUps Interoperability by Luca Santarelli. PopUps plugin must be activated!",
- "Nikolay Redko",
- "nike000@users.sf.net",
- "© 2003 Nike. Freeware. Please mail me all bugs & your suggestions.",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
// {80DCA515-973A-4A7E-8B85-5D8EC88FC5A7}
{0x80dca515, 0x973a, 0x4a7e, {0x8b, 0x85, 0x5d, 0x8e, 0xc8, 0x8f, 0xc5, 0xa7}}