CCntIdleSorter Class Reference
|
class CCntIdleSorter : public CBase
|
Constructor & Destructor Documentation
CCntIdleSorter()
|
CCntIdleSorter
|
(
|
)
|
[private]
|
CCntIdleSorter(CContactDatabase &)
Member Functions Documentation
CompleteRequest(TInt)
Complete the client's request status with the specified error value (KErrNone by default).
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
HasObserver()
|
TBool
&
|
HasObserver
|
(
|
)
|
[private, inline]
|
HasObserver()
|
TBool
|
HasObserver
|
(
|
)
|
const [private, inline]
|
PeformSortStep()
|
TInt
|
PeformSortStep
|
(
|
)
|
[private]
|
Idle object callback which performs appropriate action based on internal state machine.
ReadContactsL(TInt)
|
TBool
|
ReadContactsL
|
(
|
TInt
|
aNumber = 4
|
)
|
[private]
|
ReadSoFar()
|
TInt
&
|
ReadSoFar
|
(
|
)
|
[private, inline]
|
ReadSoFar()
|
TInt
|
ReadSoFar
|
(
|
)
|
const [private, inline]
|
ReportProgressL()
|
void
|
ReportProgressL
|
(
|
)
|
[private]
|
if we have an observer, then we report progress as the sort is performed (in reality we actually only report progress during the read stage, not the sort itself).
ResetL()
Initialise values to defaults.
SortCallBack(TAny *)
|
TInt
|
SortCallBack
|
(
|
TAny
*
|
aThis
|
)
|
[private, static]
|
Callback function for idle object.
SortListAndSaveL()
|
void
|
SortListAndSaveL
|
(
|
)
|
[private]
|
This function is called once the reading from the database is complete. It replaces the contact database's sorted list (takes ownership of iFinalItems).
StartSortingL(CArrayFix< CContactDatabase::TSortPref > *, TRequestStatus &)
Prepare and begin the sort.
StartSortingL(CArrayFix< CContactDatabase::TSortPref > *, TRequestStatus &, MContactSortObserver &)
TotalCount()
|
TInt
&
|
TotalCount
|
(
|
)
|
[private, inline]
|
TotalCount()
|
TInt
|
TotalCount
|
(
|
)
|
const [private, inline]
|
Member Enumerations Documentation
Enum TState
Enumerators
|
EReadContacts
|
|
|
ESortContacts
|
|
Member Data Documentation
TContactItemId
iCurrentId
CContactIdArray * iFinalItems
TBool
iHasObserver
|
TBool
|
iHasObserver
|
[private]
|
MContactSortObserver * iObserver
TInt
iReadSoFar
|
TInt
|
iReadSoFar
|
[private]
|
CArrayFix< CContactDatabase::TSortPref > * iSortOrder
TBool
iSortStarted
|
TBool
|
iSortStarted
|
[private]
|
TInt
iTotalCount
|
TInt
|
iTotalCount
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.