Classified ads
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProfileSearchModel Class Reference

Model-class for performing a name-based search of profiles. This is supposed to act as an underlying data-container for an user-interface view (QListView etc.) More...

#include <profilesearchmodel.h>

Inheritance diagram for ProfileSearchModel:
Inheritance graph
[legend]
Collaboration diagram for ProfileSearchModel:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 ProfileSearchModel (Model &aModel)
 
 ~ProfileSearchModel ()
 
void setSearchString (const QString &aSearch)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 

Private Member Functions

void performSearch ()
 

Private Attributes

ModeliModel
 
QList< QPair< Hash, QString > > iProfiles
 
QString iSearchString
 

Detailed Description

Model-class for performing a name-based search of profiles. This is supposed to act as an underlying data-container for an user-interface view (QListView etc.)

Constructor & Destructor Documentation

◆ ProfileSearchModel()

ProfileSearchModel::ProfileSearchModel ( Model aModel)

◆ ~ProfileSearchModel()

ProfileSearchModel::~ProfileSearchModel ( )

Member Function Documentation

◆ data()

virtual QVariant ProfileSearchModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

re-implemented from QAbstractListModel

Returns
data to display in list

◆ error

void ProfileSearchModel::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

◆ performSearch()

void ProfileSearchModel::performSearch ( )
private

◆ rowCount()

virtual int ProfileSearchModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractListModel

Returns
number of rows in list

◆ setSearchString()

void ProfileSearchModel::setSearchString ( const QString &  aSearch)

Member Data Documentation

◆ iModel

Model& ProfileSearchModel::iModel
private

◆ iProfiles

QList<QPair<Hash,QString> > ProfileSearchModel::iProfiles
private

◆ iSearchString

QString ProfileSearchModel::iSearchString
private

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