CCPLiwMap Class Reference
class CCPLiwMap : public CLiwMap |
Base Map class for Publisher Registry and Content
cputils.dll
- Since
- S60 v5.0
Protected Member Functions |
---|
| CCPLiwMap() |
TInt32
| AddL(RSqlDatabase, CLiwDefaultList *) |
TInt32
| AddToDbL(RSqlDatabase, CLiwDefaultList *) |
void | AppendFilterL(RBuf &, TUint &) |
void | AppendGetListFilterL(RBuf &, TUint &) |
void | AppendRemoveFilterL(RBuf &, TUint &) |
void | AppendSortL(RBuf &, const TCPSortOrder &) |
void | BindBinaryL(RSqlStatement &, TInt, const TDesC8 &) |
void | BindInt64L(RSqlStatement &, TInt, TInt64) |
void | BindIntL(RSqlStatement &, TInt, TInt) |
void | BindTextL(RSqlStatement &, TInt, const TDesC &) |
void | BindValueL(const RBuf &, RSqlStatement &) |
void | CheckIdentifiersL() |
TInt
| ColumnIndexL(RSqlStatement &, const TDesC &) |
void | ConstructGetListSelectL(RBuf &, TBool) |
void | ConstructL() |
void | ConstructRemoveSelectL(RBuf &, TBool) |
void | ConstructSelectIdL(RBuf &) |
void | ExtractParamL(const TLiwGenericParam &) |
void | FetchIdL(RSqlDatabase, const TDesC &, TInt32 &) |
void | FetchIdsL(TInt32, const TDesC &, CLiwDefaultMap *, RSqlDatabase) |
void | FillChangeInfoMapL(RSqlStatement &, CLiwDefaultMap *) |
TUint
| GetFilterL() |
void | GetIdsOfRemovedEntriesL(RSqlDatabase, const TDesC &, CLiwDefaultList *) |
TUint
| GetListL(RSqlDatabase, CLiwGenericParamList *, RArray< TInt32 > &) |
TUint
| GetListL(RSqlDatabase, const TDesC &, CLiwGenericParamList *, RArray< TInt32 > &) |
TCPSortOrder
| GetSortL() |
TBool
| IsContentIdL() |
TBool
| IsContentTypeL() |
TBool
| IsFlag() |
TBool
| IsGetListAllL(TUint) |
TBool
| IsId() |
void | IsProperOperationL(const TLiwVariant &) |
TBool
| IsPropertyValidL(const TDesC8 &) |
TBool
| IsPublisherNameL() |
TBool
| IsTriggerL() |
TBool
| IsTypePublisherL(const TLiwVariant &) |
void | PrepareStmtforAddL(RSqlDatabase, RSqlStatement &, const TDesC &) |
TBool
| PropertyExists(const TDesC8 &) |
void | RemoveAllAttributeL(TUint &) |
void | RemoveL(RSqlDatabase, CLiwDefaultList *) |
void | RemoveL(RSqlDatabase, const TDesC &) |
void | SaveQueryResultsIdsL(RSqlStatement &, CLiwDefaultList *) |
void | SaveQueryResultsL(RSqlStatement &, CLiwGenericParamList &, RArray< TInt32 > &) |
void | SetL(const CLiwGenericParamList &) |
void | SetL(const CLiwMap &) |
void | UpdateL(RSqlDatabase, TInt32, CLiwDefaultList *) |
Constructor & Destructor Documentation
Member Functions Documentation
ActivateActionSupport()
TBool
| ActivateActionSupport | ( | ) | const [pure virtual] |
AddL(RSqlDatabase, CLiwDefaultList *)
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 *)
Performs actuall add operation
Parameters
RSqlDatabase aSqlDb | handle to database |
CLiwDefaultList * aNotificationList = 0 | list of notifications to fill in when something was actually changed in dataabse |
AppendFilterL(RBuf &, TUint &)
void | AppendFilterL | ( | RBuf & | aQuery, |
| TUint & | aFilter |
| ) | const [protected, virtual] |
Appends filter as strings to SQL query according to aFilter
Parameters
RBuf & aQuery | SQL query |
TUint & aFilter | as enum |
AppendGetListFilterL(RBuf &, TUint &)
void | AppendGetListFilterL | ( | RBuf & | aQuery, |
| TUint & | aFilter |
| ) | const [protected] |
Appends GetList filter as strings to SQL query according to aFilter
Parameters
RBuf & aQuery | SQL query |
TUint & aFilter | as enum |
AppendRemoveFilterL(RBuf &, TUint &)
void | AppendRemoveFilterL | ( | RBuf & | aQuery, |
| TUint & | aFilter |
| ) | const [protected] |
Appends Remove 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 [protected, pure virtual] |
Appends sorting criteria as strings to SQL query according to aSort
AtL(TInt, TDes8 &)
Returns the key stored at a specified index.
Parameters
TInt aIndex | the index of the key to be found |
TDes8 & aFndKey | the key found at the passed index |
BindBinaryL(RSqlStatement &, TInt, const TDesC8 &)
Leaves if aParameterIndex is negative-error value or in case of binding error.
BindInt64L(RSqlStatement &, TInt, TInt64)
Leaves if aParameterIndex is negative-error value or in case of binding error.
BindIntL(RSqlStatement &, TInt, TInt)
Leaves if aParameterIndex is negative-error value or in case of binding error.
BindTextL(RSqlStatement &, TInt, const TDesC &)
Leaves if aParameterIndex is negative-error value or in case of binding error.
BindValueL(const RBuf &, RSqlStatement &)
CheckIdentifiersL()
void | CheckIdentifiersL | ( | ) | const [protected] |
Leaves if publisher, content type od content_id is not descriptor type.
ColumnIndexL(RSqlStatement &, const TDesC &)
Leaves if column index return value is negative.
ConstructGetListSelectL(RBuf &, TBool)
void | ConstructGetListSelectL | ( | RBuf & | aQuery, |
| TBool | aGet = ETrue |
| ) | const [protected] |
Contructs SQL query to select entries for GetList
ConstructL()
void | ConstructL | ( | ) | [protected] |
Perform the second phase construction of a CCPLiwMap object.
ConstructRemoveSelectL(RBuf &, TBool)
void | ConstructRemoveSelectL | ( | RBuf & | aQuery, |
| TBool | aGet = ETrue |
| ) | const [protected] |
Contructs SQL query to select entries for Remove
ConstructSelectIdL(RBuf &)
void | ConstructSelectIdL | ( | RBuf & | aQuery | ) | const [protected] |
Contructs SQL query to select entry
Count()
TInt
| Count | ( | ) | const [virtual] |
Returns the number of key-value pair stored in the map collection.
ExternalizeL(RWriteStream &)
void | ExternalizeL | ( | RWriteStream & | aOutputStream | ) | const [virtual] |
The container managed data values can be serialized to an output stream.
Parameters
RWriteStream & aOutputStream | the output stream to which the data will be streamed |
ExtractParamL(const TLiwGenericParam &)
Extracts a param and appends it to the internal list
FetchIdL(RSqlDatabase, const TDesC &, TInt32 &)
FetchIdsL(TInt32, const TDesC &, CLiwDefaultMap *, RSqlDatabase)
Fetches Ids (Publisher, ContentType, ContentId) from database
FillChangeInfoMapL(RSqlStatement &, CLiwDefaultMap *)
Fills change info map with proper values aStmt
FindL(const TDesC8 &, TLiwVariant &)
Finds a value stored in the map collection based on the key.
GetActionTriggersLC()
Return list of action triggers from main map Note that these are not triggers from action map
GetActivateInfo()
TBool
| GetActivateInfo | ( | ) | const [pure virtual] |
GetFilterL()
TUint
| GetFilterL | ( | ) | const [protected] |
GetIdsOfRemovedEntriesL(RSqlDatabase, const TDesC &, CLiwDefaultList *)
Gets Ids (Id, Publisher, ContentType, ContentId) of removed entries from database
GetListL(RSqlDatabase, CLiwGenericParamList *, RArray< TInt32 > &)
Fetches entries from database
GetListL(RSqlDatabase, const TDesC &, CLiwGenericParamList *, RArray< TInt32 > &)
Fetches entries from database
GetProperty(const TDesC8 &, TInt32 &)
Fetches value for property(key) from internal map
Parameters
const TDesC8 & aProperty | name of the property ( key ) |
TInt32 & aResult | target integer for fetching operation |
GetPropertyL(const TDesC8 &, RBuf &)
Fetches value for property(key) from internal map
Parameters
const TDesC8 & aProperty | name of the property ( key ) |
RBuf & aResult | target descriptor for fetching operation |
GetPropertyL(const TDesC8 &, RBuf8 &)
Fetches value for property(key) from internal map
Parameters
const TDesC8 & aProperty | name of the property ( key ) |
RBuf8 & aResult | target binary for fetching operation |
GetSortL()
Check and return sort order
InsertL(const TDesC8 &, const TLiwVariant &)
Inserts a key-value pair element to the map collection. If the specified key already exists, it will be removed from the collection and the new key-value pair will be added to the map.
Parameters
const TDesC8 & aKey | the key to be stored |
const TLiwVariant & aValue | the value associated with the key to be stored |
IsContentIdL()
TBool
| IsContentIdL | ( | ) | const [protected] |
Check if ContentId is set
IsContentTypeL()
TBool
| IsContentTypeL | ( | ) | const [protected] |
Check if ContentType is set
IsFlag()
TBool
| IsFlag | ( | ) | const [protected] |
IsGetListAllL(TUint)
TBool
| IsGetListAllL | ( | TUint | aFilter | ) | const [protected] |
Checks if GetList for all items should be done
Parameters
TUint aFilter | flag describing which ids are set |
IsId()
TBool
| IsId | ( | ) | const [protected] |
Checks if Id property is present in internal map
IsProperOperationL(const TLiwVariant &)
void | IsProperOperationL | ( | const TLiwVariant & | aValue | ) | const [protected] |
Checks if operation value is proper
IsPropertyValidL(const TDesC8 &)
TBool
| IsPropertyValidL | ( | const TDesC8 & | aProperty | ) | const [protected] |
Returns ETrue if a property has valid name and type
Parameters
const TDesC8 & aProperty | property name |
IsPublisherNameL()
TBool
| IsPublisherNameL | ( | ) | const [protected] |
Check if Publisher name is set
IsTriggerL()
TBool
| IsTriggerL | ( | ) | const [protected] |
Check if ActionTrigger is set
IsTypePublisherL(const TLiwVariant &)
Parameters
const TLiwVariant & aVariant | variant containing a map type |
IsValidForActionL()
IMPORT_C void | IsValidForActionL | ( | ) | const |
Leaves when Execute Action operation is not possible due to missing of some parameter
IsValidForAddL()
void | IsValidForAddL | ( | ) | const [virtual] |
Leaves when Add data operation is not possible due to missing of some parameter
IsValidForDeleteL()
void | IsValidForDeleteL | ( | ) | const [pure virtual] |
Check if IDs are valid for Delete operation
IsValidForGetListL()
void | IsValidForGetListL | ( | ) | const [pure virtual] |
Check if IDs are valid for GetList operation
IsValidForNotificationL()
IMPORT_C void | IsValidForNotificationL | ( | ) | const |
Leaves when RequestNotification operation is not possible due to missing of some parameter
NewL(const CLiwGenericParamList &)
PackForServerLC()
IMPORT_C HBufC8 * | PackForServerLC | ( | ) | const |
Used by client to serialize this object
PrepareStmtforAddL(RSqlDatabase, RSqlStatement &, const TDesC &)
Prepares SQL query for Add operation
PropertyExists(const TDesC8 &)
TBool
| PropertyExists | ( | const TDesC8 & | aProperty | ) | const [protected] |
Checks if property(key) is present in internal map
Remove(const TDesC8 &)
void | Remove | ( | const TDesC8 & | aKey | ) | [virtual] |
Removes a key from the map collection.
Parameters
const TDesC8 & aKey | the key to be removed from the map |
RemoveAllAttributeL(TUint &)
void | RemoveAllAttributeL | ( | TUint & | aFilter | ) | const [protected] |
Removes attributes with "All" value from map
Parameters
TUint & aFilter | filter bit will be reset if any attribute == "all" |
RemoveL(RSqlDatabase, CLiwDefaultList *)
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 |
RemoveL(RSqlDatabase, const TDesC &)
Removes entries from database
Reset()
IMPORT_C void | Reset | ( | ) | const |
SaveQueryResultsIdsL(RSqlStatement &, CLiwDefaultList *)
Saves Ids (Id, Publisher, ContentType, ContentId) from database
SaveQueryResultsL(RSqlStatement &, CLiwGenericParamList &, RArray< TInt32 > &)
Saves results from query to SQLite Server
SetL(const CLiwGenericParamList &)
Sets all parameters according to provided list
SetL(const CLiwMap &)
void | SetL | ( | const CLiwMap & | aMap | ) | [protected] |
Sets all parameters according to provided list
Parameters
const CLiwMap & aMap | map with parameters |
SetSecurityL(const RMessage2 &)
IMPORT_C void | SetSecurityL | ( | const RMessage2 & | aMessage | ) | |
Setter for security policy
Size()
TInt
| Size | ( | ) | const [virtual] |
Returns the size of the collection. The size is calculated based on the total numer of key-value elements and the size of each pair in the collection
UpdateL(RSqlDatabase, TInt32, CLiwDefaultList *)
Updates entry in database
Parameters
RSqlDatabase aSqlDb | handle to database |
TInt32 aId | |
CLiwDefaultList * aNotificationList = 0 | list of notifications to fill in when something was actually changed in dataabse |
Member Enumerations Documentation
Enum TCPProperties
Enum defining the properties of filter.
Enumerators
EPublisher = 1 | |
EContentType = 2 | |
EContentId = 4 | |
EFlag = 8 | |
Enum TCPSortOrder
Enum defining the sort ordering.
Enumerators
ECPRecent = 1 | |
ECPPublisher = 2 | |
ECPContent = 4 | |
ECPContentId = 8 | |
Member Data Documentation
CLiwGenericParamList * iMap
const CCPSecurityPolicy * iPolicy
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.