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 #include <QtCore/QStringList> 00025 00026 #include <plasma/plasma_export.h> 00027 00028 #include <kurl.h> 00029 00030 namespace Plasma 00031 { 00032 00033 class PackageMetadataPrivate; 00034 00040 class PLASMA_EXPORT PackageMetadata 00041 { 00042 public: 00048 explicit PackageMetadata(const QString &path = QString()); 00049 00053 PackageMetadata(const PackageMetadata &other); 00054 00055 ~PackageMetadata(); 00056 00057 PackageMetadata &operator=(const PackageMetadata &other); 00058 00059 bool isValid() const; 00060 00069 void write(const QString &filename) const; 00070 00079 void read(const QString &filename); 00080 00081 QString name() const; 00082 QString description() const; 00083 QStringList keywords() const; 00084 QString serviceType() const; 00085 QString author() const; 00086 QString email() const; 00087 QString version() const; 00088 QString website() const; 00089 QString license() const; 00090 QString application() const; 00091 QString category() const; 00092 QString requiredVersion() const; 00093 QString pluginName() const; 00094 QString implementationApi() const; 00095 KUrl remoteLocation() const; 00096 QStringList requiredDataEngines() const; 00097 00098 QString type() const; 00099 00104 void setName(const QString &); 00105 00110 void setDescription(const QString &); 00111 00116 QString icon() const; 00117 00122 void setIcon(const QString &icon); 00123 00128 void setKeywords(const QStringList &keywords); 00129 00136 void setServiceType(const QString &); 00137 00141 void setAuthor(const QString &); 00142 00147 void setEmail(const QString &); 00148 00152 void setVersion(const QString &); 00153 00158 void setWebsite(const QString &); 00159 00163 void setLicense(const QString &); 00164 00170 void setApplication(const QString &); 00171 00175 void setCategory(const QString &); 00176 00181 void setRequiredVersion(const QString &); 00182 00186 void setRemoteLocation(const KUrl &); 00187 00192 void setType(const QString &type); 00193 00203 void setPluginName(const QString &name); 00204 00208 void setImplementationApi(const QString &api); 00209 00213 void setRequiredDataEngines(const QStringList &); 00214 00215 private: 00216 PackageMetadataPrivate * const d; 00217 }; 00218 00219 } 00220 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:51:36 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:51:36 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.