10
10
#ifndef BTBOOKMARKFOLDER_H
11
11
#define BTBOOKMARKFOLDER_H
13
#include "btbookmarkitembase.h"
13
#include "frontend/mainindex/bookmarks/btbookmarkitembase.h"
15
16
#define CURRENT_SYNTAX_VERSION 1
18
class BtBookmarkFolder : public BtBookmarkItemBase
21
friend class BtBookmarkLoader;
22
BtBookmarkFolder(QTreeWidgetItem* parent, QString name);
23
~BtBookmarkFolder() {}
25
/** See the base class. */
26
virtual bool enableAction(const MenuAction action);
28
/** User gives a file from which to load items into this folder. */
29
virtual void exportBookmarks();
30
/** User gives a file to which items from this folder are saved. */
31
virtual void importBookmarks();
33
/** Creates a new folder under this. */
36
/** Returns a list of direct childs of this item. */
37
QList<QTreeWidgetItem*> getChildList() const;
39
/** Returns true if the given item is this or a direct or indirect subitem of this. */
40
bool hasDescendant(QTreeWidgetItem* item) const;
42
/** Creates a deep copy of this item. */
43
BtBookmarkFolder* deepCopy();
18
class BtBookmarkFolder : public BtBookmarkItemBase {
20
friend class BtBookmarkLoader;
21
BtBookmarkFolder(QTreeWidgetItem* parent, QString name);
22
~BtBookmarkFolder() {}
24
/** See the base class. */
25
virtual bool enableAction(const MenuAction action);
27
/** User gives a file from which to load items into this folder. */
28
virtual void exportBookmarks();
29
/** User gives a file to which items from this folder are saved. */
30
virtual void importBookmarks();
32
/** Creates a new folder under this. */
35
/** Returns a list of direct childs of this item. */
36
QList<QTreeWidgetItem*> getChildList() const;
38
/** Returns true if the given item is this or a direct or indirect subitem of this. */
39
bool hasDescendant(QTreeWidgetItem* item) const;
41
/** Creates a deep copy of this item. */
42
BtBookmarkFolder* deepCopy();