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 ( Model aModel)
ProfileSearchModel::~ProfileSearchModel ( )

Member Function Documentation

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

re-implemented from QAbstractListModel

Returns
data to display in list
void ProfileSearchModel::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal
void ProfileSearchModel::performSearch ( )
private
virtual int ProfileSearchModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractListModel

Returns
number of rows in list
void ProfileSearchModel::setSearchString ( const QString &  aSearch)

Member Data Documentation

Model& ProfileSearchModel::iModel
private
QList<QPair<Hash,QString> > ProfileSearchModel::iProfiles
private
QString ProfileSearchModel::iSearchString
private

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