summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-05 15:57:00 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-05 15:57:00 +0100
commit912fd7a922beaeecdf602fa9d70964aee2a6bb63 (patch)
tree5a81a17f720232c2212f5273acc0e74002848a3a /include/modules
parentb9c6792cd6123d9c6c0c30df75b0afe09258376f (diff)
m_cap Provide the OnCapAddDel() event
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cap.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h
index e242720b5..e05263ad3 100644
--- a/include/modules/cap.h
+++ b/include/modules/cap.h
@@ -42,6 +42,21 @@ namespace Cap
CAP_302
};
+ class EventListener : public Events::ModuleEventListener
+ {
+ public:
+ EventListener(Module* mod)
+ : ModuleEventListener(mod, "event/cap")
+ {
+ }
+
+ /** Called whenever a new client capability becomes available or unavailable
+ * @param cap Capability being added or removed
+ * @param add If true, the capability is being added, otherwise its being removed
+ */
+ virtual void OnCapAddDel(Capability* cap, bool add) = 0;
+ };
+
class Manager : public DataProvider
{
public: