KNewStuff
category.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KNEWSTUFF2_CATEGORY_H
00021 #define KNEWSTUFF2_CATEGORY_H
00022
00023 #include <knewstuff2/core/ktranslatable.h>
00024
00025 #include <kurl.h>
00026
00027 namespace KNS
00028 {
00029
00030 struct CategoryPrivate;
00031
00037 class KNEWSTUFF_EXPORT Category
00038 {
00039 public:
00043 Category();
00044
00048 ~Category();
00049
00053 void setId(const QString& id);
00054
00060 QString id() const;
00061
00065 void setName(const KTranslatable& name);
00066
00072 KTranslatable name() const;
00073
00077 void setDescription(const KTranslatable& type);
00078
00084 KTranslatable description() const;
00085
00089 void setIcon(const KUrl& icon);
00090
00096 KUrl icon() const;
00097
00098 private:
00099 Q_DISABLE_COPY(Category)
00100
00101 struct CategoryPrivate * const d;
00102 };
00103
00104 }
00105
00106 #endif