]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placespanel.h
Places Panel: Implement eject and teardown actions
[dolphin.git] / src / panels / places / placespanel.h
index c9ea7ba048cef94d0bcfcf811430ae3226df3584..7baefd9e8cbd07714513063536b9c1f413f308df 100644 (file)
@@ -26,7 +26,9 @@
 #include <KUrl>
 #include <panels/panel.h>
 
+class KStandardItem;
 class KItemListController;
+class PlacesItemEditDialog;
 class PlacesItemModel;
 
 /**
@@ -43,6 +45,7 @@ public:
 signals:
     void placeActivated(const KUrl& url);
     void placeMiddleClicked(const KUrl& url);
+    void errorMessage(const QString& error);
 
 protected:
     virtual bool urlChanged();
@@ -61,6 +64,18 @@ private:
     void addEntry();
     void editEntry(int index);
 
+    /**
+     * Selects the item that has the closest URL for the URL set
+     * for the panel (see Panel::setUrl()).
+     */
+    void selectClosestItem();
+
+    /**
+     * @return New instance of a KStandardItem containing the properties that have
+     *         been set in the places-dialog.
+     */
+    KStandardItem* createStandardItemFromDialog(PlacesItemEditDialog* dialog) const;
+
 private:
     KItemListController* m_controller;
     PlacesItemModel* m_model;