Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QtopiaServiceHistoryModel class provides a data model and insertion methods for the Qt Extended service history. More...
#include <QtopiaServiceHistoryModel>
Inherits QAbstractListModel.
The QtopiaServiceHistoryModel class provides a data model and insertion methods for the Qt Extended service history.
This class provides methods to add service calls to the service history, and to retrieve service calls in the service history. If you wish to have a service call stored in the service history you must call this class to insert it, it will not be stored automatically.
This class is also a data model suitable as the model for a QListView, so that it can display the entire service history.
Determines sorting order.
Constant | Value | Description |
---|---|---|
QtopiaServiceHistoryModel::History | 0 | List actions in reverse chronological order. The same action may appear more than once. |
QtopiaServiceHistoryModel::Recent | 2 | Sort actions by time performed, with the most recent at position 0. Each action will only appear once. |
QtopiaServiceHistoryModel::Frequency | 1 | Sort actions by frequency, with the most frequent at position 0. Each action will only appear once. |
Construct a QtopiaServiceHistoryModel with parent.
Destroys the QtopiaServiceHistoryModel
Returns the data stored under the given role for the item referred to by the index.
Reimplemented from QAbstractItemModel.
Inserts a new QtopiaServiceDescription desc in the history.
This is an overloaded member function, provided for convenience.
Inserts a new QtopiaServiceRequest request in the history with label and icon named icon.
Returns the number of rows under the given parent.
Reimplemented from QAbstractItemModel.
Returns the QtopiaServiceDescription for the item referred to by the index
Returns the QtopiaServiceRequest for the item referred to by the index.
Set the sorting order to sort.
See also sorting().
Return the current sort order.
See also setSorting().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |