slaveconfig.h
// -*- c++ -*-
/*
* This file is part of the KDE libraries
* Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
**/
#ifndef KIO_SLAVE_CONFIG_H
#define KIO_SLAVE_CONFIG_H
#include <qobject.h>
#include <kio/global.h>
namespace KIO {
class SlaveConfigPrivate;
class KIO_EXPORT SlaveConfig : public QObject
{
Q_OBJECT
public:
static SlaveConfig *self();
~SlaveConfig();
void setConfigData(const QString &protocol, const QString &host, const QString &key, const QString &value );
void setConfigData(const QString &protocol, const QString &host, const MetaData &config );
MetaData configData(const QString &protocol, const QString &host);
QString configData(const QString &protocol, const QString &host, const QString &key);
void reset();
signals:
void configNeeded(const QString &protocol, const QString &host);
protected:
SlaveConfig();
static SlaveConfig *_self;
SlaveConfigPrivate *d;
};
}
#endif
KIO::MetaData
MetaData is a simple map of key/value strings.
Definition: global.h:512
KIO::SlaveConfig
SlaveConfig.
Definition: slaveconfig.h:47

KDE Home | KDE Accessibility Home | Description of Access Keys