X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c0922a81d88affaded8b8ff22b8671eedecf900c..39f89141b06c:/src/dolphinapplication.h diff --git a/src/dolphinapplication.h b/src/dolphinapplication.h index 4c6544361..2e8f7e7d7 100644 --- a/src/dolphinapplication.h +++ b/src/dolphinapplication.h @@ -23,10 +23,8 @@ #define _DOLPHIN_APPLICATION_H #include -#include 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 m_mainWindows; int m_lastId; - - /** Is true if Dolphin is closed by the session manager **/ - bool m_closedBySessionManager; }; #endif