ctkEvent.h 701 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef CTKEVENT_H
  2. #define CTKEVENT_H
  3. #include "CTKPluginFrameworkExport.h"
  4. #include <QMap>
  5. #include <QVariant>
  6. #include <QStringList>
  7. #include <ctkLDAPSearchFilter.h>
  8. class ctkEventPrivate;
  9. class CTK_PLUGINFW_EXPORT ctkEvent {
  10. public:
  11. ctkEvent(const QString& topic, const ctkDictionary& properties = ctkDictionary());
  12. ctkEvent(const ctkEvent& event);
  13. ~ctkEvent();
  14. bool operator==(const ctkEvent& other) const;
  15. QVariant property(const QString& name) const;
  16. QStringList propertyNames() const;
  17. const QString& topic() const;
  18. bool matches(const ctkLDAPSearchFilter& filter) const;
  19. protected:
  20. ctkEventPrivate * const d;
  21. };
  22. #endif // CTKEVENT_H