5
* Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#ifndef KCMCATEGORYITEM
24
#define KCMCATEGORYITEM
26
#include "kcmtreeitem.h"
29
#include <KCModuleInfo>
32
class KcmCategoryItem : public KcmTreeItem
37
* Category Tree Item for InfoKcmModel. Holds information about a Category
39
* @param module pointer to KCM module
40
* @param parent objects parent
42
explicit KcmCategoryItem(const KService::Ptr module, KcmTreeItem *parent=0);
45
* Category Tree Item for InfoKcmModel. Holds information about a Category
47
* @note Used for root folder objects
49
explicit KcmCategoryItem(const QString& category);
52
* Get data of tree item
57
* Get category of tree item.
58
* Set in X-KDE-KInfoCenter-Category
60
QString category() const;
65
itemType type() const;
68
* Get tree item KCMs Data
70
KCModuleInfo kcm() const;
73
* Get tree items KCM's weight
78
* Get icon tied to KCM
83
* Get whatsThis information from KCM
85
QString whatsThis() const;
88
* Get KCM tree item keywords
90
QStringList keywords() const;
94
const QString m_category;
97
#endif //KCMCATEGORYITEM