From abf17941f7a052d25788d2f2f3c84e5aae935e29 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 18 Feb 2007 17:01:36 +0000 Subject: Dolphin is now a KUniqueApplication. A lot of thanks go to Oscar Blumberg, who submitted this patch. svn path=/trunk/KDE/kdebase/apps/; revision=634862 --- src/dolphinapplication.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/dolphinapplication.h') diff --git a/src/dolphinapplication.h b/src/dolphinapplication.h index fc1a564c8..fa6a1ceee 100644 --- a/src/dolphinapplication.h +++ b/src/dolphinapplication.h @@ -22,7 +22,7 @@ #ifndef _DOLPHIN_APPLICATION_H #define _DOLPHIN_APPLICATION_H -#include +#include class DolphinMainWindow; @@ -32,9 +32,10 @@ class DolphinMainWindow; * we will delete on application exit. */ -class DolphinApplication : public KApplication +class DolphinApplication : public KUniqueApplication { Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.Application") friend class DolphinMainWindow; public: @@ -50,12 +51,16 @@ public: DolphinMainWindow* createMainWindow(); void refreshMainWindows(); +public slots: + int openWindow(const QString& url); + protected: /** Called by the DolphinMainWindow to deregister. */ void removeMainWindow(DolphinMainWindow* mainWindow); private: QList m_mainWindows; + int m_lastId; }; #endif -- cgit v1.3