X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f31a541925033c2ef5e27b85c099d47791b50121..006f667ab14aff2d067373e7e88bde4800b2d9c2:/src/dolphinapplication.h diff --git a/src/dolphinapplication.h b/src/dolphinapplication.h index a8474bd36..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 * @@ -15,50 +15,30 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 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