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

libplasma

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 PACKAGEMETADATA_H
00021 #define PACKAGEMETADATA_H
00022 
00023 #include <QtCore/QString>
00024 
00025 #include <plasma/plasma_export.h>
00026 
00027 namespace Plasma
00028 {
00029 
00030 class PackageMetadataPrivate;
00031 
00032 class PLASMA_EXPORT PackageMetadata
00033 {
00034 public:
00038     PackageMetadata();
00039 
00045     PackageMetadata(const QString& path);
00046     ~PackageMetadata();
00047 
00048     bool isValid() const;
00049 
00058     void write(const QString& filename) const;
00059 
00068     void read(const QString &filename);
00069 
00070     QString name() const;
00071     QString description() const;
00072     QString serviceType() const;
00073     QString author() const;
00074     QString email() const;
00075     QString version() const;
00076     QString website() const;
00077     QString license() const;
00078     QString application() const;
00079     QString category() const;
00080     QString requiredVersion() const;
00081     QString pluginName() const;
00082     QString implementationApi() const;
00083 
00084     QString type() const;
00085 
00090     void setName(const QString &);
00091 
00096     void setDescription(const QString &);
00097 
00104     void setServiceType(const QString &);
00105 
00109     void setAuthor(const QString &);
00110 
00115     void setEmail(const QString &);
00116 
00120     void setVersion(const QString &);
00121 
00126     void setWebsite(const QString &);
00127 
00131     void setLicense(const QString &);
00132 
00138     void setApplication(const QString &);
00139 
00143     void setCategory(const QString &);
00144 
00149     void setRequiredVersion(const QString &);
00150 
00155     void setType(const QString& type);
00156 
00166     void setPluginName(const QString& name);
00167 
00171     void setImplementationApi(const QString& api);
00172 
00173 private:
00174     PackageMetadataPrivate * const d;
00175 };
00176 
00177 }
00178 #endif

libplasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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