123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef CTKEVENT_H
- #define CTKEVENT_H
- #include "CTKPluginFrameworkExport.h"
- #include <QMap>
- #include <QVariant>
- #include <QStringList>
- #include <ctkLDAPSearchFilter.h>
- class ctkEventPrivate;
- class CTK_PLUGINFW_EXPORT ctkEvent {
- public:
- typedef QMap<QString, QVariant> 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
|