#ifndef CTKEVENT_H #define CTKEVENT_H #include "CTKPluginFrameworkExport.h" #include #include #include #include class ctkEventPrivate; class CTK_PLUGINFW_EXPORT ctkEvent { public: typedef QMap Properties; //TODO: what are we doing about malformed topic strings? Use exceptions in CTK? ctkEvent(const QString& topic, const ctkLDAPSearchFilter::Dictionary& properties = Properties()); ctkEvent(const ctkEvent& event); ~ctkEvent(); bool operator==(const ctkEvent& other) const; QVariant property(const QString& name) const; QStringList propertyNames() const; const QString& topic() const; bool matches(const ctkLDAPSearchFilter& filter) const; protected: ctkEventPrivate * const d; }; #endif // CTKEVENT_H