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
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Zbl::ZblLogReclinkData Class Reference

Explicitly shared data object encapsulates a list of log record links. More...

#include <ZblLogReclinkData.h>

Inheritance diagram for Zbl::ZblLogReclinkData:
Inheritance graph
[legend]
Collaboration diagram for Zbl::ZblLogReclinkData:
Collaboration graph
[legend]

Public Slots

void onSearchRowMatched (qint64 recordID, qint64 seekPosition, QList< int > modelRoles)
 Called when the search engine has found a target record in the log file. More...
 

Public Member Functions

 ZblLogReclinkData (QObject *parent=0)
 
virtual ~ZblLogReclinkData ()
 
ZTableModelzModel ()
 Obtains the table model in which log record link data is stored. More...
 
QObject * model ()
 Obtains a sorted proxy model in which log record link data is stored. More...
 
QVariant getData (int index, int role)
 
QVariant getData (int index, const QString &roleName)
 

Protected Member Functions

ZBL_DECLARE_LOGGED_OBJECT bool createMapModel ()
 

Protected Attributes

ZTableModelm_model
 The log map data model used for map node display. More...
 

Friends

class ZLogReclinkModel
 

Detailed Description

Explicitly shared data object encapsulates a list of log record links.

This is an expanded set of log record links, one row per log record. See ZLogMap and ZblLogMapData for compressed storage of log record links.

Definition at line 25 of file ZblLogReclinkData.h.

Constructor & Destructor Documentation

◆ ZblLogReclinkData()

Zbl::ZblLogReclinkData::ZblLogReclinkData ( QObject *  parent = 0)

Definition at line 11 of file ZblLogReclinkData.cpp.

◆ ~ZblLogReclinkData()

Zbl::ZblLogReclinkData::~ZblLogReclinkData ( )
virtual

Definition at line 22 of file ZblLogReclinkData.cpp.

Member Function Documentation

◆ createMapModel()

bool Zbl::ZblLogReclinkData::createMapModel ( )
protected

Definition at line 28 of file ZblLogReclinkData.cpp.

◆ getData() [1/2]

QVariant Zbl::ZblLogReclinkData::getData ( int  index,
int  role 
)

Definition at line 78 of file ZblLogReclinkData.cpp.

◆ getData() [2/2]

QVariant Zbl::ZblLogReclinkData::getData ( int  index,
const QString &  roleName 
)

Definition at line 83 of file ZblLogReclinkData.cpp.

◆ model()

QObject * Zbl::ZblLogReclinkData::model ( )

Obtains a sorted proxy model in which log record link data is stored.

Returns
A QSortFilterProxyModel object containing a sorted view of the source links.

Definition at line 73 of file ZblLogReclinkData.cpp.

◆ onSearchRowMatched

void Zbl::ZblLogReclinkData::onSearchRowMatched ( qint64  recordID,
qint64  seekPosition,
QList< int >  modelRoles 
)
slot

Called when the search engine has found a target record in the log file.

Parameters
recordIDThe record ID number of the log record where search results were found.
seekPositionThe file seek position of the log record where search results were found.
modelRolesA list of role numbers of this log record where search results were found.

Definition at line 41 of file ZblLogReclinkData.cpp.

Referenced by Zbl::ZblLogSearch::linkModel().

◆ zModel()

ZTableModel * Zbl::ZblLogReclinkData::zModel ( )

Obtains the table model in which log record link data is stored.

Returns
A ZTableModel object containing the source links.

Definition at line 66 of file ZblLogReclinkData.cpp.

Referenced by Zbl::ZblLogSearch::populateLinkModel().

Friends And Related Function Documentation

◆ ZLogReclinkModel

friend class ZLogReclinkModel
friend

Definition at line 27 of file ZblLogReclinkData.h.

Member Data Documentation

◆ m_model

ZTableModel* Zbl::ZblLogReclinkData::m_model
protected

The log map data model used for map node display.

Definition at line 97 of file ZblLogReclinkData.h.

Referenced by createMapModel(), getData(), model(), onSearchRowMatched(), and zModel().


The documentation for this class was generated from the following files: