superkaramba
karambamanager.h
Go to the documentation of this file.00001 /* 00002 * Copyright (c) 2007 Alexander Wiedenbruch <mail@wiedenbruch.de> 00003 * 00004 * This file is part of SuperKaramba. 00005 * 00006 * SuperKaramba is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * SuperKaramba is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with SuperKaramba; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 ****************************************************************************/ 00020 00021 #ifndef KARAMBA_MANAGER 00022 #define KARAMBA_MANAGER 00023 00024 #include <QObject> 00025 00026 #include "karamba.h" 00027 #include "superkaramba_export.h" 00028 00029 class SUPERKARAMBA_EXPORT KarambaManager : public QObject 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 static KarambaManager* self(); 00035 ~KarambaManager(); 00036 00037 void addKaramba(Karamba *newKaramba); 00038 void removeKaramba(Karamba *karamba); 00039 Karamba* getKaramba(const QString &prettyThemeName) const; 00040 Karamba* getKarambaByName(const QString &name) const; 00041 QList<Karamba*> getKarambas() const; 00042 bool checkKaramba(const Karamba *karamba) const; 00043 00044 Q_SIGNALS: 00045 void karambaStarted(QGraphicsItemGroup*); 00046 void karambaClosed(QGraphicsItemGroup*); 00047 00048 private: 00049 KarambaManager(); 00050 00051 class Private; 00052 Private* const d; 00053 00054 static KarambaManager *instance; 00055 }; 00056 00057 #endif
KDE 4.0 API Reference