• Skip to content
  • Skip to link menu
KDE 4.2 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     QString serviceType() const;
00079     QString author() const;
00080     QString email() const;
00081     QString version() const;
00082     QString website() const;
00083     QString license() const;
00084     QString application() const;
00085     QString category() const;
00086     QString requiredVersion() const;
00087     QString pluginName() const;
00088     QString implementationApi() const;
00089 
00090     QString type() const;
00091 
00096     void setName(const QString &);
00097 
00102     void setDescription(const QString &);
00103 
00110     void setServiceType(const QString &);
00111 
00115     void setAuthor(const QString &);
00116 
00121     void setEmail(const QString &);
00122 
00126     void setVersion(const QString &);
00127 
00132     void setWebsite(const QString &);
00133 
00137     void setLicense(const QString &);
00138 
00144     void setApplication(const QString &);
00145 
00149     void setCategory(const QString &);
00150 
00155     void setRequiredVersion(const QString &);
00156 
00161     void setType(const QString &type);
00162 
00172     void setPluginName(const QString &name);
00173 
00177     void setImplementationApi(const QString &api);
00178 
00179 private:
00180     PackageMetadataPrivate * const d;
00181 };
00182 
00183 }
00184 #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
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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