summaryrefslogtreecommitdiff
path: root/plugins/MirFox/src/MirfoxMiranda.h
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2013-05-27 22:29:01 +0000
committerSzymon Tokarz <wsx22@o2.pl>2013-05-27 22:29:01 +0000
commitc628a13d98fde8d2555cc6fa8628e0b575021bd4 (patch)
treef25e89f902c0ac82c8f138badbca7f29d331ba18 /plugins/MirFox/src/MirfoxMiranda.h
parent2f2175b11692b8561fd1018161a62685910d08b0 (diff)
MirFox plugin for Miranda NG added
Version 0.5.0.0 Compatible Firefox addon is now available at: https://addons.mozilla.org/pl/firefox/addon/mirfox/versions/0.5.0.0 or http://wsx22.xpdev-hosted.com/ git-svn-id: http://svn.miranda-ng.org/main/trunk@4826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirFox/src/MirfoxMiranda.h')
-rw-r--r--plugins/MirFox/src/MirfoxMiranda.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/plugins/MirFox/src/MirfoxMiranda.h b/plugins/MirFox/src/MirfoxMiranda.h
new file mode 100644
index 0000000000..0d78e0cfc0
--- /dev/null
+++ b/plugins/MirFox/src/MirfoxMiranda.h
@@ -0,0 +1,60 @@
+#ifndef _MIRFOXMIRANDA_INC
+#define _MIRFOXMIRANDA_INC
+
+#include "MirfoxData.h"
+#include "MirandaUtils.h"
+
+
+
+class CMirfoxMiranda
+{
+
+public:
+ CMirfoxMiranda();
+ ~CMirfoxMiranda();
+
+
+ //functions needed by MirandaInterface and Miranda Options
+
+ MirfoxData& getMirfoxData();
+
+
+
+ bool onMirandaPluginInfoExCheck(DWORD actualMirandaVersion);
+
+ int onMirandaInterfaceLoad();
+
+ int onMirandaInterfaceUnload();
+
+ //csm maintanance thread function (threadArg - pointer to this CMirfoxMiranda class instance)
+ static void csmThread(void* threadArg);
+
+ //message queue thread function (threadArg - pointer to this CMirfoxMiranda class instance)
+ static void msgQueueThread(void* threadArg);
+
+
+
+private:
+
+ void initializeSharedMemory(MirfoxData& mirfoxData);
+ void initializeSharedMemoryData(MirfoxData& mirfoxData, SharedMemoryUtils* sharedMemoryUtils);
+ void commitSharedMemory();
+ void unloadSharedMemory();
+
+ void initializeMessageQueue(MirfoxData& mirfoxData);
+ void unloadMessageQueue(uint16_t unloadedMQProcessId);
+
+
+
+ MirfoxData mirfoxData;
+
+ SharedMemoryUtils* sharedMemoryUtils;
+ MirandaUtils* mirandaUtils;
+
+ MFLogger* logger;
+
+};
+
+
+
+#endif //#IFNDEF _MIRFOXMIRANDA_INC