]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placesitem.h
Let the places-item determine the group itself
[dolphin.git] / src / panels / places / placesitem.h
index fc6a5f0786a353ac544a932d80275175970d66cd..81fbe5c609739eaf740a17aaa77fa08a7595e492 100644 (file)
@@ -38,6 +38,14 @@ class PlacesItem : public KStandardItem
 {
 
 public:
+    enum GroupType
+    {
+        PlacesType,
+        SearchForType,
+        RecentlyAccessedType,
+        DevicesType
+    };
+
     explicit PlacesItem(const KBookmark& bookmark, PlacesItem* parent = 0);
     explicit PlacesItem(const PlacesItem& item);
     virtual ~PlacesItem();
@@ -59,6 +67,8 @@ public:
     void setBookmark(const KBookmark& bookmark);
     KBookmark bookmark() const;
 
+    GroupType groupType() const;
+
     static KBookmark createBookmark(KBookmarkManager* manager,
                                     const QString& text,
                                     const KUrl& url,