• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • services
kplugininfo.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2003,2007 Matthias Kretz <kretz@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17
18*/
19
20#ifndef KDECORE_KPLUGININFO_H
21#define KDECORE_KPLUGININFO_H
22
23#include <QtCore/QExplicitlySharedDataPointer>
24#include <QtCore/QString>
25#include <QtCore/QMap>
26#include <QtCore/QStringList>
27
28#include <kconfiggroup.h>
29#include <kservice.h>
30#include <kaboutdata.h>
31#include <QtCore/QList>
32
33class KPluginInfoPrivate;
34
43class KDECORE_EXPORT KPluginInfo
44{
45 public:
46 typedef QList<KPluginInfo> List;
47
84 explicit KPluginInfo( const QString & filename, const char* resource = 0 );
85
112 explicit KPluginInfo( const KService::Ptr service );
113
119 KPluginInfo();
120
121 ~KPluginInfo();
122
131 static KPluginInfo::List fromServices(const KService::List &services, const KConfigGroup &config = KConfigGroup());
132
142 static KPluginInfo::List fromFiles(const QStringList &files, const KConfigGroup &config = KConfigGroup());
143
152 static KPluginInfo::List fromKPartsInstanceName(const QString &componentName, const KConfigGroup &config = KConfigGroup());
153
157 bool isHidden() const;
158
165 void setPluginEnabled(bool enabled);
166
173 bool isPluginEnabled() const;
174
180 bool isPluginEnabledByDefault() const;
181
187 QVariant property( const QString & key ) const;
188
192 QString name() const;
193
197 QString comment() const;
198
202 QString icon() const;
203
207 QString entryPath() const;
208
212 QString author() const;
213
217 QString email() const;
218
222 QString category() const;
223
228 QString pluginName() const;
229
233 QString version() const;
234
238 QString website() const;
239
240
244 QString license() const;
245
258 KAboutLicense fullLicense() const;
259
264 QStringList dependencies() const;
265
275 KService::Ptr service() const;
276
281 QList<KService::Ptr> kcmServices() const;
282
288 void setConfig(const KConfigGroup &config);
289
294 KConfigGroup config() const;
295
302 void save(KConfigGroup config = KConfigGroup());
303
310 void load(const KConfigGroup &config = KConfigGroup());
311
315 void defaults();
316
321 bool isValid() const;
322
326 KPluginInfo(const KPluginInfo &copy);
327
331 KPluginInfo &operator=(const KPluginInfo &rhs);
332
336 bool operator==(const KPluginInfo &rhs) const;
337
341 bool operator!=(const KPluginInfo &rhs) const;
342
346 bool operator<(const KPluginInfo &rhs) const;
347
351 bool operator>(const KPluginInfo &rhs) const;
352
353 private:
354 friend KDECORE_EXPORT uint qHash(const KPluginInfo &);
355 QExplicitlySharedDataPointer<KPluginInfoPrivate> d;
356};
357
358KDECORE_EXPORT uint qHash(const KPluginInfo &);
359
360#endif // KDECORE_KPLUGININFO_H
qHash
uint qHash(const KConfigIniBackend::BufferFragment &fragment)
Definition: bufferfragment_p.h:186
KAboutLicense
This class is used to store information about a license.
Definition: kaboutdata.h:895
KConfigGroup
A class for one specific group in a KConfig object.
Definition: kconfiggroup.h:54
KPluginInfo
Information about a plugin.
Definition: kplugininfo.h:44
KPluginInfo::List
QList< KPluginInfo > List
Definition: kplugininfo.h:46
KSharedPtr< KService >
QList
Definition: kaboutdata.h:33
QStringList
QString
QVariant
kaboutdata.h
operator==
bool operator==(const KEntry &k1, const KEntry &k2)
Definition: kconfigdata.h:72
operator<
bool operator<(const KEntryKey &k1, const KEntryKey &k2)
Compares two KEntryKeys (needed for QMap).
Definition: kconfigdata.h:124
operator!=
bool operator!=(const KEntry &k1, const KEntry &k2)
Definition: kconfigdata.h:79
kconfiggroup.h
qHash
uint qHash(const KPluginInfo &)
Definition: kplugininfo.cpp:411
kservice.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal