ReferenceBlock(const QString _xmlFile);
+ // getters
int getType();
inline QString getXmlFile() { return xmlFile; }
- inline QString getBriefDescription() { return descriptionBrief; }
- inline QString getDetailedDescription() { return descriptionDetail; }
+ inline QString getDescription() { return description; }
inline QList<int> getCategories() { return categories; }
inline QList<BlockImplementation *> getImplementations() { return implementations; }
- inline QString getHashMd5() { return hashMd5; }
-
+ inline QString getHashMd5() { return hashMd5; }
inline AbstractBlock* getParent() { return NULL; }
+ QList<QString> getExternalResources();
- void addCategory(int id);
- void setBriefDescription(const QString& str);
- void setDetailedDescription(const QString& str);
+ // setters
+ void setDescription(const QString& str);
+
+ // others
void addImplementation(BlockImplementation* impl);
+ void addCategory(int id);
void load(QDomElement &elt) throw(Exception);
void setHashMd5();
private:
QString xmlFile; // the xml file from which attributes are initialized.
QString hashMd5;
- QString descriptionBrief;
- QString descriptionDetail;
+ QString description;
QList<int> categories;
QList<BlockImplementation *> implementations; // set when implementations are read