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 |
( |
Model & |
aModel, |
|
|
MController & |
aController |
|
) |
| |
ContactListingModel::~ContactListingModel |
( |
| ) |
|
void ContactListingModel::clearContents |
( |
| ) |
|
virtual int ContactListingModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of columns in view
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
QVariant ContactListingModel::contactsAsQVariant |
( |
| ) |
const |
virtual QVariant ContactListingModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
re-implemented from QAbstractListModel
- Returns
- data to display in list
virtual QVariant ContactListingModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
bool ContactListingModel::isContactContained |
( |
const Hash & |
aFingerPrint | ) |
const |
void ContactListingModel::newContactAdded |
( |
const Contact & |
aContact | ) |
|
void ContactListingModel::removeContact |
( |
const Hash & |
aContact | ) |
|
virtual int ContactListingModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
void ContactListingModel::setContactsFromQVariant |
( |
const QVariantList & |
aContacts | ) |
|
QList<Hash> ContactListingModel::trustList |
( |
| ) |
const |
method that returns subset of contacts that are marked as trusted
QList<Contact> ContactListingModel::iContacts |
|
private |
Model& ContactListingModel::iModel |
|
private |
The documentation for this class was generated from the following file: