From 467560928b83c1d6c405d2cbaf7127de65298ae7 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 1 Aug 2015 20:34:40 +0000 Subject: watrack_mpd: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14797 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Watrack_MPD/src/commonheaders.h | 48 --------------------------------- plugins/Watrack_MPD/src/init.cpp | 2 +- plugins/Watrack_MPD/src/main.cpp | 2 +- plugins/Watrack_MPD/src/options.cpp | 2 +- plugins/Watrack_MPD/src/stdafx.cpp | 18 ------------- plugins/Watrack_MPD/src/stdafx.cxx | 18 +++++++++++++ plugins/Watrack_MPD/src/stdafx.h | 46 +++++++++++++++++++++++++++++++ plugins/Watrack_MPD/src/utilities.cpp | 2 +- 8 files changed, 68 insertions(+), 70 deletions(-) delete mode 100755 plugins/Watrack_MPD/src/commonheaders.h delete mode 100644 plugins/Watrack_MPD/src/stdafx.cpp create mode 100644 plugins/Watrack_MPD/src/stdafx.cxx create mode 100755 plugins/Watrack_MPD/src/stdafx.h (limited to 'plugins/Watrack_MPD/src') diff --git a/plugins/Watrack_MPD/src/commonheaders.h b/plugins/Watrack_MPD/src/commonheaders.h deleted file mode 100755 index 6accba7365..0000000000 --- a/plugins/Watrack_MPD/src/commonheaders.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright © 2008 sss, chaos.persei -// -// 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 COMMONHEADERS_H -#define COMMONHEADERS_H - -#define _CRT_SECURE_NO_WARNINGS - -#include - -#include -#include -#include -#include -#include -#include - -#include - -#include "resource.h" -#include "utilities.h" -#include "Version.h" - -#define szModuleName "Watrack_MPD" - -extern HINSTANCE hInst; -extern HANDLE ghNetlibUser; -extern BOOL bWatrackService; -extern TCHAR *gbHost, *gbPassword; -extern WORD gbPort; -extern char *date(); - -extern int WaMpdOptInit(WPARAM, LPARAM); -extern void RegisterPlayer(); - -#endif diff --git a/plugins/Watrack_MPD/src/init.cpp b/plugins/Watrack_MPD/src/init.cpp index 2d50447cdd..7f7a1f5f9c 100755 --- a/plugins/Watrack_MPD/src/init.cpp +++ b/plugins/Watrack_MPD/src/init.cpp @@ -14,7 +14,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 "commonheaders.h" +#include "stdafx.h" HINSTANCE hInst; BOOL bWatrackService = FALSE; diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp index 567d1c00d7..4a157b7f5e 100755 --- a/plugins/Watrack_MPD/src/main.cpp +++ b/plugins/Watrack_MPD/src/main.cpp @@ -14,7 +14,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 "commonheaders.h" +#include "stdafx.h" HANDLE ghConnection; HANDLE ghPacketReciever; diff --git a/plugins/Watrack_MPD/src/options.cpp b/plugins/Watrack_MPD/src/options.cpp index 2e40d2f098..5ce485d475 100755 --- a/plugins/Watrack_MPD/src/options.cpp +++ b/plugins/Watrack_MPD/src/options.cpp @@ -14,7 +14,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 "commonheaders.h" +#include "stdafx.h" static INT_PTR CALLBACK DlgProcWaMpdOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { diff --git a/plugins/Watrack_MPD/src/stdafx.cpp b/plugins/Watrack_MPD/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/Watrack_MPD/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 "commonheaders.h" \ No newline at end of file diff --git a/plugins/Watrack_MPD/src/stdafx.cxx b/plugins/Watrack_MPD/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Watrack_MPD/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/Watrack_MPD/src/stdafx.h b/plugins/Watrack_MPD/src/stdafx.h new file mode 100755 index 0000000000..c35bd05288 --- /dev/null +++ b/plugins/Watrack_MPD/src/stdafx.h @@ -0,0 +1,46 @@ +// Copyright © 2008 sss, chaos.persei +// +// 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 COMMONHEADERS_H +#define COMMONHEADERS_H + +#include + +#include +#include +#include +#include +#include +#include + +#include + +#include "resource.h" +#include "utilities.h" +#include "Version.h" + +#define szModuleName "Watrack_MPD" + +extern HINSTANCE hInst; +extern HANDLE ghNetlibUser; +extern BOOL bWatrackService; +extern TCHAR *gbHost, *gbPassword; +extern WORD gbPort; +extern char *date(); + +extern int WaMpdOptInit(WPARAM, LPARAM); +extern void RegisterPlayer(); + +#endif diff --git a/plugins/Watrack_MPD/src/utilities.cpp b/plugins/Watrack_MPD/src/utilities.cpp index 1375cc2bc1..735c5f121a 100755 --- a/plugins/Watrack_MPD/src/utilities.cpp +++ b/plugins/Watrack_MPD/src/utilities.cpp @@ -15,7 +15,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include "commonheaders.h" +#include "stdafx.h" TCHAR* __stdcall UniGetContactSettingUtf(MCONTACT hContact, const char *szModule,const char* szSetting, TCHAR* szDef) { -- cgit v1.2.3