summaryrefslogtreecommitdiff
path: root/plugins/MirFox/src/MirfoxMiranda.h
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2016-05-31 21:41:30 +0000
committerSzymon Tokarz <wsx22@o2.pl>2016-05-31 21:41:30 +0000
commit9ba730bc48e44630b418f4214aee57c7b7c987bd (patch)
treecc9a0341bcc2ab947b9047890bf0e1b88ad38737 /plugins/MirFox/src/MirfoxMiranda.h
parente2a1d9a9b2cf04583a3e97a9a2305256357cc443 (diff)
[MirFox]
Immediately refresh data in Firefox menu when Miranda contact or account is added, renamed, deleted, enabled or disabled, hide or unhide. Add "Add acount to contact name" option. git-svn-id: http://svn.miranda-ng.org/main/trunk@16892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirFox/src/MirfoxMiranda.h')
-rw-r--r--plugins/MirFox/src/MirfoxMiranda.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/MirFox/src/MirfoxMiranda.h b/plugins/MirFox/src/MirfoxMiranda.h
index 0bcce0cf99..31cb61f99c 100644
--- a/plugins/MirFox/src/MirfoxMiranda.h
+++ b/plugins/MirFox/src/MirfoxMiranda.h
@@ -5,6 +5,14 @@
#include "MirandaUtils.h"
+class CMirfoxMiranda;
+
+
+struct OnContactAsyncThreadArgStruct {
+ MCONTACT hContact;
+ CMirfoxMiranda* mirfoxMiranda;
+};
+
class CMirfoxMiranda
{
@@ -18,10 +26,20 @@ public:
MirfoxData& getMirfoxData();
+ SharedMemoryUtils& getSharedMemoryUtils();
+
int onMirandaInterfaceLoad();
int onMirandaInterfaceUnload();
+ //hooks support - to refresh data
+ void onAccListChanged(WPARAM wParam, LPARAM lParam);
+ static void onContactAdded_async(void* threadArg); //at async new thread
+ void onContactDeleted(MCONTACT hContact);
+ void onContactSettingChanged(MCONTACT hContact, LPARAM lParam);
+ static void onContactSettingChanged_async(void* threadArg); //at async new thread
+
+
//csm maintanance thread function (threadArg - pointer to this CMirfoxMiranda class instance)
static void csmThread(void* threadArg);