1/*
2 * navigatorappitem.h - part of the KDE Help Center
3 *
4 * Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License version 2 or at your option version 3 as published
9 * by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef KHC_NAVIGATORAPPITEM_H
22#define KHC_NAVIGATORAPPITEM_H
23
24#include "navigatoritem.h"
25
26class KService;
27
28namespace KHC {
29
30class NavigatorAppItem : public NavigatorItem
31{
32 public:
33 NavigatorAppItem( DocEntry *entry, QTreeWidget *parent,
34 const QString &relPath );
35 NavigatorAppItem( DocEntry *entry, QTreeWidgetItem *parent,
36 const QString &relPath );
37
38 NavigatorAppItem( DocEntry *entry, QTreeWidget *parent,
39 QTreeWidgetItem *after );
40 NavigatorAppItem( DocEntry *entry, QTreeWidgetItem *parent,
41 QTreeWidgetItem *after );
42
43 void setRelpath( const QString & );
44
45 virtual void setExpanded(bool);
46 void populate( bool recursive = false );
47
48 protected:
49 QString documentationURL( const KService *s );
50
51 private:
52 QString mRelpath;
53 bool mPopulated;
54};
55
56}
57
58#endif //KHC_NAVIGATORAPPITEM_H
59// vim:ts=2:sw=2:et
60