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
|
Encapsulates information necessary to locate a collection of log records in a log file. More...
#include <ZLogBookmark.h>
Public Types | |
enum | bookmarkType { RecordNumber = 0, RecordIndex } |
typedef QList< ZLogBookmark * > | zLogBookmarkList |
![]() | |
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 | |
QString | getMarkName () const |
void | setMarkName (const QString &name) |
QString | getNote () const |
void | setNote (const QString ¬e) |
![]() | |
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... | |
Public Member Functions | |
ZLogBookmark (ZLogReader *reader) | |
ZLogBookmark (ZLogReader *reader, const QString &name) | |
![]() | |
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... | |
Protected Member Functions | |
virtual int | logMapType () |
Returns log map type. Override of ZLogMap::logMapType(). More... | |
![]() | |
ZLogReader * | getZReader () const |
Returns the foreground log file reader object for this search. More... | |
Protected Attributes | |
QString | m_bookmarkName |
Display name for this bookmark. More... | |
QString | m_note |
Annotation for this bookmark. More... | |
![]() | |
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 | |
QString | name |
QString | note |
![]() | |
int | mapType |
Additional Inherited Members | |
![]() | |
void | selectionUpdated () |
Sent whenever the ZLogMap state has been changed. More... | |
![]() | |
static void | registerType () |
Registers ZLogMap as a QML type. More... | |
Encapsulates information necessary to locate a collection of log records in a log file.
TBD: Don't subclass ZLogMap, encapsulate it! Conversion from searchmark to bookmark can copy map implicitly.
Definition at line 46 of file ZLogBookmark.h.
typedef QList<ZLogBookmark*> Zbl::ZLogBookmark::zLogBookmarkList |
Definition at line 57 of file ZLogBookmark.h.
Enumerator | |
---|---|
RecordNumber | |
RecordIndex |
Definition at line 51 of file ZLogBookmark.h.
|
explicit |
Definition at line 30 of file ZLogBookmark.cpp.
|
explicit |
Definition at line 36 of file ZLogBookmark.cpp.
|
slot |
Definition at line 42 of file ZLogBookmark.cpp.
Referenced by Zbl::ZLogReader::getBookmark(), Zbl::ZLogReader::getBookmarkNames(), Zbl::ZLogReader::getSearch(), and Zbl::ZLogReader::removeSearchModel().
|
slot |
Definition at line 52 of file ZLogBookmark.cpp.
|
protectedvirtual |
Returns log map type. Override of ZLogMap::logMapType().
Reimplemented from Zbl::ZLogMap.
Reimplemented in Zbl::ZblLogSearch.
Definition at line 62 of file ZLogBookmark.cpp.
|
slot |
Definition at line 47 of file ZLogBookmark.cpp.
Referenced by Zbl::ZLogReader::newBookmark(), and Zbl::ZblLogSearch::ZblLogSearch().
|
slot |
Definition at line 57 of file ZLogBookmark.cpp.
|
protected |
Display name for this bookmark.
Definition at line 119 of file ZLogBookmark.h.
Referenced by getMarkName(), getNote(), logMapType(), and setMarkName().
|
protected |
Annotation for this bookmark.
Definition at line 125 of file ZLogBookmark.h.
Referenced by logMapType(), and setNote().
|
readwrite |
Definition at line 62 of file ZLogBookmark.h.
Referenced by Zbl::ZblLogSearch::getSearchRolesName(), setMarkName(), and ZLogBookmark().
|
readwrite |
Definition at line 63 of file ZLogBookmark.h.
Referenced by setNote().
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.