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
ZblLogLinkList.h
Go to the documentation of this file.
1 #ifndef ZBLLOGLINKLIST_H
2 #define ZBLLOGLINKLIST_H
3 
4 #include <QMetaType>
5 #include <QList>
6 #include <QVariant>
7 
8 namespace Zbl {
9 
16 {
17 public:
19  ZblLogLinkList(const ZblLogLinkList& linkList){m_links = linkList.m_links;}
20 
21  class LinkNode
22  {
23  public:
24  LinkNode(qint64 index, QVariant value)
25  :m_index(index),m_value(value){}
26 
27  LinkNode(const LinkNode& linkNode)
28  {m_index = linkNode.m_index; m_value = linkNode.m_value;}
29 
30  qint64 m_index;
31  QVariant m_value;
32  };
33 
34  void addLink(qint64 index, qint64 seekPos)
35  {
36  m_links.append(LinkNode(index, seekPos));
37  }
38 
39  void addMessageText(qint64 index, const QString& messageText)
40  {
41  m_links.append(LinkNode(index, messageText));
42  }
43 
44  QList<LinkNode> m_links;
45 };
46 
47 } // Zbl
48 
49 Q_DECLARE_METATYPE(Zbl::ZblLogLinkList)
50 
51 #endif // ZBLLOGLINKLIST_H
Definition: ZAndGate.cpp:6