kplugininfo.h
/* This file is part of the KDE project
Copyright (C) 2003 Matthias Kretz <kretz@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 KPLUGININFO_H
#define KPLUGININFO_H
#include <qstring.h>
#include <qmap.h>
#include <qstringlist.h>
#include <qvaluelist.h>
#include <kservice.h>
class KConfigGroup;
class KUTILS_EXPORT KPluginInfo
{
public:
typedef QValueList<KPluginInfo*> List;
KPluginInfo( const QString & filename, const char* resource = 0 );
KPluginInfo( const KService::Ptr service );
//X /**
//X * Create an empty hidden plugin.
//X * @internal
//X */
//X KPluginInfo();
virtual ~KPluginInfo();
static KPluginInfo::List fromServices( const KService::List & services, KConfig * config = 0, const QString & group = QString::null );
static KPluginInfo::List fromFiles( const QStringList & files, KConfig * config = 0, const QString & group = QString::null );
static KPluginInfo::List fromKPartsInstanceName( const QString &, KConfig * config = 0, const QString & group = QString::null );
bool isHidden() const;
virtual void setPluginEnabled( bool enabled );
virtual bool isPluginEnabled() const;
bool isPluginEnabledByDefault() const;
QVariant property( const QString & key ) const;
QVariant operator[]( const QString & key ) const;
const QString & name() const;
const QString & comment() const;
const QString & icon() const;
const QString & specfile() const;
const QString & author() const;
const QString & email() const;
const QString & category() const;
const QString & pluginName() const;
const QString & version() const;
const QString & website() const;
const QString & license() const;
const QStringList & dependencies() const;
KService::Ptr service() const;
const QValueList<KService::Ptr> & kcmServices() const;
void setConfig( KConfig * config, const QString & group );
KConfig * config() const;
const QString & configgroup() const;
virtual void save( KConfigGroup * config = 0 );
virtual void load( KConfigGroup * config = 0 );
virtual void defaults();
private:
KPluginInfo( const KPluginInfo & );
const KPluginInfo & operator=( const KPluginInfo & );
class KPluginInfoPrivate;
KPluginInfoPrivate * d;
};
// vim: sw=4 sts=4 et tw=80
#endif // KPLUGININFO_H
KPluginInfo
Information about a plugin.
Definition: kplugininfo.h:42
KConfigGroup
KConfig

KDE Home | KDE Accessibility Home | Description of Access Keys