CPbkContactEngine::CContactDbConnection Class Reference
class CPbkContactEngine::CContactDbConnection : public CBase
|
Helper class for holding the contact database connection related objects of
CPbkContactEngine
.
Inherits from
-
CPbkContactEngine::CContactDbConnection
Nested Classes and Structures
Constructor & Destructor Documentation
CContactDbConnection()
CContactDbConnection
|
(
|
)
|
[private, inline]
|
~CContactDbConnection()
~CContactDbConnection
|
(
|
)
|
|
Member Functions Documentation
AllContactsView()
Returns the all contacts view.
AllGroupsViewL()
Returns the all groups view.
CancelCompress()
void
|
CancelCompress
|
(
|
)
|
const
|
ChangeSortOrderL(const RContactViewSortOrder &)
Changes the sort order. Contact views will be resorted which puts them into not ready state for a while.
CheckCompress()
Returns ETrue if the database could use a compression.
CheckFileSystemSpaceAndCompressL()
void
|
CheckFileSystemSpaceAndCompressL
|
(
|
)
|
|
Compacts the database synchronously if it recommends compression. If file system space is under critical level after compaction, leaves with KErrDiskFull.
CheckSystemTemplateL(const CPbkFieldsInfo &)
CloseSystemTemplate()
void
|
CloseSystemTemplate
|
(
|
)
|
[private]
|
CompressL()
Compresses the database asynchronously. Compress UI must be set and give its permission to start compression. Calls back the compress UI on the compression progress.
ConstructL(const TParams &, TBool)
void
|
ConstructL
|
(
|
const
TParams
&
|
aParams,
|
|
TBool
|
aSettingsVisible
|
|
)
|
[private, inline]
|
ContactNameFormatter()
Returns the name formatting object.
CreateAllContactsViewL(const RContactViewSortOrder &)
Database()
Returns the contact database.
FileSpaceLowOnDbDrive()
TBool
|
FileSpaceLowOnDbDrive
|
(
|
)
|
const
|
Returns true if file system space is low on the drive where contact database is located.
FilteredContactsViewL(TInt)
Returns a contact view filtered by aFilter.
Parameters
TInt
aFilter
|
see CContactDatabase::TContactViewFilter.
|
HandleContactViewEvent(const CContactViewBase &, const TContactViewEvent &)
InitViewL(CContactViewBase &)
Call this method for all views created in this class.
IsCompressionEnabled()
TBool
|
IsCompressionEnabled
|
(
|
)
|
const
|
Returns ETrue if background database compression is currently enabled.
NameDisplayOrder()
Returns the current name displaying order.
NameSeparator()
Returns the separator char to be used between last- and first names. If value = 0, then separator should not be used between names.
NewL(const TParams &, TBool)
Creates a new instance of this class.
Parameters
const
TParams
& aParams
|
see CContactDbConnection::TParams.
|
TBool
aSettingsVisible
|
Localization defined value, is the settings menu item visible or not. Affects to the name sorting.
|
SetCompressUi(MPbkCompressUi *)
SetNameDisplayOrderL(TPbkNameOrder)
Sets aNameOrder as the contact name ordering setting.
SetNameSeparatorL(TChar)
void
|
SetNameSeparatorL
|
(
|
TChar
|
aNameSeparator
|
)
|
|
Sets the separator char to be used between last- and first names. If value of aSeparator= 0, then separator should not be used..
SortOrderManager()
const CPbkSortOrderManager &
|
SortOrderManager
|
(
|
)
|
const [inline]
|
Returns the sort order manager.
Member Data Documentation
CContactNamedRemoteView * iAllContactsView
MPbkCompressionStrategy * iCompressionStrategy
CContactChangeNotifier * iContactChangeNotifier
CContactDatabase * iContactDb
MPbkContactNameFormat * iContactNameFormatter
RArray< TFilteredView > iFilteredViews
CContactLocalView * iGroupsLocalView
CPbkSortOrderManager * iSortOrderManager
CPbkSortOrderManager *
|
iSortOrderManager
|
[private]
|
CContactItem * iSysTemplate
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.