CPublisherRegistryMap Class Reference

class CPublisherRegistryMap : public CCPLiwMap

Map which contains Publisher Registry information

cputils.dll
Since
S60 v5.0

Inherits from

Public Member Functions
~CPublisherRegistryMap ()
IMPORT_C CPublisherRegistryMap * NewL ()
IMPORT_C CPublisherRegistryMap * NewLC ()
Private Member Functions
CPublisherRegistryMap ()
TBool ActivateActionSupport ()
TInt32 AddL ( RSqlDatabase , CLiwDefaultList *)
TInt32 AddToDbL ( RSqlDatabase , CLiwDefaultList *)
void AppendFilterL ( RBuf &, TUint &)
void AppendSortL ( RBuf &, const TCPSortOrder &)
void ConstructL ()
void FillChangeInfoMapL ( RSqlStatement &, CLiwDefaultMap *)
TBool GetActivateInfo ()
TUint GetListL ( RSqlDatabase , CLiwGenericParamList *, RArray < TInt32 > &)
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::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::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

CPublisherRegistryMap()

CPublisherRegistryMap ( ) [private]

C++ default constructor.

~CPublisherRegistryMap()

~CPublisherRegistryMap ( ) [virtual]

Destructor.

Member Functions Documentation

ActivateActionSupport()

TBool ActivateActionSupport ( ) const [private, virtual]

AddL(RSqlDatabase, CLiwDefaultList *)

TInt32 AddL ( RSqlDatabase aSqlDb,
CLiwDefaultList * aNotificationList = 0
) const [private, virtual]

Adds to database current content

Parameters

RSqlDatabase aSqlDb handle to database
CLiwDefaultList * aNotificationList = 0 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

AppendFilterL(RBuf &, TUint &)

void AppendFilterL ( RBuf & aQuery,
TUint & aFilter
) const [private, virtual]

Appends filter as strings to SQL query according to aFilter

Parameters

RBuf & aQuery SQL query
TUint & aFilter as enum

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 CPublisherRegistryMap object.

FillChangeInfoMapL(RSqlStatement &, CLiwDefaultMap *)

void FillChangeInfoMapL ( RSqlStatement & aStmt,
CLiwDefaultMap * aMap
) const [private, virtual]

Fills change info map with proper values aStmt

Parameters

RSqlStatement & aStmt handle to SQL statement
CLiwDefaultMap * aMap

GetActivateInfo()

TBool GetActivateInfo ( ) const [private, virtual]

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

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 CPublisherRegistryMap * NewL ( ) [static]

Two-phased constructor.

NewLC()

IMPORT_C CPublisherRegistryMap * 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]

Removes entries from database

Parameters

RSqlStatement & aStmt
CLiwGenericParamList & aList
RArray < TInt32 > & aItemsToDelete

UpdateL(RSqlDatabase, TInt32, CLiwDefaultList *)

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

Updates entry in database

Parameters

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