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
|
Maintains a list of log record links pertaining to a specific log file. More...
#include <ZLogMap.h>
Public Types | |
enum | MarkType { Invalid = ZblLogMapData::Invalid, Selection = ZblLogMapData::Selection, Searchmap = ZblLogMapData::Searchmap, Bookmark = ZblLogMapData::Bookmark } |
Types of log maps: Invalid, Selection, Search, Bookmark. More... | |
enum | MarkRole { FirstID = ZblLogMapData::FirstID, SeekPosition = ZblLogMapData::SeekPosition, MessageText = ZblLogMapData::MessageText } |
Roles for the log map's data model. More... | |
typedef QList< ZLogMap * > | zLogMapList |
Public Slots | |
void | insertMark (qint64 recordID, qint64 lastRecordID, qint64 seekPosition) |
Creates a new log mark in the database. More... | |
bool | hasMark (qint64 recordID) |
Determine if the log map contains a mark for the specified log record. More... | |
qint64 | findNextMark (qint64 startID, bool forward=true) const |
Search forward or backward for the next mark from a specified starting position. More... | |
bool | removeMark (qint64 recordID, qint64 lastRecordID) |
Removes the specified mark from the log map. More... | |
void | clear () |
Removes all marks from the log map. More... | |
Signals | |
void | selectionUpdated () |
Sent whenever the ZLogMap state has been changed. More... | |
Public Member Functions | |
ZLogMap (ZLogReader *reader) | |
Constructor. More... | |
MarkType | getMapType () |
returns this log map's mark type More... | |
Q_INVOKABLE QObject * | getReader () const |
Returns the foreground log file reader object for this log map. More... | |
Static Public Member Functions | |
static void | registerType () |
Registers ZLogMap as a QML type. More... | |
Protected Member Functions | |
ZLogReader * | getZReader () const |
Returns the foreground log file reader object for this search. More... | |
virtual int | logMapType () |
Returns log map type. Subclasses override this to return their map type. More... | |
Protected Attributes | |
ZBL_DECLARE_LOGGED_OBJECT ZblLogMap | m_map |
Create the m_tag object that presents a Javascript interface to constant integer values. More... | |
ZLogReader * | m_reader |
The log file reader that created this search object. More... | |
Properties | |
int | mapType |
Friends | |
class | ZLogReclinkModel |
Maintains a list of log record links pertaining to a specific log file.
The list is used to provide row selection, search results and user-defined persistent bookmarks. Each entry in the list identifies a contiguous range of log file records.
Log maps originate from a variety of sources including: ZLogViewport user interaction (selection or creating a bookmark), loaded from saved bookmark files, and generated by ZblLogBkSearch to represent search results.
typedef QList<ZLogMap*> Zbl::ZLogMap::zLogMapList |
|
explicit |
Constructor.
reader | The ZLogReader object that created this object. |
Definition at line 14 of file ZLogMap.cpp.
|
slot |
Removes all marks from the log map.
Definition at line 160 of file ZLogMap.cpp.
Referenced by Zbl::ZblLogSearch::addSearchRole(), Zbl::ZblLogSearch::addSearchRoles(), and Zbl::ZblLogSearch::clearSearchRoles().
|
slot |
Search forward or backward for the next mark from a specified starting position.
The search begins with the record after the specified starting ID.
startID | The log record ID from which to start the search. Zero starts from the beginning of map, -1 starts from the end of map. |
forward | true = search forward, false = search backward |
Definition at line 189 of file ZLogMap.cpp.
ZLogMap::MarkType Zbl::ZLogMap::getMapType | ( | ) |
QObject * Zbl::ZLogMap::getReader | ( | ) | const |
Returns the foreground log file reader object for this log map.
Definition at line 53 of file ZLogMap.cpp.
|
protected |
Returns the foreground log file reader object for this search.
Definition at line 48 of file ZLogMap.cpp.
|
slot |
Determine if the log map contains a mark for the specified log record.
recordID | The log record ID to test |
Definition at line 166 of file ZLogMap.cpp.
Referenced by Zbl::ZLogReader::getBookmarkNames(), Zbl::ZLogViewport::getRecordModelRow(), and Zbl::ZLogReader::getSearchmarkSet().
|
slot |
Creates a new log mark in the database.
recordID | the starting log record number for the mark |
lastRecordID | the ending (inclusive) log record number for the mark |
seekPosition | the seek position of the starting record, -1 if unknown |
Definition at line 147 of file ZLogMap.cpp.
Referenced by Zbl::ZLogViewport::getRecordModelRow(), Zbl::ZblLogSearch::onSearchRowMatched(), and Zbl::ZblLogSearch::onSearchRowsMatched().
|
protectedvirtual |
Returns log map type. Subclasses override this to return their map type.
Reimplemented in Zbl::ZblLogSearch, and Zbl::ZLogBookmark.
Definition at line 41 of file ZLogMap.cpp.
Referenced by getMapType().
|
static |
Registers ZLogMap as a QML type.
Definition at line 32 of file ZLogMap.cpp.
Referenced by Zbl::Zblcore::registerTypes().
|
slot |
Removes the specified mark from the log map.
recordID | the starting log record number for the mark |
lastRecordID | the ending (inclusive) log record number for the mark |
Definition at line 171 of file ZLogMap.cpp.
|
signal |
Sent whenever the ZLogMap state has been changed.
Referenced by clear(), insertMark(), Zbl::ZLogReader::newBookmark(), and removeMark().
|
friend |
Definition at line 30 of file ZLogMap.h.
Referenced by Zbl::ZblLogSearch::linkModel().
|
protected |
Create the m_tag object that presents a Javascript interface to constant integer values.
A lookup table for mark nodes. It maps firstRecordID to MarkNode object.
Definition at line 275 of file ZLogMap.h.
Referenced by clear(), findNextMark(), getReader(), hasMark(), insertMark(), Zbl::ZblLogSearch::populateLinkModel(), and removeMark().
|
protected |
The log file reader that created this search object.
Definition at line 281 of file ZLogMap.h.
Referenced by getReader(), getZReader(), Zbl::ZblLogSearch::populateLinkModel(), and Zbl::ZblLogSearch::validateReader().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.