diff options
| author | Sebastian Trueg <[email protected]> | 2010-01-20 11:26:39 +0000 |
|---|---|---|
| committer | Sebastian Trueg <[email protected]> | 2010-01-20 11:26:39 +0000 |
| commit | a567da792ac6a337e9ffeb9468215ef4f2c326ce (patch) | |
| tree | 99aa559d21393e0b1959a27b70a1ccfa7dd39551 /src/dolphinmainwindow.h | |
| parent | b3ab00e8badfd0911e0d7af7a632b5ae0bf4fbaf (diff) | |
Use a stat job to determine the caption on non-file URLs. This way we get the fancy UDS_DISPLAY_NAMEs for
URLs like the nepomuksearch ones.
BUG: 222095
svn path=/trunk/KDE/kdebase/apps/; revision=1077551
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 269c71844..c1411319a 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -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 |
