diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-10 19:26:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-10 19:26:03 +0000 |
commit | 271cf1987ef0dc4d6561d14e0ba89c17bb125903 (patch) | |
tree | ef7d07417ad78bb9701dee50ee5877f044f8fde4 /plugins/NotifyAnything/src/common.h | |
parent | e8688ad378c46c963c66fa6a4c09b9419e02efc0 (diff) |
NotifyAnything plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@3539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotifyAnything/src/common.h')
-rw-r--r-- | plugins/NotifyAnything/src/common.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/NotifyAnything/src/common.h b/plugins/NotifyAnything/src/common.h new file mode 100644 index 0000000000..264b5adee8 --- /dev/null +++ b/plugins/NotifyAnything/src/common.h @@ -0,0 +1,61 @@ +// disable warnings about underscore in stdc functions
+#pragma warning(disable: 4996)
+
+#include <windows.h>
+
+#include <string.h>
+#include <stdio.h>
+#include <winsock.h>
+#include <time.h>
+#include <stdio.h>
+#include <direct.h>
+#include <process.h>
+#include <sys/types.h>
+#include <sys/timeb.h>
+
+#include <string>
+#include <map>
+#include <set>
+#include <vector>
+
+#include "newpluginapi.h"
+#include "m_system_cpp.h"
+#include "m_options.h"
+#include "m_skin.h"
+#include "m_langpack.h"
+#include "m_database.h"
+#include "m_utils.h"
+
+#include "m_popup.h"
+#include "m_LogService.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::string 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::string g_mirandaDir;
+extern bool IsLogService;
+#define LOG_ID "NotifyAnything"
|