diff options
Diffstat (limited to 'src/frontend/mainindex/bookmarks/btbookmarkloader.h')
-rw-r--r-- | src/frontend/mainindex/bookmarks/btbookmarkloader.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/frontend/mainindex/bookmarks/btbookmarkloader.h b/src/frontend/mainindex/bookmarks/btbookmarkloader.h index 3ae0bb6..7a981d9 100644 --- a/src/frontend/mainindex/bookmarks/btbookmarkloader.h +++ b/src/frontend/mainindex/bookmarks/btbookmarkloader.h @@ -22,26 +22,25 @@ class QTreeWidgetItem; /** * Class for loading and saving bookmarks. */ -class BtBookmarkLoader -{ -public: - /** Loads a list of items (with subitem trees) from a named file - * or from the default bookmarks file. */ - QList<QTreeWidgetItem*> loadTree(QString fileName=QString::null); - - /** Takes one item and saves the tree which is under it to a named file - * or to the default bookmarks file, asking the user about overwriting if necessary. */ - void saveTreeFromRootItem(QTreeWidgetItem* rootItem, QString fileName=QString::null, bool forceOverwrite=true); - -private: - /** Create a new item from a document element. */ - QTreeWidgetItem* handleXmlElement(QDomElement& element, QTreeWidgetItem* parent); - - /** Writes one item to a document element. */ - void saveItem(QTreeWidgetItem* item, QDomElement& parentElement); - - /** Loads a bookmark XML document from a named file or from the default bookmarks file. */ - QString loadXmlFromFile(QString fileName=QString::null); +class BtBookmarkLoader { + public: + /** Loads a list of items (with subitem trees) from a named file + * or from the default bookmarks file. */ + QList<QTreeWidgetItem*> loadTree(QString fileName = QString::null); + + /** Takes one item and saves the tree which is under it to a named file + * or to the default bookmarks file, asking the user about overwriting if necessary. */ + void saveTreeFromRootItem(QTreeWidgetItem* rootItem, QString fileName = QString::null, bool forceOverwrite = true); + + private: + /** Create a new item from a document element. */ + QTreeWidgetItem* handleXmlElement(QDomElement& element, QTreeWidgetItem* parent); + + /** Writes one item to a document element. */ + void saveItem(QTreeWidgetItem* item, QDomElement& parentElement); + + /** Loads a bookmark XML document from a named file or from the default bookmarks file. */ + QString loadXmlFromFile(QString fileName = QString::null); }; #endif |