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