ktrader.h
/* This file is part of the KDE libraries
Copyright (C) 2000 Torben Weis <weis@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 __ktrader_h__
#define __ktrader_h__
#include <qstring.h>
#include <qobject.h>
#include <kservice.h>
class KIO_EXPORT KTrader : public QObject
{
Q_OBJECT
public:
typedef QValueList<KService::Ptr> OfferList;
typedef QValueListIterator<KService::Ptr> OfferListIterator;
virtual ~KTrader();
virtual OfferList query( const QString& servicetype,
const QString& constraint = QString::null,
const QString& preferences = QString::null) const;
OfferList query( const QString& servicetype, const QString& genericServiceType,
const QString& constraint /*= QString::null*/,
const QString& preferences /*= QString::null*/) const;
static KTrader* self();
protected:
KTrader();
private:
static KTrader* s_self;
protected:
virtual void virtual_hook( int id, void* data );
};
#endif
KTrader
A Trader interface, similar to the CORBA Trader.
Definition: ktrader.h:85
KTrader::OfferList
QValueList< KService::Ptr > OfferList
A list of services.
Definition: ktrader.h:92

KDE Home | KDE Accessibility Home | Description of Access Keys