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

Plasma

packagemetadata.h

Go to the documentation of this file.
00001 /******************************************************************************
00002 *   Copyright 2007 by Riccardo Iaconelli  <riccardo@kde.org>                  *
00003 *                                                                             *
00004 *   This library is free software; you can redistribute it and/or             *
00005 *   modify it under the terms of the GNU Library General Public               *
00006 *   License as published by the Free Software Foundation; either              *
00007 *   version 2 of the License, or (at your option) any later version.          *
00008 *                                                                             *
00009 *   This library is distributed in the hope that it will be useful,           *
00010 *   but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00011 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          *
00012 *   Library General Public License for more details.                          *
00013 *                                                                             *
00014 *   You should have received a copy of the GNU Library General Public License *
00015 *   along with this library; see the file COPYING.LIB.  If not, write to      *
00016 *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,      *
00017 *   Boston, MA 02110-1301, USA.                                               *
00018 *******************************************************************************/
00019 
00020 #ifndef PLASMA_PACKAGEMETADATA_H
00021 #define PLASMA_PACKAGEMETADATA_H
00022 
00023 #include <QtCore/QString>
00024 
00025 #include <plasma/plasma_export.h>
00026 
00027 namespace Plasma
00028 {
00029 
00030 class PackageMetadataPrivate;
00031 
00037 class PLASMA_EXPORT PackageMetadata
00038 {
00039 public:
00045     explicit PackageMetadata(const QString &path = QString());
00046 
00050     PackageMetadata(const PackageMetadata &other);
00051 
00052     ~PackageMetadata();
00053 
00054     bool isValid() const;
00055 
00064     void write(const QString &filename) const;
00065 
00074     void read(const QString &filename);
00075 
00076     QString name() const;
00077     QString description() const;
00078     QStringList keywords() const;
00079     QString serviceType() const;
00080     QString author() const;
00081     QString email() const;
00082     QString version() const;
00083     QString website() const;
00084     QString license() const;
00085     QString application() const;
00086     QString category() const;
00087     QString requiredVersion() const;
00088     QString pluginName() const;
00089     QString implementationApi() const;
00090 
00091     QString type() const;
00092 
00097     void setName(const QString &);
00098 
00103     void setDescription(const QString &);
00104 
00109     void setKeywords(const QStringList &keywords);
00110 
00117     void setServiceType(const QString &);
00118 
00122     void setAuthor(const QString &);
00123 
00128     void setEmail(const QString &);
00129 
00133     void setVersion(const QString &);
00134 
00139     void setWebsite(const QString &);
00140 
00144     void setLicense(const QString &);
00145 
00151     void setApplication(const QString &);
00152 
00156     void setCategory(const QString &);
00157 
00162     void setRequiredVersion(const QString &);
00163 
00168     void setType(const QString &type);
00169 
00179     void setPluginName(const QString &name);
00180 
00184     void setImplementationApi(const QString &api);
00185 
00186 private:
00187     PackageMetadataPrivate * const d;
00188 };
00189 
00190 }
00191 #endif

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal