#include <kpayeesview.h>
Public Types | |
enum | TransactionSortE { SortEntryDate = 0, SortPostDate, SortTypeNr, SortReceiver, SortValue, SortNr, SortEntryOrder } |
Public Member Functions | |
KTransactionPtrVector () | |
~KTransactionPtrVector () | |
void | setSortType (const TransactionSortE type) |
TransactionSortE | sortType (void) const |
void | setAccountId (const QString &id) |
void | setPayeeId (const QString &id) |
Protected Member Functions | |
int | compareItems (KTransactionPtrVector::Item d1, KTransactionPtrVector::Item d2) |
Private Types | |
enum | { AccountMode = 0, PayeeMode } |
Private Member Functions | |
int | compareItems (const QString &s1, const QString &s2) const |
Private Attributes | |
short | m_idMode |
QString | m_id |
TransactionSortE | m_sortType |
This enumerator defines the possible sort methods. Possible values are:
KTransactionPtrVector::KTransactionPtrVector | ( | ) | [inline] |
KTransactionPtrVector::~KTransactionPtrVector | ( | ) | [inline] |
void KTransactionPtrVector::setSortType | ( | const TransactionSortE | type | ) |
This method is used to set a different sort type. The vector is resorted. See KTransactionPtrVector::TransactionSortE for possible values.
TransactionSortE KTransactionPtrVector::sortType | ( | void | ) | const [inline] |
This method returns the current sort type.
void KTransactionPtrVector::setAccountId | ( | const QString & | id | ) |
This method is used to set the account id to have a chance to get information about the split referencing the current account during the sort phase.
void KTransactionPtrVector::setPayeeId | ( | const QString & | id | ) |
This method is used to set the payee id to have a chance to get information about the split referencing the current payee during the sort phase.
int KTransactionPtrVector::compareItems | ( | KTransactionPtrVector::Item | d1, | |
KTransactionPtrVector::Item | d2 | |||
) | [protected] |
int KTransactionPtrVector::compareItems | ( | const QString & | s1, | |
const QString & | s2 | |||
) | const [private] |
short KTransactionPtrVector::m_idMode [private] |
QString KTransactionPtrVector::m_id [private] |