00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KHC_SCROLLKEEPERTREEBUILDER_H
00021 #define KHC_SCROLLKEEPERTREEBUILDER_H
00022
00023 #include <tqobject.h>
00024 #include <tqptrlist.h>
00025
00026 #include "navigatoritem.h"
00027
00028 class KProcIO;
00029
00030 class TQDomNode;
00031
00032 namespace KHC {
00033
00034 class ScrollKeeperTreeBuilder : public QObject
00035 {
00036 Q_OBJECT
00037 public:
00038 ScrollKeeperTreeBuilder( TQObject *parent, const char *name = 0 );
00039
00040 NavigatorItem *build( NavigatorItem *parent, NavigatorItem *after );
00041
00042 private slots:
00043 void getContentsList( KProcIO *proc );
00044
00045 private:
00046 void loadConfig();
00047 int insertSection( NavigatorItem *parent, NavigatorItem *after,
00048 const TQDomNode §Node, NavigatorItem *&created );
00049 void insertDoc( NavigatorItem *parent, const TQDomNode &docNode );
00050
00051 bool mShowEmptyDirs;
00052 TQString mContentsList;
00053 TQPtrList<NavigatorItem> mItems;
00054 };
00055
00056 }
00057
00058 #endif // KHC_SCROLLKEEPERTREEBUILDER_H
00059