not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / shells / screensaver / savercorona.h
blobc5aac58753b7dae9c8576391fa98d605ed4c7594
1 /*
2 * Copyright 2008 Aaron Seigo <aseigo@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef SAVERCORONA_H
21 #define SAVERCORONA_H
23 #include <QtGui/QGraphicsScene>
25 #include <Plasma/Corona>
27 /**
28 * @short A Corona with desktop-y considerations
30 class SaverCorona : public Plasma::Corona
32 Q_OBJECT
34 public:
35 explicit SaverCorona(QObject * parent = 0);
37 /**
38 * Loads the default (system wide) layout for this user
39 **/
40 void loadDefaultLayout();
42 virtual int numScreens() const;
43 virtual QRect screenGeometry(int id) const;
45 protected Q_SLOTS:
47 private:
48 void init();
50 int m_numScreens;
53 #endif