1 #ifndef ZBLLOGSEARCHER_H 2 #define ZBLLOGSEARCHER_H 103 QList<int> rolesFound);
116 QList<int> rolesFound);
193 QVariantMap context);
241 const QList<int> roles,
243 const QString& searchPhrase,
244 bool signalFirstFind =
true,
293 #endif // ZBLLOGSEARCHER_H void searchRowsScanned(qint64 firstID, qint64 lastID)
Sent when log records have been scanned for matching text.
#define ZBL_DECLARE_LOGGED_OBJECT
This class performs log file I/O operations and JSON parsing in a background thread on behalf of a ZL...
void markupUpdated(ZLogViewport *viewport, ZblLogSearchList rowsFound)
Sent when a viewport's markeup data (model column 1) has been updated.
This class allows Zuble log file viewer text search operations to pass parameters between threads...
ZLogViewport * m_vpUp
A viewport for scanning the file in the reverse direction.
ZblLogBkSearch(qint64 startPosition, ZblLogSearchParams params, ZblLogReader *reader)
Constructs a ZblLogBkSearch object.
ZLogViewport * m_vpDown
A viewport for scanning the file in the forward direction.
ZblLogReader * m_reader
Background log reader object.
A log viewport encapsulates a ZTableModel containing a contiguous subset of log records from a Zuble ...
Performs log file searches in a background thread.
void scanForward()
Scans a viewport for strings matching the search parameters.
qint64 m_upPosition
The current file position of the reverse scan;.
static void zInit()
Initializes search engine. Must be called only once before calling newLogSearcher() the first time...
void searchRowsMatched(ZblLogSearchList rowsFound)
Sent when log records matching the search criteria have been located.
ZBL_DECLARE_LOGGED_OBJECT ZblLogSearchParams m_params
Search parameters for this search object.
void markupViewport(QObject *viewport)
Updates the markup column (1) of the specified viewport's data model by scanning the data column (0) ...
void onMoveComplete(qint64 rowsFound, qint64 rowsStored, bool endOfData, QString errorMsg)
Called when the backward scanning viewport has been moved and is ready.
static ZblLogBkSearch * newLogSearcher()
Constructs a ZblLogBkSearch object and moves it to the search thread.
This class allows Zuble log file viewer text search operations to pass search results between threads...
~ZblLogBkSearch()
destructor
qint64 m_downPosition
The current file position of the forward scan;.
qint64 m_startPosition
The starting file position of the search;.
void onLoadComplete(bool eof, QString errorMsg, QVariantMap context)
Called when the forward scanning viewport has been loaded and is ready.
void startSearch()
Starts a text search of the log file for log records that satisfiy the search criteria. Search direction can be forward or backward or both.