From 4a966be3c32e745b2567e51c27766942f798f77d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 26 Jul 2015 12:33:08 +0000 Subject: common projects git-svn-id: http://svn.miranda-ng.org/main/trunk@14724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotifyAnything/src/common.h | 50 ---------------------------------- plugins/NotifyAnything/src/main.cpp | 2 +- plugins/NotifyAnything/src/options.cpp | 2 +- plugins/NotifyAnything/src/stdafx.cpp | 18 ------------ plugins/NotifyAnything/src/stdafx.cxx | 18 ++++++++++++ plugins/NotifyAnything/src/stdafx.h | 50 ++++++++++++++++++++++++++++++++++ 6 files changed, 70 insertions(+), 70 deletions(-) delete mode 100644 plugins/NotifyAnything/src/common.h delete mode 100644 plugins/NotifyAnything/src/stdafx.cpp create mode 100644 plugins/NotifyAnything/src/stdafx.cxx create mode 100644 plugins/NotifyAnything/src/stdafx.h (limited to 'plugins/NotifyAnything/src') diff --git a/plugins/NotifyAnything/src/common.h b/plugins/NotifyAnything/src/common.h deleted file mode 100644 index 3b2ee7f221..0000000000 --- a/plugins/NotifyAnything/src/common.h +++ /dev/null @@ -1,50 +0,0 @@ -#define _CRT_SECURE_NO_DEPRECATE - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "newpluginapi.h" -#include "m_options.h" -#include "m_skin.h" -#include "m_langpack.h" -#include "m_database.h" -#include "m_popup.h" - -#include "resource.h" -#include "Version.h" - -extern HINSTANCE hInst; - -const char PlugName[] = "NotifyAnything"; - -//--------------------------- -//---Internal Hooks (see main.c) -//---(Workaround till CallServiceSync is available) - -struct NASettings { - enum sound_t { never, always, request }; - - bool local_only, debug_messages, log_to_file, use_pcspeaker, allow_execute; - sound_t sound; - int port; - std::tstring password, log_filename; -}; - -extern NASettings g_settings; - -void stop_threads(); -void start_threads(); - -void save_settings(); -void load_settings(); - -int OptionsInitialize(WPARAM wParam, LPARAM lParam); - -extern std::tstring g_mirandaDir; -#define LOG_ID LPGEN("NotifyAnything") diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index c82c54019f..932b307f84 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" void cslog(const TCHAR *what, const TCHAR *file, int line) { diff --git a/plugins/NotifyAnything/src/options.cpp b/plugins/NotifyAnything/src/options.cpp index 109654a678..589c0f79f0 100644 --- a/plugins/NotifyAnything/src/options.cpp +++ b/plugins/NotifyAnything/src/options.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" NASettings g_settings; diff --git a/plugins/NotifyAnything/src/stdafx.cpp b/plugins/NotifyAnything/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/NotifyAnything/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 "common.h" \ No newline at end of file diff --git a/plugins/NotifyAnything/src/stdafx.cxx b/plugins/NotifyAnything/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/NotifyAnything/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/NotifyAnything/src/stdafx.h b/plugins/NotifyAnything/src/stdafx.h new file mode 100644 index 0000000000..3b2ee7f221 --- /dev/null +++ b/plugins/NotifyAnything/src/stdafx.h @@ -0,0 +1,50 @@ +#define _CRT_SECURE_NO_DEPRECATE + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "newpluginapi.h" +#include "m_options.h" +#include "m_skin.h" +#include "m_langpack.h" +#include "m_database.h" +#include "m_popup.h" + +#include "resource.h" +#include "Version.h" + +extern HINSTANCE hInst; + +const char PlugName[] = "NotifyAnything"; + +//--------------------------- +//---Internal Hooks (see main.c) +//---(Workaround till CallServiceSync is available) + +struct NASettings { + enum sound_t { never, always, request }; + + bool local_only, debug_messages, log_to_file, use_pcspeaker, allow_execute; + sound_t sound; + int port; + std::tstring password, log_filename; +}; + +extern NASettings g_settings; + +void stop_threads(); +void start_threads(); + +void save_settings(); +void load_settings(); + +int OptionsInitialize(WPARAM wParam, LPARAM lParam); + +extern std::tstring g_mirandaDir; +#define LOG_ID LPGEN("NotifyAnything") -- cgit v1.2.3