slaveconfig.h
00001 // -*- c++ -*- 00002 /* 00003 * This file is part of the KDE libraries 00004 * Copyright (c) 2001 Waldo Bastian <bastian@kde.org> 00005 * 00006 * $Id: slaveconfig.h,v 1.9.2.1 2003/05/17 11:19:23 mueller Exp $ 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License version 2 as published by the Free Software Foundation. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public License 00018 * along with this library; see the file COPYING.LIB. If not, write to 00019 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 00021 **/ 00022 00023 #ifndef KIO_SLAVE_CONFIG_H 00024 #define KIO_SLAVE_CONFIG_H 00025 00026 #include <qobject.h> 00027 #include <kio/global.h> 00028 00029 namespace KIO { 00030 00031 class SlaveConfigPrivate; 00049 class SlaveConfig : public QObject 00050 { 00051 Q_OBJECT 00052 public: 00053 static SlaveConfig *self(); 00054 ~SlaveConfig(); 00063 void setConfigData(const QString &protocol, const QString &host, const QString &key, const QString &value ); 00064 00073 void setConfigData(const QString &protocol, const QString &host, const MetaData &config ); 00074 00079 MetaData configData(const QString &protocol, const QString &host); 00080 00085 QString configData(const QString &protocol, const QString &host, const QString &key); 00086 00090 void reset(); 00091 signals: 00100 void configNeeded(const QString &protocol, const QString &host); 00101 protected: 00102 SlaveConfig(); 00103 static SlaveConfig *_self; 00104 SlaveConfigPrivate *d; 00105 }; 00106 } 00107 00108 #endif