From 2293e8300f4c7f75161b0fbda8adde10d1d64f1a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 08:59:53 +0000 Subject: historysweeperlight: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../src/historysweeperlight.cpp | 2 +- .../HistorySweeperLight/src/historysweeperlight.h | 65 ---------------------- plugins/HistorySweeperLight/src/main.cpp | 2 +- plugins/HistorySweeperLight/src/options.cpp | 2 +- plugins/HistorySweeperLight/src/stdafx.cpp | 18 ------ plugins/HistorySweeperLight/src/stdafx.cxx | 18 ++++++ plugins/HistorySweeperLight/src/stdafx.h | 65 ++++++++++++++++++++++ 7 files changed, 86 insertions(+), 86 deletions(-) delete mode 100644 plugins/HistorySweeperLight/src/historysweeperlight.h delete mode 100644 plugins/HistorySweeperLight/src/stdafx.cpp create mode 100644 plugins/HistorySweeperLight/src/stdafx.cxx create mode 100644 plugins/HistorySweeperLight/src/stdafx.h (limited to 'plugins/HistorySweeperLight/src') diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.cpp b/plugins/HistorySweeperLight/src/historysweeperlight.cpp index d42546fa51..09b860078c 100644 --- a/plugins/HistorySweeperLight/src/historysweeperlight.cpp +++ b/plugins/HistorySweeperLight/src/historysweeperlight.cpp @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "historysweeperlight.h" +#include "stdafx.h" typedef struct { diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.h b/plugins/HistorySweeperLight/src/historysweeperlight.h deleted file mode 100644 index 1821ebdee5..0000000000 --- a/plugins/HistorySweeperLight/src/historysweeperlight.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -Miranda IM History Sweeper Light plugin -Copyright (C) 2002-2003 Sergey V. Gershovich -Copyright (C) 2006-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, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ -#ifndef __HISTORYSWEEPERLIGHT_H__ -#define __HISTORYSWEEPERLIGHT_H__ - -#if !defined( _WIN64 ) - #define _USE_32BIT_TIME_T -#endif - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" -#include "version.h" - -// Plugin name -#define ModuleName "History Sweeper Light" - -// main.c -extern HINSTANCE hInst; -extern LIST g_hWindows; - -// options.c -extern char* time_stamp_strings[]; -extern char* keep_strings[]; -int HSOptInitialise(WPARAM wParam, LPARAM lParam); -void InitIcons(void); -void ReleaseIconEx(const char* name); -HICON LoadIconEx(const char* name); -HANDLE GetIconHandle(const char* name); - -// historysweeper.c -void ShutdownAction(void); -int OnWindowEvent(WPARAM wParam, LPARAM lParam); -void SetSrmmIcon(MCONTACT hContact); - -#endif diff --git a/plugins/HistorySweeperLight/src/main.cpp b/plugins/HistorySweeperLight/src/main.cpp index 5533f35eda..79436b8212 100644 --- a/plugins/HistorySweeperLight/src/main.cpp +++ b/plugins/HistorySweeperLight/src/main.cpp @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "historysweeperlight.h" +#include "stdafx.h" HINSTANCE hInst; diff --git a/plugins/HistorySweeperLight/src/options.cpp b/plugins/HistorySweeperLight/src/options.cpp index 92746b37e4..b1196b68b0 100644 --- a/plugins/HistorySweeperLight/src/options.cpp +++ b/plugins/HistorySweeperLight/src/options.cpp @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "historysweeperlight.h" +#include "stdafx.h" // Time Stamps strings char* time_stamp_strings[] = diff --git a/plugins/HistorySweeperLight/src/stdafx.cpp b/plugins/HistorySweeperLight/src/stdafx.cpp deleted file mode 100644 index 29a7fe8c7b..0000000000 --- a/plugins/HistorySweeperLight/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 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 . -*/ - -#include "historysweeperlight.h" \ No newline at end of file diff --git a/plugins/HistorySweeperLight/src/stdafx.cxx b/plugins/HistorySweeperLight/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/HistorySweeperLight/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 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 . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/HistorySweeperLight/src/stdafx.h b/plugins/HistorySweeperLight/src/stdafx.h new file mode 100644 index 0000000000..1821ebdee5 --- /dev/null +++ b/plugins/HistorySweeperLight/src/stdafx.h @@ -0,0 +1,65 @@ +/* +Miranda IM History Sweeper Light plugin +Copyright (C) 2002-2003 Sergey V. Gershovich +Copyright (C) 2006-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, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ +#ifndef __HISTORYSWEEPERLIGHT_H__ +#define __HISTORYSWEEPERLIGHT_H__ + +#if !defined( _WIN64 ) + #define _USE_32BIT_TIME_T +#endif + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" +#include "version.h" + +// Plugin name +#define ModuleName "History Sweeper Light" + +// main.c +extern HINSTANCE hInst; +extern LIST g_hWindows; + +// options.c +extern char* time_stamp_strings[]; +extern char* keep_strings[]; +int HSOptInitialise(WPARAM wParam, LPARAM lParam); +void InitIcons(void); +void ReleaseIconEx(const char* name); +HICON LoadIconEx(const char* name); +HANDLE GetIconHandle(const char* name); + +// historysweeper.c +void ShutdownAction(void); +int OnWindowEvent(WPARAM wParam, LPARAM lParam); +void SetSrmmIcon(MCONTACT hContact); + +#endif -- cgit v1.2.3