#ifndef XMLDRIVER_H #define XMLDRIVER_H #include #include #include #include #include "XMLdata.h" #include "socexplorerxmlfile.h" class XMLDriver : public QObject { Q_OBJECT public: explicit XMLDriver(QObject *parent = 0); //! Check that the given file is a readable Xml file. int checkXmlFile(const QString& fileName); int createXmlFile(const QString& fileName); //! Return the list of all xml nodes with the given tag name in cached Xml files. QList getFileList(const QString& tagNameFilter); QList getAllNodes(const QString& tagName); public slots: void registerXmlFile(const QString &fileName); //! Reload all xmlFiles. void scanXmlFiles(); signals: private: QList* xmlFiles; }; #endif // XMLDRIVER_H