CContentMap Class Reference

class CContentMap : public CCPLiwMap

Map which contains ids and serialized data stored by Content Publisher

cputils.dll
Since
S60 v5.0

Inherits from

Public Member Functions
~CContentMap()
IMPORT_C CContentMap *NewL()
IMPORT_C CContentMap *NewLC()
Private Member Functions
CContentMap()
TBool ActivateActionSupport()
TInt32 AddL(RSqlDatabase, CLiwDefaultList *)
TInt32 AddToDbL(RSqlDatabase, CLiwDefaultList *)
voidAppendSortL(RBuf &, const TCPSortOrder &)
voidConstructL()
TBool GetActivateInfo()
TBool GetExpirationDateL(TTime &)
TUint GetListL(RSqlDatabase, CLiwGenericParamList *, RArray< TInt32 > &)
voidIsDataMapL()
TBool IsOutdated(const TTime)
voidIsValidForDeleteL()
voidIsValidForGetListL()
voidPrepareStmtforAddL(RSqlDatabase, RSqlStatement &, const TDesC &)
voidPrepareStmtforUpdateL(RSqlDatabase, RSqlStatement &, TInt32)
voidRemoveL(RSqlDatabase, CLiwDefaultList *)
voidSaveQueryResultsL(RSqlStatement &, CLiwGenericParamList &, RArray< TInt32 > &)
voidUpdateL(RSqlDatabase, TInt32, CLiwDefaultList *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCPLiwMap::AppendFilterL(RBuf &,TUint &)const
CCPLiwMap::AppendGetListFilterL(RBuf &,TUint &)const
CCPLiwMap::AppendRemoveFilterL(RBuf &,TUint &)const
CCPLiwMap::AtL(TInt,TDes8 &)const
CCPLiwMap::BindBinaryL(RSqlStatement &,TInt,const TDesC8 &)const
CCPLiwMap::BindInt64L(RSqlStatement &,TInt,TInt64)const
CCPLiwMap::BindIntL(RSqlStatement &,TInt,TInt)const
CCPLiwMap::BindTextL(RSqlStatement &,TInt,const TDesC &)const
CCPLiwMap::BindValueL(const RBuf &,RSqlStatement &)const
CCPLiwMap::CCPLiwMap()
CCPLiwMap::CheckIdentifiersL()const
CCPLiwMap::ColumnIndexL(RSqlStatement &,const TDesC &)const
CCPLiwMap::ConstructGetListSelectL(RBuf &,TBool)const
CCPLiwMap::ConstructRemoveSelectL(RBuf &,TBool)const
CCPLiwMap::ConstructSelectIdL(RBuf &)const
CCPLiwMap::Count()const
CCPLiwMap::ExternalizeL(RWriteStream &)const
CCPLiwMap::ExtractParamL(const TLiwGenericParam &)
CCPLiwMap::FetchIdL(RSqlDatabase,const TDesC &,TInt32 &)const
CCPLiwMap::FetchIdsL(TInt32,const TDesC &,CLiwDefaultMap *,RSqlDatabase)const
CCPLiwMap::FillChangeInfoMapL(RSqlStatement &,CLiwDefaultMap *)const
CCPLiwMap::FindL(const TDesC8 &,TLiwVariant &)const
CCPLiwMap::GetActionTriggersLC()const
CCPLiwMap::GetFilterL()const
CCPLiwMap::GetIdsOfRemovedEntriesL(RSqlDatabase,const TDesC &,CLiwDefaultList *)const
CCPLiwMap::GetListL(RSqlDatabase,const TDesC &,CLiwGenericParamList *,RArray< TInt32 > &)const
CCPLiwMap::GetProperty(const TDesC8 &,TInt32 &)const
CCPLiwMap::GetPropertyL(const TDesC8 &,RBuf &)const
CCPLiwMap::GetPropertyL(const TDesC8 &,RBuf8 &)const
CCPLiwMap::GetSortL()const
CCPLiwMap::InsertL(const TDesC8 &,const TLiwVariant &)
CCPLiwMap::IsContentIdL()const
CCPLiwMap::IsContentTypeL()const
CCPLiwMap::IsFlag()const
CCPLiwMap::IsGetListAllL(TUint)const
CCPLiwMap::IsId()const
CCPLiwMap::IsProperOperationL(const TLiwVariant &)const
CCPLiwMap::IsPropertyValidL(const TDesC8 &)const
CCPLiwMap::IsPublisherNameL()const
CCPLiwMap::IsTriggerL()const
CCPLiwMap::IsTypePublisherL(const TLiwVariant &)
CCPLiwMap::IsValidForActionL()const
CCPLiwMap::IsValidForAddL()const
CCPLiwMap::IsValidForNotificationL()const
CCPLiwMap::NewL(RDesReadStream &)
CCPLiwMap::NewL(const CLiwGenericParamList &)
CCPLiwMap::NewL(const CLiwMap &)
CCPLiwMap::PackForServerLC()const
CCPLiwMap::PropertyExists(const TDesC8 &)const
CCPLiwMap::Remove(const TDesC8 &)
CCPLiwMap::RemoveAllAttributeL(TUint &)const
CCPLiwMap::RemoveL(RSqlDatabase,const TDesC &)const
CCPLiwMap::Reset()const
CCPLiwMap::SaveQueryResultsIdsL(RSqlStatement &,CLiwDefaultList *)const
CCPLiwMap::SetL(const CLiwGenericParamList &)
CCPLiwMap::SetL(const CLiwMap &)
CCPLiwMap::SetSecurityL(const RMessage2 &)
CCPLiwMap::Size()const
CCPLiwMap::~CCPLiwMap()
CLiwContainer::CLiwContainer()
CLiwContainer::Close()
CLiwContainer::DecRef()
CLiwContainer::IncRef()
CLiwContainer::PushL()
CLiwContainer::~CLiwContainer()
CLiwMap::operator==(const CLiwMap &)const
Inherited Enumerations
CCPLiwMap:TCPProperties
CCPLiwMap:TCPSortOrder
Inherited Attributes
CCPLiwMap::iMap
CCPLiwMap::iPolicy

Constructor & Destructor Documentation

CContentMap()

CContentMap()[private]

C++ default constructor.

~CContentMap()

~CContentMap()[virtual]

Destructor.

Member Functions Documentation

ActivateActionSupport()

TBool ActivateActionSupport()const [private, virtual]

AddL(RSqlDatabase, CLiwDefaultList *)

TInt32 AddL(RSqlDatabaseaSqlDb,
CLiwDefaultList *aNotificationList = NULL
)const [private, virtual]

Adds to database current content

Parameters

RSqlDatabase aSqlDbhandle to database
CLiwDefaultList * aNotificationList = NULLlist of notifications to fill in when something was actually changed in dataabse

AddToDbL(RSqlDatabase, CLiwDefaultList *)

TInt32 AddToDbL(RSqlDatabaseaSqlDb,
CLiwDefaultList *aNotificationList
)const [private, virtual]

Performs actuall add operation

Parameters

RSqlDatabase aSqlDbhandle to database
CLiwDefaultList * aNotificationListlist of notifications to fill in when something was actually changed in dataabse

AppendSortL(RBuf &, const TCPSortOrder &)

voidAppendSortL(RBuf &aQuery,
const TCPSortOrder &aSort
)const [private, virtual]

Appends sorting criteria as strings to SQL query according to aSort

Parameters

RBuf & aQuerySQL query
const TCPSortOrder & aSortsort filter as TInt

ConstructL()

voidConstructL()[private]

Perform the second phase construction of a CContentMap object.

GetActivateInfo()

TBool GetActivateInfo()const [private, virtual]

GetExpirationDateL(TTime &)

TBool GetExpirationDateL(TTime &aResult)const [private]

Gets expiration time from own data

Parameters

TTime & aResultexpiration date

GetListL(RSqlDatabase, CLiwGenericParamList *, RArray< TInt32 > &)

TUint GetListL(RSqlDatabaseaSqlDb,
CLiwGenericParamList *aList,
RArray< TInt32 > &aItemsToDelete
)const [private, virtual]

Fetches entries from database

Parameters

RSqlDatabase aSqlDbhandle to database
CLiwGenericParamList * aListtarget list for enntries
RArray< TInt32 > & aItemsToDeleteids of entries for removal - they were found to be expired

IsDataMapL()

voidIsDataMapL()const [private]

Check if data map is set

IsOutdated(const TTime)

TBool IsOutdated(const TTimeaExpirationTime)const [private]

Checks expiration time

Parameters

const TTime aExpirationTimetime to checking with current time

IsValidForDeleteL()

voidIsValidForDeleteL()const [private, virtual]

Check if IDs are valid for Delete operation

IsValidForGetListL()

voidIsValidForGetListL()const [private, virtual]

Check if IDs are valid for GetList operation

NewL()

IMPORT_C CContentMap *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CContentMap *NewLC()[static]

Two-phased constructor.

PrepareStmtforAddL(RSqlDatabase, RSqlStatement &, const TDesC &)

voidPrepareStmtforAddL(RSqlDatabaseaSqlDb,
RSqlStatement &aStmt,
const TDesC &aQuery
)const [private, virtual]

Prepares SQL query for Add operation

Parameters

RSqlDatabase aSqlDbhandle to database
RSqlStatement & aStmthandle to SQL statement
const TDesC & aQuerySQL query

PrepareStmtforUpdateL(RSqlDatabase, RSqlStatement &, TInt32)

voidPrepareStmtforUpdateL(RSqlDatabaseaSqlDb,
RSqlStatement &aStmt,
TInt32aId
)const [private]

Prepares SQL query for Update operation

Parameters

RSqlDatabase aSqlDbhandle to database
RSqlStatement & aStmthandle to SQL statement
TInt32 aIdid of entry to update

RemoveL(RSqlDatabase, CLiwDefaultList *)

voidRemoveL(RSqlDatabaseaSqlDb,
CLiwDefaultList *aNotificationList = 0
)const [private, virtual]

Removes entries from database

Parameters

RSqlDatabase aSqlDbhandle to database
CLiwDefaultList * aNotificationList = 0list of notifications to fill in when something was actually changed in dataabse

SaveQueryResultsL(RSqlStatement &, CLiwGenericParamList &, RArray< TInt32 > &)

voidSaveQueryResultsL(RSqlStatement &aStmt,
CLiwGenericParamList &aList,
RArray< TInt32 > &aItemsToDelete
)const [private, virtual]

Saves results from query to SQLite Server

Parameters

RSqlStatement & aStmthandle to SQL statement
CLiwGenericParamList & aListtarget list for enntries
RArray< TInt32 > & aItemsToDeleteids of entries for removal - they were found to be expired

UpdateL(RSqlDatabase, TInt32, CLiwDefaultList *)

voidUpdateL(RSqlDatabaseaSqlDb,
TInt32aId,
CLiwDefaultList *aNotificationList
)const [private, virtual]

Updates entry in database

Parameters

RSqlDatabase aSqlDbhandle to database
TInt32 aIdid entry to update
CLiwDefaultList * aNotificationListlist of notifications to fill in when something was actually changed in dataabse