• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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
25#include <plasma/plasma_export.h>
26
27#include <kurl.h>
28
29namespace Plasma
30{
31
32class PackageMetadataPrivate;
33
39class PLASMA_EXPORT PackageMetadata
40{
41public:
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
208private:
209 PackageMetadataPrivate * const d;
210};
211
212}
213#endif
Plasma::PackageMetadata
Provides metadata for a Package.
Definition: packagemetadata.h:40
Plasma
Namespace for everything in libplasma.
Definition: abstractdialogmanager.cpp:25
Plasma::version
unsigned int version()
The runtime version of libplasma.
Definition: version.cpp:26
plasma_export.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.

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.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