X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d7d4fb9d26773c2d729b49d71af10e1378381ff3..4b70446c17dff6646c11966670bcbe145d07c685:/src/dolphinapplication.h diff --git a/src/dolphinapplication.h b/src/dolphinapplication.h index 69d306863..69d07c36e 100644 --- a/src/dolphinapplication.h +++ b/src/dolphinapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006-2011 by Peter Penz * * Copyright (C) 2006 by Holger 'zecke' Freyther * * * * This program is free software; you can redistribute it and/or modify * @@ -18,47 +18,27 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ +#ifndef DOLPHIN_APPLICATION_H +#define DOLPHIN_APPLICATION_H -#ifndef _DOLPHIN_APPLICATION_H -#define _DOLPHIN_APPLICATION_H - -#include +#include class DolphinMainWindow; -/** - * - * DolphinApplication will hold application wide data which - * can be accessed. - * At first this will hold a list of DolphinMainWindows which - * we will delete on application exit. - */ - -class DolphinApplication : public KApplication { +class DolphinApplication : public KApplication +{ Q_OBJECT - friend class DolphinMainWindow; + public: DolphinApplication(); - ~DolphinApplication(); + virtual ~DolphinApplication(); static DolphinApplication* app(); - /** - * Construct a new mainwindow which is owned - * by the application. - */ - DolphinMainWindow* createMainWindow(); - void refreshMainWindows(); - -protected: - /** - * called by the MainWindow to deregister - */ - void removeMainWindow( DolphinMainWindow* ); + void restoreSession(); private: - QList m_mainWindows; + DolphinMainWindow* m_mainWindow; }; - #endif