diff options
Diffstat (limited to 'plugins/FavContacts/src')
-rw-r--r-- | plugins/FavContacts/src/Version.h | 14 | ||||
-rw-r--r-- | plugins/FavContacts/src/contact_cache.cpp | 2 | ||||
-rw-r--r-- | plugins/FavContacts/src/cserver.cpp | 7 | ||||
-rw-r--r-- | plugins/FavContacts/src/csocket.cpp | 6 | ||||
-rw-r--r-- | plugins/FavContacts/src/favlist.cpp | 0 | ||||
-rw-r--r-- | plugins/FavContacts/src/headers.h | 31 | ||||
-rw-r--r-- | plugins/FavContacts/src/http_api.cpp | 5 | ||||
-rw-r--r-- | plugins/FavContacts/src/main.cpp | 17 | ||||
-rw-r--r-- | plugins/FavContacts/src/resource.h | 5 | ||||
-rw-r--r-- | plugins/FavContacts/src/stdafx.cpp | 18 |
10 files changed, 53 insertions, 52 deletions
diff --git a/plugins/FavContacts/src/Version.h b/plugins/FavContacts/src/Version.h new file mode 100644 index 0000000000..4b66df1bea --- /dev/null +++ b/plugins/FavContacts/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 6
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Favourite contacts"
+#define __FILENAME "FavContacts.dll"
+#define __DESCRIPTION "Favourite contacts menu."
+#define __AUTHOR "Victor Pavlychko"
+#define __AUTHOREMAIL "nullbie@gmail.com"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2007-2009 Victor Pavlychko"
diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp index 19d3c42d82..3fa6b2b6ec 100644 --- a/plugins/FavContacts/src/contact_cache.cpp +++ b/plugins/FavContacts/src/contact_cache.cpp @@ -1,6 +1,4 @@ #include "headers.h"
-#include <time.h>
-#include <math.h>
int __cdecl CContactCache::OnDbEventAdded(WPARAM wParam, LPARAM lParam)
{
diff --git a/plugins/FavContacts/src/cserver.cpp b/plugins/FavContacts/src/cserver.cpp index 957d1a6048..b39c1df431 100644 --- a/plugins/FavContacts/src/cserver.cpp +++ b/plugins/FavContacts/src/cserver.cpp @@ -1,9 +1,4 @@ -#include <winsock2.h>
-#include <windows.h>
-#include <ws2tcpip.h>
-
-#include "csocket.h"
-#include "cserver.h"
+#include "headers.h"
void CServer::Start(int port, IConnectionProcessorFactory *connectionProcessorFactory, bool background)
{
diff --git a/plugins/FavContacts/src/csocket.cpp b/plugins/FavContacts/src/csocket.cpp index dfff16fbf1..c8a2b40503 100644 --- a/plugins/FavContacts/src/csocket.cpp +++ b/plugins/FavContacts/src/csocket.cpp @@ -1,8 +1,4 @@ -#include <winsock2.h>
-#include <windows.h>
-#include <ws2tcpip.h>
-
-#include "csocket.h"
+#include "headers.h"
int CSocket::Recv(char *buf, int count)
{
diff --git a/plugins/FavContacts/src/favlist.cpp b/plugins/FavContacts/src/favlist.cpp deleted file mode 100644 index e69de29bb2..0000000000 --- a/plugins/FavContacts/src/favlist.cpp +++ /dev/null diff --git a/plugins/FavContacts/src/headers.h b/plugins/FavContacts/src/headers.h index 12d91e847d..e5e6f21412 100644 --- a/plugins/FavContacts/src/headers.h +++ b/plugins/FavContacts/src/headers.h @@ -19,44 +19,40 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define _CRT_SECURE_NO_DEPRECATE
-
-#include <tchar.h>
#define _WIN32_WINNT 0x0501
+
+#include <winsock2.h>
#include <windows.h>
#include <commctrl.h>
-#include <stdio.h>
#include <malloc.h>
+#include <time.h>
+#include <math.h>
-#define MIRANDA_VER 0x0A00
#include <win2k.h>
#include <newpluginapi.h>
-#include <m_system.h>
#include <m_system_cpp.h>
#include <m_database.h>
#include <m_langpack.h>
-#include <m_button.h>
#include <m_clist.h>
#include <m_clc.h>
-#include <m_clui.h>
-#include <m_options.h>
#include <m_protosvc.h>
-#include <m_utils.h>
#include <m_skin.h>
#include <m_contacts.h>
#include <m_userinfo.h>
-#include <m_history.h>
-#include <m_addcontact.h>
#include <m_message.h>
-#include <m_file.h>
#include <m_icolib.h>
-#include <m_idle.h>
-#include <m_awaymsg.h>
#include <m_avatars.h>
-#include <m_toptoolbar.h>
#include <m_fontservice.h>
#include <m_hotkeys.h>
+#include <m_toptoolbar.h>
+
#include "resource.h"
+#include "version.h"
+#include "contact_cache.h"
+#include "http_api.h"
+#include "csocket.h"
+#include "cserver.h"
struct Options
{
@@ -78,11 +74,6 @@ struct Options HFONT hfntName, hfntSecond;
};
-
-#include "contact_cache.h"
-
extern Options g_Options;
extern CContactCache *g_contactCache;
-
#include "favlist.h"
-#include "http_api.h"
diff --git a/plugins/FavContacts/src/http_api.cpp b/plugins/FavContacts/src/http_api.cpp index fccd06968b..c4929e6c3c 100644 --- a/plugins/FavContacts/src/http_api.cpp +++ b/plugins/FavContacts/src/http_api.cpp @@ -1,10 +1,5 @@ #include "headers.h"
-#pragma comment(lib,"ws2_32.lib")
-
-#include "csocket.h"
-#include "cserver.h"
-
#define MS_FAVCONTACTS_OPEN_CONTACT "FavContacts/OpenContact"
class CHttpProcessor: public IConnectionProcessor
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index 0c1345d000..6271074da6 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -20,22 +20,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "headers.h"
-DWORD g_mirandaVersion;
HINSTANCE g_hInst;
int hLangpack;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Favourite Contacts",
- PLUGIN_MAKE_VERSION(0, 0, 0, 6),
- "Favourite contacts menu.",
- "code by Victor Pavlychko, icons by Angeli-Ka",
- "nullbie@gmail.com",
- "Copyright 2007-2009 Victor Pavlychko",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {CE2C0401-F9E0-40d7-8E95-1A4197D7AB04}
+ // {CE2C0401-F9E0-40D7-8E95-1A4197D7AB04}
{0xce2c0401, 0xf9e0, 0x40d7, {0x8e, 0x95, 0x1a, 0x41, 0x97, 0xd7, 0xab, 0x4}}
};
diff --git a/plugins/FavContacts/src/resource.h b/plugins/FavContacts/src/resource.h index 9466fd8859..ca419ff8ef 100644 --- a/plugins/FavContacts/src/resource.h +++ b/plugins/FavContacts/src/resource.h @@ -3,11 +3,7 @@ // Used by resource.rc
//
#define IDI_FAVOURITE 101
-#define IDI_ICON1 102
#define IDI_REGULAR 102
-#define IDD_DIALOG1 103
-#define IDD_LIST 103
-#define IDD_PROPPAGE_LARGE 107
#define IDD_OPTIONS 107
#define IDC_CLIST 1001
#define IDC_CHK_SECONDLINE 1003
@@ -22,7 +18,6 @@ #define IDC_CHK_GROUPS 1013
#define IDC_CHK_GROUPCOLUMS 1014
#define IDC_BTN_FONTS 1015
-#define IDC_TXT_RADIUS2 1016
#define IDC_TXT_MAXRECENT 1016
#define IDC_CHK_RIGHTAVATARS 1019
diff --git a/plugins/FavContacts/src/stdafx.cpp b/plugins/FavContacts/src/stdafx.cpp new file mode 100644 index 0000000000..48d92d3d56 --- /dev/null +++ b/plugins/FavContacts/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 "headers.h"
\ No newline at end of file |