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

Plasma

  • plasma
packagemetadata.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Copyright 2007 by Riccardo Iaconelli <riccardo@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 as published by the Free Software Foundation; either *
7 * version 2 of the License, or (at your option) any later version. *
8 * *
9 * This library is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Library General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU Library General Public License *
15 * along with this library; see the file COPYING.LIB. If not, write to *
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
17 * Boston, MA 02110-1301, USA. *
18 *******************************************************************************/
19 
20 #ifndef PLASMA_PACKAGEMETADATA_H
21 #define PLASMA_PACKAGEMETADATA_H
22 
23 #include <QtCore/QString>
24 #include <QtCore/QStringList>
25 
26 #include <plasma/plasma_export.h>
27 
28 #include <kurl.h>
29 
30 namespace Plasma
31 {
32 
33 class PackageMetadataPrivate;
34 
40 class PLASMA_EXPORT PackageMetadata
41 {
42 public:
48  explicit PackageMetadata(const QString &path = QString());
49 
53  PackageMetadata(const PackageMetadata &other);
54 
55  ~PackageMetadata();
56 
57  PackageMetadata &operator=(const PackageMetadata &other);
58 
59  bool isValid() const;
60 
69  void write(const QString &filename) const;
70 
79  void read(const QString &filename);
80 
81  QString name() const;
82  QString description() const;
83  QStringList keywords() const;
84  QString serviceType() const;
85  QString author() const;
86  QString email() const;
87  QString version() const;
88  QString website() const;
89  QString license() const;
90  QString application() const;
91  QString category() const;
92  QString requiredVersion() const;
93  QString pluginName() const;
94  QString implementationApi() const;
95  KUrl remoteLocation() const;
96  QStringList requiredDataEngines() const;
97 
98  QString type() const;
99 
104  void setName(const QString &);
105 
110  void setDescription(const QString &);
111 
116  QString icon() const;
117 
122  void setIcon(const QString &icon);
123 
128  void setKeywords(const QStringList &keywords);
129 
136  void setServiceType(const QString &);
137 
141  void setAuthor(const QString &);
142 
147  void setEmail(const QString &);
148 
152  void setVersion(const QString &);
153 
158  void setWebsite(const QString &);
159 
163  void setLicense(const QString &);
164 
170  void setApplication(const QString &);
171 
175  void setCategory(const QString &);
176 
181  void setRequiredVersion(const QString &);
182 
186  void setRemoteLocation(const KUrl &);
187 
192  void setType(const QString &type);
193 
203  void setPluginName(const QString &name);
204 
208  void setImplementationApi(const QString &api);
209 
213  void setRequiredDataEngines(const QStringList &);
214 
215 private:
216  PackageMetadataPrivate * const d;
217 };
218 
219 }
220 #endif
Plasma::version
unsigned int version()
The runtime version of libplasma.
Definition: version.cpp:26
Plasma::type
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
Plasma::PackageMetadata
Provides metadata for a Package.
Definition: packagemetadata.h:40
plasma_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Sep 11 2019 22:38:28 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

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

kdelibs-4.14.8 API Reference

Skip menu "kdelibs-4.14.8 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