]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
Use a stat job to determine the caption on non-file URLs. This way we get the fancy...
[dolphin.git] / src / dolphinmainwindow.h
index 269c71844d281ac88f70ece8553c8c3c55d7e5d0..c1411319a196290b7df0a4d8d79a1094c226e4d9 100644 (file)
@@ -49,6 +49,7 @@ class KNewMenu;
 class KTabBar;
 class KUrl;
 class QSplitter;
+class KJob;
 
 /**
  * @short Main window for Dolphin.
@@ -78,7 +79,7 @@ public:
      * option is enabled, 2 directories are collected within one tab.
      */
     void openDirectories(const QList<KUrl>& dirs);
-    
+
     /**
      * Opens the directory which contains the files \p files
      * and selects all files (implements the --select option
@@ -423,6 +424,12 @@ private slots:
      */
     void handleUrl(const KUrl& url);
 
+    /**
+     * setUrlAsCaption will trigger a stat job which reports its result in
+     * this slot.
+     */
+    void slotCaptionStatFinished( KJob* job );
+
 private:
     DolphinMainWindow(int id);
     void init();
@@ -523,6 +530,8 @@ private:
     DolphinViewActionHandler* m_actionHandler;
     DolphinRemoteEncoding* m_remoteEncoding;
     QPointer<DolphinSettingsDialog> m_settingsDialog;
+
+    KJob* m_captionStatJob;
 };
 
 inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const