24#include <QElapsedTimer>
44 void setType(Type type);
46 bool isFolder()
const;
48 bool isSeparator()
const;
51 QList<BookmarkItem*> children()
const;
54 void setIcon(
const QIcon &icon);
56 QString urlString()
const;
59 void setUrl(
const QUrl &url);
61 QString title()
const;
62 void setTitle(
const QString &title);
64 QString description()
const;
65 void setDescription(
const QString &description);
67 QString keyword()
const;
68 void setKeyword(
const QString &keyword);
70 int visitCount()
const;
71 void setVisitCount(
int count);
74 void updateVisitCount();
77 bool isExpanded()
const;
78 void setExpanded(
bool expanded);
81 bool isSidebarExpanded()
const;
82 void setSidebarExpanded(
bool expanded);
87 static Type typeFromString(
const QString &
string);
88 static QString typeToString(Type type);
93 QList<BookmarkItem*> m_children;
97 QString m_description;
100 QElapsedTimer m_iconTime;
103 bool m_sidebarExpanded;