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.cpp
Go to the documentation of this file.
1 #include "ZblLogSearchParams.h"
2 
3 namespace Zbl
4 {
5 
6 
7 
9  :
10  m_forward(true),
11  m_backward(false),
12  m_startPos(0),
13  m_type(SearchCaseInsensitive),
14  m_valid(false)
15 
16 {
17 
18 }
19 
21  ZblLogSearch::TextSearchDirections directions,
22  qint64 startPos,
23  QList<int> roles,
24  QString searchPhrase,
25  int type)
26 {
29  m_startPos = startPos;
30  m_roles = roles;
31  m_searchPhrase = searchPhrase;
33  m_valid = true;
34 }
35 
36 
37 
39 {
40  m_forward = params.m_forward;
41  m_backward = params.m_backward;
42  m_startPos = params.m_startPos;
43  m_roles = params.m_roles;
45  m_type = params.m_type;
46  m_valid = params.m_valid;
47 }
48 
49 #if 0
50 QVariant ZblLogSearchParams::fromSearch(const ZblLogSearch *search)
51 {
52 
53  ZblLogSearchParams searchParams(search->getSearchDirections(),
54  0,
55  search->getSearchRoles(),
56  search->getPhrase(),
57  search->getSearchType());
58 
59 
60  return QVariant::fromValue<ZblLogSearchParams>(searchParams);
61 }
62 
63 ZblLogSearchParams ZblLogSearchParams::fromSearch(const ZblLogSearch& search)
64 {
65 
67  0,
68  search.getSearchRoles(),
69  search.getPhrase(),
70  search.getSearchType());
71 
72 }
73 
74 #endif
75 
76 } // Zbl
TextSearchDirections getSearchDirections() const
QList< int > getSearchRoles() const
Returns the set of roles in the log file data model that will be scanned by the text search engine wh...
int getSearchType() const
This class allows Zuble log file viewer text search operations to pass parameters between threads...
QList< int > roles() const
Definition: ZAndGate.cpp:6
QString getPhrase() const
textSearchType zValidateSearchType(int searchType)
Validates an integer value to be type textSearchType and returns it or a valid default value if out o...
Definition: zglobal.h:222
This object encapsulates search operation parameters, results, and steady state.
Definition: ZblLogSearch.h:35