00001 #ifndef __Q_EVENT_DATA_HH__ 00002 #define __Q_EVENT_DATA_HH__ 00003 00004 #include "QCuore.hh" 00005 #include <string> 00006 00007 Q_BEGIN_NAMESPACE 00008 00009 class QEventData { 00010 00011 public: 00012 QEventData(std::string fName); 00013 00014 virtual ~QEventData() {} 00015 00016 bool IsToBeStored() const { return fToBeStored; } 00017 00018 bool IsSet() const { return fIsSet; } 00019 00020 const std::string& GetName() {return fName;} 00021 00022 protected: 00023 virtual void Clear() = 0; 00024 00025 std::string fName; 00026 00027 inline void Store() { fToBeStored = true; } 00028 00029 inline void SetIsSet(bool isSet) { fIsSet = isSet; } 00030 00031 private: 00032 bool fToBeStored; 00033 00034 bool fIsSet; 00035 00036 friend class QEvent; 00037 00038 }; 00039 00040 Q_END_NAMESPACE 00041 00042 #endif