Model-class for performing search on contact-list contacts This is supposed to act as an underlying data-container for an user-interface view (QTableView etc.)
More...
#include <contactlistingmodel.h>
Model-class for performing search on contact-list contacts This is supposed to act as an underlying data-container for an user-interface view (QTableView etc.)
◆ ContactListingModel()
ContactListingModel::ContactListingModel |
( |
Model & |
aModel, |
|
|
MController & |
aController |
|
) |
| |
◆ ~ContactListingModel()
ContactListingModel::~ContactListingModel |
( |
| ) |
|
◆ clearContents()
void ContactListingModel::clearContents |
( |
| ) |
|
◆ columnCount()
virtual int ContactListingModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of columns in view
◆ contactByFingerPrint()
bool ContactListingModel::contactByFingerPrint |
( |
const Hash & |
aFingerPrint, |
|
|
Contact * |
aResultingContact |
|
) |
| const |
method for retrieving contact.
- Parameters
-
aFingerPrint | tells what to seek |
aResultingContact | will have its field filled if match is made |
- Returns
- true if contact was found
◆ contactsAsQVariant()
QVariant ContactListingModel::contactsAsQVariant |
( |
| ) |
const |
◆ data()
virtual QVariant ContactListingModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
re-implemented from QAbstractListModel
- Returns
- data to display in list
◆ error
◆ headerData()
virtual QVariant ContactListingModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
◆ isContactContained()
bool ContactListingModel::isContactContained |
( |
const Hash & |
aFingerPrint | ) |
const |
◆ newContactAdded()
void ContactListingModel::newContactAdded |
( |
const Contact & |
aContact | ) |
|
◆ removeContact()
void ContactListingModel::removeContact |
( |
const Hash & |
aContact | ) |
|
◆ rowCount()
virtual int ContactListingModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
◆ setContactsFromQVariant()
void ContactListingModel::setContactsFromQVariant |
( |
const QVariantList & |
aContacts | ) |
|
◆ trustList()
QList<Hash> ContactListingModel::trustList |
( |
| ) |
const |
method that returns subset of contacts that are marked as trusted
◆ iContacts
QList<Contact> ContactListingModel::iContacts |
|
private |
◆ iController
◆ iModel
Model& ContactListingModel::iModel |
|
private |
The documentation for this class was generated from the following file: