┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinapplication.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-18 17:01:36 +0000
committerPeter Penz <[email protected]>2007-02-18 17:01:36 +0000
commitabf17941f7a052d25788d2f2f3c84e5aae935e29 (patch)
tree4f89cd4d58b0b6033cc91f2eb14c02291f8c3a1c /src/dolphinapplication.h
parentfd43139134da394e413c5d7d5518275379e67798 (diff)
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
Diffstat (limited to 'src/dolphinapplication.h')
-rw-r--r--src/dolphinapplication.h9
1 files changed, 7 insertions, 2 deletions
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 <kapplication.h>
+#include <kuniqueapplication.h>
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<DolphinMainWindow*> m_mainWindows;
+ int m_lastId;
};
#endif