]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinapplication.h
Sourcecode hierarchy cleanup: Move class PixmapViewer from "src" to "src/panels/infor...
[dolphin.git] / src / dolphinapplication.h
index 4c65443612b777643ee7e7b85c507f34cc76da09..2e8f7e7d73160dd68eddd96b1e60e895829a4982 100644 (file)
 #define _DOLPHIN_APPLICATION_H
 
 #include <kuniqueapplication.h>
-#include <kurl.h>
 
 class DolphinMainWindow;
-class KUrl;
 
 /**
  * @brief Holds the application data which can be accessed.
@@ -56,34 +54,16 @@ public:
     /** @see KUniqueApplication::newInstance(). */
     virtual int newInstance();
 
-    /**
-     * Find out if Dolphin is closed directly by the user or
-     * by the session manager because the session is closed
-     */
-    bool closedBySessionManager() const;
-
-    /**
-     * This virtual function is called by the session manager when
-     * it closes Dolphin. It is reimplemented to make the information
-     * if Dolphin is closed by the session manager or not accessible in
-     * DolphinMainWindow (via the function closedBySessionManager()).
-     */
-    virtual void commitData(QSessionManager& sessionManager);
-
-public slots:
-    int openWindow(const KUrl& url);
-    int openSplitWindow(const KUrl& leftUrl,const KUrl& rightUrl);
+    /** Interface implementation for D-Bus Interface. */
+    int openWindow(const QString& urlString);
 
-protected:
+private:
     /** Called by the DolphinMainWindow to deregister. */
     void removeMainWindow(DolphinMainWindow* mainWindow);
 
 private:
     QList<DolphinMainWindow*> m_mainWindows;
     int m_lastId;
-
-    /** Is true if Dolphin is closed by the session manager **/
-    bool m_closedBySessionManager;
 };
 
 #endif