summaryrefslogtreecommitdiff
path: root/plugins/HistorySweeperLight/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-26 19:30:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-26 19:30:07 +0000
commitbca327466d9461ee453ae2cb9e0175f7c9895b2b (patch)
tree16eb73866ac1209ecaef9a10bb379b802c9c9968 /plugins/HistorySweeperLight/src
parentef522ce54a4a2e2b737759b619e667ef819540c6 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistorySweeperLight/src')
-rw-r--r--plugins/HistorySweeperLight/src/historysweeperlight.h5
-rw-r--r--plugins/HistorySweeperLight/src/main.cpp23
-rw-r--r--plugins/HistorySweeperLight/src/options.cpp48
-rw-r--r--plugins/HistorySweeperLight/src/resource.h44
-rw-r--r--plugins/HistorySweeperLight/src/stdafx.cpp18
-rw-r--r--plugins/HistorySweeperLight/src/version.h37
6 files changed, 95 insertions, 80 deletions
diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.h b/plugins/HistorySweeperLight/src/historysweeperlight.h
index a1b67c464e..407f3973d2 100644
--- a/plugins/HistorySweeperLight/src/historysweeperlight.h
+++ b/plugins/HistorySweeperLight/src/historysweeperlight.h
@@ -21,19 +21,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __HISTORYSWEEPERLIGHT_H__
#define __HISTORYSWEEPERLIGHT_H__
-#define MIRANDA_VER 0x0A00
-
#if !defined( _WIN64 )
#define _USE_32BIT_TIME_T
#endif
#include <windows.h>
-#include <commctrl.h>
#include <time.h>
#include <win2k.h>
#include <newpluginapi.h>
-#include <m_clc.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_options.h>
@@ -43,6 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_skin.h>
#include "resource.h"
+#include "version.h"
// Plugin name
#define ModuleName "History Sweeper Light"
diff --git a/plugins/HistorySweeperLight/src/main.cpp b/plugins/HistorySweeperLight/src/main.cpp
index 59ee86b329..6f1133dbea 100644
--- a/plugins/HistorySweeperLight/src/main.cpp
+++ b/plugins/HistorySweeperLight/src/main.cpp
@@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "historysweeperlight.h"
-#include "version.h"
HINSTANCE hInst;
@@ -29,22 +28,22 @@ int hLangpack;
static PLUGININFOEX pluginInfoEx =
{
- // about plugin
sizeof(PLUGININFOEX),
- "History Sweeper Light",
- __VERSION_DWORD,
- "This plugin can sweep system history, history from all contacts or only from chosen; also it may sweep history older than certain time; and may do it at Miranda NG startup/shutdown.",
- "Sergey V. Gershovich a.k.a. Jazzy$, Boris Krasnovskiy, tico-tico",
- "",
- "© 2002-2003 Sergey V. Gershovich a.k.a. Jazzy$, 2006-2009 Boris Krasnovskiy, 2010, 2011 tico-tico",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- { 0x1d9bf74a, 0x44a8, 0x4b3f, { 0xa6, 0xe5, 0x73, 0x6, 0x9d, 0x3a, 0x89, 0x79 } } // {1D9BF74A-44A8-4b3f-A6E5-73069D3A8979}
+ // {1D9BF74A-44A8-4B3F-A6E5-73069D3A8979}
+ {0x1d9bf74a, 0x44a8, 0x4b3f, {0xa6, 0xe5, 0x73, 0x6, 0x9d, 0x3a, 0x89, 0x79}}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
+ hInst = hinstDLL;
return TRUE;
}
diff --git a/plugins/HistorySweeperLight/src/options.cpp b/plugins/HistorySweeperLight/src/options.cpp
index 5ca89ed4c0..cba8459859 100644
--- a/plugins/HistorySweeperLight/src/options.cpp
+++ b/plugins/HistorySweeperLight/src/options.cpp
@@ -21,30 +21,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "historysweeperlight.h"
-// Time Stamps strings
-const char* time_stamp_strings[] =
-{
- LPGEN("Delete older than 1 day"),
- LPGEN("Delete older than 3 days"),
- LPGEN("Delete older than 7 days"),
- LPGEN("Delete older than 2 weeks (14 days)"),
- LPGEN("Delete older than 1 month (30 days)"),
- LPGEN("Delete older than 3 months (90 days)"),
- LPGEN("Delete older than 6 months (180 days)"),
- LPGEN("Delete older than 1 year (365 days)")
-};
-
-const char* keep_strings[] =
-{
- LPGEN("Keep 1 last event"),
- LPGEN("Keep 2 last events"),
- LPGEN("Keep 5 last events"),
- LPGEN("Keep 10 last events"),
- LPGEN("Keep 20 last events"),
- LPGEN("Keep 50 last events")
-};
-
-static IconItem iconList[] =
+// Time Stamps strings
+const char* time_stamp_strings[] =
+{
+ LPGEN("Delete older than 1 day"),
+ LPGEN("Delete older than 3 days"),
+ LPGEN("Delete older than 7 days"),
+ LPGEN("Delete older than 2 weeks (14 days)"),
+ LPGEN("Delete older than 1 month (30 days)"),
+ LPGEN("Delete older than 3 months (90 days)"),
+ LPGEN("Delete older than 6 months (180 days)"),
+ LPGEN("Delete older than 1 year (365 days)")
+};
+
+const char* keep_strings[] =
+{
+ LPGEN("Keep 1 last event"),
+ LPGEN("Keep 2 last events"),
+ LPGEN("Keep 5 last events"),
+ LPGEN("Keep 10 last events"),
+ LPGEN("Keep 20 last events"),
+ LPGEN("Keep 50 last events")
+};
+
+static IconItem iconList[] =
{
{ "Default Action", "actG", IDI_ACTG },
{ "Action 1", "act1", IDI_ACT1 },
diff --git a/plugins/HistorySweeperLight/src/resource.h b/plugins/HistorySweeperLight/src/resource.h
index bfa91d1d4e..c6e2c3710d 100644
--- a/plugins/HistorySweeperLight/src/resource.h
+++ b/plugins/HistorySweeperLight/src/resource.h
@@ -1,18 +1,28 @@
-#ifndef IDC_STATIC
-#define IDC_STATIC (-1)
-#endif
-
-#define IDD_OPT_HISTORYSWEEPER 101
-#define IDI_ACTG 102
-#define IDI_ACT1 103
-#define IDI_ACT2 104
-#define IDI_ACTDEL 105
-#define IDC_LIST 106
-#define IDC_SSOLDER 107
-#define IDC_UNSAFEMODE 108
-#define IDC_SWEEPONCLOSE 109
-#define IDC_SSKEEP 110
-#define IDC_HISTMW 111
-#define IDC_ACT1 112
-#define IDC_ACT2 113
+//{{NO_DEPENDENCIES}}
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется D:\MNG_orig\plugins\HistorySweeperLight\res\historysweeperlight.rc
+//
+#define IDD_OPT_HISTORYSWEEPER 101
+#define IDI_ACTG 102
+#define IDI_ACT1 103
+#define IDI_ACT2 104
+#define IDI_ACTDEL 105
+#define IDC_LIST 106
+#define IDC_SSOLDER 107
+#define IDC_UNSAFEMODE 108
+#define IDC_SWEEPONCLOSE 109
+#define IDC_SSKEEP 110
+#define IDC_HISTMW 111
+#define IDC_ACT1 112
+#define IDC_ACT2 113
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 101
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/plugins/HistorySweeperLight/src/stdafx.cpp b/plugins/HistorySweeperLight/src/stdafx.cpp
new file mode 100644
index 0000000000..b141ddc9b1
--- /dev/null
+++ b/plugins/HistorySweeperLight/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 "historysweeperlight.h" \ No newline at end of file
diff --git a/plugins/HistorySweeperLight/src/version.h b/plugins/HistorySweeperLight/src/version.h
index 245200a539..928409d123 100644
--- a/plugins/HistorySweeperLight/src/version.h
+++ b/plugins/HistorySweeperLight/src/version.h
@@ -1,23 +1,14 @@
-/*
-Plugin of Miranda IM for communicating with users of the MSN Messenger protocol.
-Copyright (c) 2008-2009 Boris Krasnovskiy.
-Copyright (C) 2010, 2011 tico-tico
-
-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; either version 2
-of the License, or (at your option) any later version.
-
-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/>.
-*/
-
-#define __FILEVERSION_STRING 0,0,0,7
-#define __VERSION_STRING "0.0.0.7"
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 0, 0, 7)
-
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 7
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "History sweeper light"
+#define __FILENAME "HistorySweeperLight.dll"
+#define __DESCRIPTION "This plugin can sweep system history, history from all contacts or only from chosen; also it may sweep history older than certain time; and may do it at Miranda NG startup/shutdown."
+#define __AUTHOR "Sergey V. Gershovich a.k.a. Jazzy$, Boris Krasnovskiy, tico-tico"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2002-2003 Sergey V. Gershovich a.k.a. Jazzy$, 2006-2009 Boris Krasnovskiy, 2010-2011 tico-tico"