summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/actions.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-05 15:27:21 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-05 15:27:26 +0300
commit63ed39f2286560d410b97b6b6ad75e9ed68cd30e (patch)
treeb46a607dde8407e3cbb4356e80c89832e33127d6 /plugins/Popup/src/actions.h
parentd933dad982eaee4f82e9d31dade1beaf0d3cf50f (diff)
Popup+ specific functionality localized inside Popup+
Diffstat (limited to 'plugins/Popup/src/actions.h')
-rw-r--r--plugins/Popup/src/actions.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/Popup/src/actions.h b/plugins/Popup/src/actions.h
index bfdaf8591d..c7833e456a 100644
--- a/plugins/Popup/src/actions.h
+++ b/plugins/Popup/src/actions.h
@@ -24,6 +24,64 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __actions_h__
#define __actions_h__
+// Popup/RegisterNotification
+// Registers your action in popup action list
+// wParam = (WPARAM)(LPPOPUPNOTIFICATION)info
+// lParam = 0
+// Returns: handle of registered notification or sero on failure
+
+#define PNAF_CALLBACK 0x01
+
+#define POPUP_ACTION_NOTHING LPGEN("Do nothing")
+#define POPUP_ACTION_DISMISS LPGEN("Dismiss popup")
+
+struct POPUPNOTIFYACTION
+{
+ char lpzTitle[64];
+ uint32_t dwFlags;
+ union
+ {
+ struct
+ {
+ char lpzLModule[MAXMODULELABELLENGTH];
+ char lpzLSetting[MAXMODULELABELLENGTH];
+ DBVARIANT dbvLData;
+ char lpzRModule[MAXMODULELABELLENGTH];
+ char lpzRSetting[MAXMODULELABELLENGTH];
+ DBVARIANT dbvRData;
+ };
+ struct
+ {
+ uint32_t dwCookie;
+ void(*pfnCallback)(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, uint32_t cookie);
+ };
+ };
+};
+
+#define PNF_CONTACT 0x01
+
+struct POPUPNOTIFICATION
+{
+ int cbSize;
+ uint32_t dwFlags; // set of PNF_* flags
+ char lpzGroup[MAXMODULELABELLENGTH];
+ char lpzName[MAXMODULELABELLENGTH];
+ HANDLE lchIcoLib; // gotten from icolib
+ COLORREF colorBack; // this will be registered in fontservice
+ COLORREF colorText; // this will be registered in fontservice
+ int iSeconds; // default timeout
+ int actionCount; // for unified action comboboxes
+ POPUPNOTIFYACTION *lpActions;
+ char *lpzLAction;
+ char *lpzRAction;
+ char *pszReserved1; // reserved for future use
+ #ifdef _WINDOWS
+ DLGPROC pfnReserved2; // reserved for future use
+ #endif
+};
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void LoadActions();
void UnloadActions();