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

Plasma

  • sources
  • kde-4.12
  • kdelibs
  • 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 
25 #include <plasma/plasma_export.h>
26 
27 #include <kurl.h>
28 
29 namespace Plasma
30 {
31 
32 class PackageMetadataPrivate;
33 
39 class PLASMA_EXPORT PackageMetadata
40 {
41 public:
47  explicit PackageMetadata(const QString &path = QString());
48 
52  PackageMetadata(const PackageMetadata &other);
53 
54  ~PackageMetadata();
55 
56  PackageMetadata &operator=(const PackageMetadata &other);
57 
58  bool isValid() const;
59 
68  void write(const QString &filename) const;
69 
78  void read(const QString &filename);
79 
80  QString name() const;
81  QString description() const;
82  QStringList keywords() const;
83  QString serviceType() const;
84  QString author() const;
85  QString email() const;
86  QString version() const;
87  QString website() const;
88  QString license() const;
89  QString application() const;
90  QString category() const;
91  QString requiredVersion() const;
92  QString pluginName() const;
93  QString implementationApi() const;
94  KUrl remoteLocation() const;
95 
96  QString type() const;
97 
102  void setName(const QString &);
103 
108  void setDescription(const QString &);
109 
114  QString icon() const;
115 
120  void setIcon(const QString &icon);
121 
126  void setKeywords(const QStringList &keywords);
127 
134  void setServiceType(const QString &);
135 
139  void setAuthor(const QString &);
140 
145  void setEmail(const QString &);
146 
150  void setVersion(const QString &);
151 
156  void setWebsite(const QString &);
157 
161  void setLicense(const QString &);
162 
168  void setApplication(const QString &);
169 
173  void setCategory(const QString &);
174 
179  void setRequiredVersion(const QString &);
180 
184  void setRemoteLocation(const KUrl &);
185 
190  void setType(const QString &type);
191 
201  void setPluginName(const QString &name);
202 
206  void setImplementationApi(const QString &api);
207 
208 private:
209  PackageMetadataPrivate * const d;
210 };
211 
212 }
213 #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:39
plasma_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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