00001 #ifndef IDATTRIBUTE_H 00002 #define IDATTRIBUTE_H 00003 00004 #include <QString> 00005 #include "iattribute.h" 00006 #include "scdatamodel_global.h" 00007 #include <QMetaType> 00008 00009 00010 class SCDATAMODELSHARED_EXPORT IDAttribute: public IAttribute 00011 { 00012 public: 00013 IDAttribute(); 00014 00015 IDAttribute(QObject* parent,QString key,QPointF p); 00016 00017 IDAttribute(QObject* parent,QString key,QString s); 00018 00019 ~IDAttribute(); 00020 00021 IDAttribute& operator=( IDAttribute& sa ); 00022 00023 QString asString(); 00024 00025 void setValue(const QString id); 00026 00027 private : 00028 QString _id; 00029 00030 }; 00031 00032 00033 Q_DECLARE_METATYPE(IDAttribute); 00034 00035 #endif // IDATTRIBUTE_H