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
ZblLogSearchList.h
Go to the documentation of this file.
1 #ifndef ZBLLOGSEARCHLIST_H
2 #define ZBLLOGSEARCHLIST_H
3 
4 #include <QMetaType>
5 #include <QList>
6 #include <QVariant>
7 
8 namespace Zbl
9 {
10 
17 {
18 public:
21  {
22  m_links = linkList.m_links;
23  }
24 
25  class LinkNode
26  {
27  public:
28  LinkNode(qint64 recordID, qint64 seekPos, QList<int> rolesFound)
29  :m_recordID(recordID), m_seekPos(seekPos), m_rolesFound(rolesFound){}
30 
31  LinkNode(const LinkNode& linkNode)
32  {
33  m_recordID = linkNode.m_recordID;
34  m_seekPos = linkNode.m_seekPos;
35  m_rolesFound = linkNode.m_rolesFound;
36  }
37 
38  qint64 m_recordID;
39  qint64 m_seekPos;
40  QList<int> m_rolesFound;
41  };
42 
43  void addRow(qint64 recordID, qint64 seekPos, QList<int> rolesFound)
44  {
45  m_links.append(LinkNode(recordID, seekPos, rolesFound));
46  }
47 
48  QList<LinkNode> m_links;
49 };
50 
51 } // Zbl
52 
53 Q_DECLARE_METATYPE(Zbl::ZblLogSearchList)
54 
55 
56 #endif // ZBLLOGSEARCHLIST_H
void addRow(qint64 recordID, qint64 seekPos, QList< int > rolesFound)
Definition: ZAndGate.cpp:6
ZblLogSearchList(const ZblLogSearchList &linkList)
QList< LinkNode > m_links
LinkNode(const LinkNode &linkNode)
LinkNode(qint64 recordID, qint64 seekPos, QList< int > rolesFound)
This class allows Zuble log file viewer text search operations to pass search results between threads...