CContentMap Class Reference

class CContentMap : public CCPLiwMap

Map which contains ids and serialized data stored by Content Publisher

cputils.dll
Since
S60 v5.0
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 *)
void AppendSortL ( RBuf &, const TCPSortOrder &)
void ConstructL ()
TBool GetActivateInfo ()
TBool GetExpirationDateL ( TTime &)
TUint GetListL ( RSqlDatabase , CLiwGenericParamList *, RArray < TInt32 > &)
void IsDataMapL ()
TBool IsOutdated (const TTime )
void IsValidForDeleteL ()
void IsValidForGetListL ()
void PrepareStmtforAddL ( RSqlDatabase , RSqlStatement &, const TDesC &)
void PrepareStmtforUpdateL ( RSqlDatabase , RSqlStatement &, TInt32 )
void RemoveL ( RSqlDatabase , CLiwDefaultList *)
void SaveQueryResultsL ( RSqlStatement &, CLiwGenericParamList &, RArray < TInt32 > &)
void UpdateL ( 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 ( RSqlDatabase aSqlDb,
CLiwDefaultList * aNotificationList = NULL
) const [private, virtual]

Adds to database current content

Parameters

RSqlDatabase aSqlDb handle to database
CLiwDefaultList * aNotificationList = NULL list of notifications to fill in when something was actually changed in dataabse

AddToDbL(RSqlDatabase, CLiwDefaultList *)

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

Performs actuall add operation

Parameters

RSqlDatabase aSqlDb handle to database
CLiwDefaultList * aNotificationList list of notifications to fill in when something was actually changed in dataabse

AppendSortL(RBuf &, const TCPSortOrder &)

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

Appends sorting criteria as strings to SQL query according to aSort

Parameters

RBuf & aQuery SQL query
const TCPSortOrder & aSort sort filter as TInt

ConstructL()

void ConstructL ( ) [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 & aResult expiration date

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

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

Fetches entries from database

Parameters

RSqlDatabase aSqlDb handle to database
CLiwGenericParamList * aList target list for enntries
RArray < TInt32 > & aItemsToDelete ids of entries for removal - they were found to be expired

IsDataMapL()

void IsDataMapL ( ) const [private]

Check if data map is set

IsOutdated(const TTime)

TBool IsOutdated ( const TTime aExpirationTime ) const [private]

Checks expiration time

Parameters

const TTime aExpirationTime time to checking with current time

IsValidForDeleteL()

void IsValidForDeleteL ( ) const [private, virtual]

Check if IDs are valid for Delete operation

IsValidForGetListL()

void IsValidForGetListL ( ) 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 &)

void PrepareStmtforAddL ( RSqlDatabase aSqlDb,
RSqlStatement & aStmt,
const TDesC & aQuery
) const [private, virtual]

Prepares SQL query for Add operation

Parameters

RSqlDatabase aSqlDb handle to database
RSqlStatement & aStmt handle to SQL statement
const TDesC & aQuery SQL query

PrepareStmtforUpdateL(RSqlDatabase, RSqlStatement &, TInt32)

void PrepareStmtforUpdateL ( RSqlDatabase aSqlDb,
RSqlStatement & aStmt,
TInt32 aId
) const [private]

Prepares SQL query for Update operation

Parameters

RSqlDatabase aSqlDb handle to database
RSqlStatement & aStmt handle to SQL statement
TInt32 aId id of entry to update

RemoveL(RSqlDatabase, CLiwDefaultList *)

void RemoveL ( RSqlDatabase aSqlDb,
CLiwDefaultList * aNotificationList = 0
) const [private, virtual]

Removes entries from database

Parameters

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

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

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

Saves results from query to SQLite Server

Parameters

RSqlStatement & aStmt handle to SQL statement
CLiwGenericParamList & aList target list for enntries
RArray < TInt32 > & aItemsToDelete ids of entries for removal - they were found to be expired

UpdateL(RSqlDatabase, TInt32, CLiwDefaultList *)

void UpdateL ( RSqlDatabase aSqlDb,
TInt32 aId,
CLiwDefaultList * aNotificationList
) const [private, virtual]

Updates entry in database

Parameters

RSqlDatabase aSqlDb handle to database
TInt32 aId id entry to update
CLiwDefaultList * aNotificationList list of notifications to fill in when something was actually changed in dataabse