| 82 | { |
| 83 | public: |
| 84 | struct Key |
| 85 | { |
| 86 | typedef QMap<QString, QString> AttributeMap; |
| 87 | |
| 88 | inline Key( const Plugin::Descriptor * desc = NULL, |
| 89 | const QString & name = QString(), |
| 90 | const AttributeMap & am = AttributeMap() ) |
| 91 | : |
| 92 | desc( desc ), |
| 93 | name( name ), |
| 94 | attributes( am ) |
| 95 | { |
| 96 | } |
| 97 | |
| 98 | Key( const QDomElement & key ); |
| 99 | |
| 100 | QDomElement saveXML( QDomDocument & doc ) const; |
| 101 | |
| 102 | inline bool isValid() const |
| 103 | { |
| 104 | return desc != NULL && name.isNull() == false; |
| 105 | } |
| 106 | |
| 107 | const Plugin::Descriptor* desc; |
| 108 | QString name; |
| 109 | AttributeMap attributes; |
| 110 | } ; |
| 111 | |
| 112 | typedef QList<Key> KeyList; |
| 113 |
no outgoing calls
no test coverage detected