1 /* 2 * %kadu copyright begin% 3 * Copyright 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im) 4 * Copyright 2010 Bartosz Brachaczek (b.brachaczek@gmail.com) 5 * Copyright 2008, 2009, 2010, 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com) 6 * %kadu copyright end% 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of 11 * the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #pragma once 23 24 #include "configuration-window-data-manager.h" 25 26 #include <QtCore/QPointer> 27 #include <injeqt/injeqt.h> 28 29 class Configuration; 30 31 class KADUAPI ConfigFileDataManager : public ConfigurationWindowDataManager 32 { 33 Q_OBJECT 34 35 public: ConfigurationWindowDataManager(parent)36 ConfigFileDataManager(QObject *parent = nullptr) : ConfigurationWindowDataManager(parent) {} 37 38 virtual void writeEntry(const QString §ion, const QString &name, const QVariant &value); 39 virtual QVariant readEntry(const QString §ion, const QString &name); 40 41 private: 42 QPointer<Configuration> m_configuration; 43 44 private slots: 45 INJEQT_SET void setConfiguration(Configuration *configuration); 46 47 }; 48