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
ZblLogSearchParams.h
Go to the documentation of this file.
1 #ifndef ZBLLOGSEARCHPARAMS_H
2 #define ZBLLOGSEARCHPARAMS_H
3 
4 #include <QString>
5 #include <QList>
6 #include <QVariant>
7 #include <QMetaType>
8 #include "zglobal.h"
9 #include "ZblLogSearch.h"
10 
11 
12 namespace Zbl {
13 
20 {
21  friend class ZblLogBkSearch;
22 
23 public:
25 
27  ZblLogSearch::TextSearchDirections directions,
28  qint64 startPos,
29  QList<int> roles,
30  QString searchPhrase,
31  int type);
32 
34 
35 #if 0
36 
37  static QVariant fromSearch(const ZblLogSearch *search);
38  static ZblLogSearchParams fromSearch(const ZblLogSearch& search);
39 
40 #endif
41 
42  bool forward() const {return m_forward;}
43  bool backward() const {return m_backward;}
44  qint64 origin() const {return m_startPos;}
45  QList<int> roles() const {return m_roles;}
46  QString phrase() const {return m_searchPhrase;}
47  textSearchType searchType() const {return m_type;}
48  bool isValid() const {return m_valid;}
49 
50 protected:
51 
52  bool m_forward;
53  bool m_backward;
54  qint64 m_startPos;
55  QList<int> m_roles;
56  QString m_searchPhrase;
58  bool m_valid;
59 };
60 
61 } // Zbl
62 
63 Q_DECLARE_METATYPE(Zbl::ZblLogSearchParams)
64 
65 #endif // ZBLLOGSEARCHPARAMS_H
This class allows Zuble log file viewer text search operations to pass parameters between threads...
QList< int > roles() const
textSearchType searchType() const
Performs log file searches in a background thread.
Definition: ZAndGate.cpp:6
textSearchType
Specifies search case sensitivity.
Definition: zglobal.h:209
This object encapsulates search operation parameters, results, and steady state.
Definition: ZblLogSearch.h:35