ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
treeautodescent.h
Go to the documentation of this file.
1 #ifndef TREEAUTODESCENT_H
2 #define TREEAUTODESCENT_H
3 
4 #include <QObject>
5 
6 #include "item.h"
7 
8 class TreeAutoDescent : public QObject
9 {
10  Q_OBJECT
11 public:
12  explicit TreeAutoDescent(ServersModel *sm, Item *root, QString path, QObject *parent = 0);
13  bool waitsFor(Item *item) const;
14  QString path();
15 
16 signals:
17  void progress(TreeAutoDescent *descent, Item *item);
18  void completed(TreeAutoDescent *descent, Item *item);
19  void notFound(TreeAutoDescent *descent);
20 
21 public slots:
22  void descend();
23  void continueDescent(bool loaded = false);
24 
25 private:
26  ServersModel *m_sm;
27  Item *m_root;
28  QString m_path;
29  QStringList m_pathParts;
30  Item *m_currentItem;
31  BaseDataSource *m_ds;
32  Item *m_done;
33 
34 };
35 
36 #endif // TREEAUTODESCENT_H
void progress(TreeAutoDescent *descent, Item *item)
bool waitsFor(Item *item) const
Definition: treeautodescent.cpp:19
void completed(TreeAutoDescent *descent, Item *item)
void continueDescent(bool loaded=false)
Definition: treeautodescent.cpp:72
Definition: treeautodescent.h:8
TreeAutoDescent(ServersModel *sm, Item *root, QString path, QObject *parent=0)
Definition: treeautodescent.cpp:6
Definition: item.h:130
Definition: basedatasource.h:50
Definition: serversmodel.h:36
void notFound(TreeAutoDescent *descent)
QString path()
Definition: treeautodescent.cpp:24
void descend()
Definition: treeautodescent.cpp:29