WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
ZblLogReclinkData.h
Go to the documentation of this file.
1 #ifndef ZBLLOGRECLINKDATA_H
2 #define ZBLLOGRECLINKDATA_H
3 
4 #include "zglobal.h"
5 
6 #include <QObject>
7 
8 class QSortFilterProxyModel;
9 
10 namespace Zbl
11 {
12 
13 class ZTableModel;
14 class QAbstractItemModel;
15 
23 // TBD: instead of a ZTableModel this should be implemented as a QMap<qint64, ZLogLink>
24 
25 class ZblLogReclinkData : public QObject
26 {
27  friend class ZLogReclinkModel;
28 
29  Q_OBJECT
30 public:
31  ZblLogReclinkData(QObject *parent = 0);
32 
33  virtual ~ZblLogReclinkData();
34 
42 
51  QObject *model();
52 
53  QVariant getData(int index, int role);
54 
55  QVariant getData(int index, const QString& roleName);
56 
57 
58 
59 signals:
60 
61 public slots:
62 
78  void onSearchRowMatched(
79  qint64 recordID,
80  qint64 seekPosition,
81  QList<int> modelRoles);
82 
83 
84 
85 
86 protected:
87 
89 
90  bool createMapModel();
91 
92 
98 
99 #if 0
100 
104  QSortFilterProxyModel* m_proxy;
105 #endif
106 
107 };
108 
109 
110 } // Zbl
111 
112 #endif // ZBLLOGRECLINKDATA_H
A data model containing a list of log record links. This is used for displaying a ZLogMap object...
ZTableModel * m_model
The log map data model used for map node display.
QVariant getData(int index, int role)
#define ZBL_DECLARE_LOGGED_OBJECT
Definition: zglobal.h:94
void onSearchRowMatched(qint64 recordID, qint64 seekPosition, QList< int > modelRoles)
Called when the search engine has found a target record in the log file.
ZBL_DECLARE_LOGGED_OBJECT bool createMapModel()
Definition: ZAndGate.cpp:6
ZTableModel * zModel()
Obtains the table model in which log record link data is stored.
Explicitly shared data object encapsulates a list of log record links.
This two dimensional table model is used to store and manipulate data.
Definition: ZTableModel.h:96
QObject * model()
Obtains a sorted proxy model in which log record link data is stored.
ZblLogReclinkData(QObject *parent=0)