File indexing completed on 2024-05-12 17:11:43
0001 #ifndef CONNECTIONACCEPTER_H 0002 #define CONNECTIONACCEPTER_H 0003 0004 #include <QMap> 0005 #include <QString> 0006 #include <QVariant> 0007 0008 /** 0009 * @brief The ConnectionAccepter class abstract class to implement chain of responsability 0010 */ 0011 class ConnectionAccepter 0012 { 0013 public: 0014 ConnectionAccepter(); 0015 void setNext(ConnectionAccepter* next); 0016 0017 virtual bool isValid(const QMap<QString, QVariant>& data)= 0; 0018 0019 bool isActive() const; 0020 void setIsActive(bool isActive); 0021 0022 protected: 0023 ConnectionAccepter* m_next; 0024 bool m_isActive; 0025 }; 0026 0027 #endif // CONNECTIONACCEPTER_H