class MNcdProvider : public MCatalogsBase |
MNcdProvider provides functions to NCD specific functionality, such as purchase history access, subscription management, search, observing major events etc.
Public Member Functions | |
---|---|
void | AddConfigurationL (const MNcdKeyValuePair &) |
void | ClearCacheL ( TRequestStatus &) |
void | ClearSearchResultsL () |
RPointerArray < CNcdKeyValuePair > | ConfigurationsL () |
MNcdFileDownloadOperation * | DownloadFileL (const TDesC &, const TDesC &, MNcdFileDownloadOperationObserver &) |
TBool | IsFixedApL () |
TBool | IsSimChangedL () |
MNcdNode * | NodeL (const TDesC &, const TDesC &) |
MNcdNode * | NodeL (const MNcdPurchaseDetails &) |
RCatalogsArray < MNcdOperation > | OperationsL () |
MNcdPurchaseHistory * | PurchaseHistoryL () |
void | RemoveConfigurationL (const TDesC &) |
MNcdNode * | RootNodeL () |
MNcdNode * | SchemeNodeL (const TDesC &, const TDesC &, const TDesC &, TNcdSchemeNodeType , TBool , TBool ) |
void | SetDefaultConnectionMethodL (const TNcdConnectionMethod &) |
void | SetObserver ( MNcdProviderObserver *) |
void | SetStringLocalizer ( MNcdClientLocalizer &) |
MNcdSubscriptionManager * | SubscriptionsL () |
Protected Member Functions | |
---|---|
~MNcdProvider () |
Inherited Enumerations | |
---|---|
MCatalogsBase:@46 |
void | AddConfigurationL | ( | const MNcdKeyValuePair & | aConfiguration | ) | [pure virtual] |
Adds a configuration that will be sent to content providers.
Only one value per key is accepted. If the key already exists, it's old value is replaced with the new one. The only exception are keys that match NcdConfigurationKeys::KCapability. The number of capability keys is not limited, but their (folded) values are ensured to be unique.
Leave |
System wide error code. |
const MNcdKeyValuePair & aConfiguration | Configuration to be added. |
void | ClearCacheL | ( | TRequestStatus & | aStatus | ) | [pure virtual] |
Clears the entire client cache (nodes, icons, previews)
The client should release all nodes and close all open files before calling this method.
TRequestStatus & aStatus |
void | ClearSearchResultsL | ( | ) | [pure virtual] |
Clears all search results. This method should be called before starting a new search.
This method only marks the search result nodes for removal and makes them unavailable, therefore it doesn't take a long time to complete.
Previous result nodes need to be released to remove them from cache.
RPointerArray < CNcdKeyValuePair > | ConfigurationsL | ( | ) | const [pure virtual] |
Returns a list of configurations that are used when communicating with content providers.
KErrNotFound |
if no configurations have been set |
Leave |
System wide error code. |
MNcdFileDownloadOperation * | DownloadFileL | ( | const TDesC & | aUri, |
const TDesC & | aTargetFileName, | |||
MNcdFileDownloadOperationObserver & | aObserver | |||
) | [pure virtual] |
Downloads a file from the given URI. The file is not handled by the engine, the file should be handled by the user of this interface as it sees fit.
The reference count of the operation object is increased by one. So, Release function of the operation should be called when the operation is not needed anymore.
The file will be moved to the target location after it has been fully downloaded. Any existing file with the same name will be overwritten.
TBool | IsFixedApL | ( | ) | [pure virtual] |
Tells whether fixed access point defined in engine's configuration file is used. In this case AP selection possibility may need to be disabled in UI.
TBool | IsSimChangedL | ( | ) | [pure virtual] |
Tells whether the SIM was changed or removed since the previous startup.
MNcdNode * | NodeL | ( | const TDesC & | aNameSpaceId, |
const TDesC & | aNodeId | |||
) | const [pure virtual] |
Retrieves a node identified by a namespace Id and a node Id.
Leave |
KErrNotFound if the node is not found from the RAM or database cache. |
Leave |
System wide error code. |
MNcdNode * | NodeL | ( | const MNcdPurchaseDetails & | aDetails | ) | const [pure virtual] |
Retrieves a node identified by purchase history details
Leave |
System wide error code. |
const MNcdPurchaseDetails & aDetails | Purchase details |
RCatalogsArray < MNcdOperation > | OperationsL | ( | ) | const [pure virtual] |
Returns a list of currently active operations for progress monitoring and operation management. The returned operation objects have their reference counts incremented, the items must be released after use e.g. with a call to the array's ResetAndDestroy().
Lifetime of the operation objects cannot exceed the lifetime of the provider object. If there are unreleased references to a provider's operation objects when the last reference to the provider object is released, a panic will be raised.
Leave |
System wide error code. |
MNcdPurchaseHistory * | PurchaseHistoryL | ( | ) | const [pure virtual] |
Returns a handle to purchase history. Purchased, downloaded and installed content can be accessed via the purchase history.
Leave |
System wide error code. |
void | RemoveConfigurationL | ( | const TDesC & | aKey | ) | [pure virtual] |
Removes a configuration. This configuration will no longer be sent to content providers.
KErrNotFound |
The configuration is not present. |
KErrAccessDenied |
The configuration has been added by the root-node provider and can not be removed by the user. |
const TDesC & aKey | Key of the configuration to be removed. |
MNcdNode * | RootNodeL | ( | ) | [pure virtual] |
Returns the root node for the provider. Root node provides access to node hierarchy.
Leave |
System wide error code. |
MNcdNode * | SchemeNodeL | ( | const TDesC & | aNameSpaceId, |
const TDesC & | aEntityId, | |||
const TDesC & | aServerUri, | |||
TNcdSchemeNodeType | aType, | |||
TBool | aRemoveOnDisconnect, | |||
TBool | aForceCreate | |||
) | const [pure virtual] |
Retrieves a scheme node identified by a namespace Id, a node metadata Id and a server URI. If the scheme node is created, it will not have any parent. The scheme node is automatically set as favourite node.
Leave |
KErrNotFound if aForceCreate parameter has been set as EFalse and the metadata is not found from the RAM or database cache. |
Leave |
KErrArgument if the metadata already exists but is of different type than the given scheme node type. |
Leave |
System wide error code. |
const TDesC & aNameSpaceId | Namespace of the requested node. Node Ids are unique inside a specific namespace. |
const TDesC & aEntityId | Id of the requested node metadata. |
const TDesC & aServerUri | Server URI of the requested node. |
TNcdSchemeNodeType aType | Type of the scheme node. |
TBool aRemoveOnDisconnect | If ETrue, the scheme node is removed from favourites when the client-server session is closed. |
TBool aForceCreate | ETrue means that, if necessary, a scheme node will always be created. Notice, that an uninitialized node object will be returned for an invalid name space or node metadata id. EFalse means that the scheme node will be returned only if the node itself or the metadata for it already existed in the RAM or database cache. |
void | SetDefaultConnectionMethodL | ( | const TNcdConnectionMethod & | aMethod | ) | [pure virtual] |
Sets the default connection method used for network access.
Not stored persistently. A client needs to set this again every time it creates the provider.
const TNcdConnectionMethod & aMethod | Identifier of the connection method to use by default. |
void | SetObserver | ( | MNcdProviderObserver * | aObserver | ) | [pure virtual] |
Set the provider observer interface.
NCD provider client should always set an observer to get callbacks.
MNcdProviderObserver * aObserver | Observer interface to receive NCD provider callbacks. If NULL, no callbacks will be made. |
void | SetStringLocalizer | ( | MNcdClientLocalizer & | aLocalizer | ) | [pure virtual] |
Sets the client string localizer interface to be used for server-initiated localizable string information.
MNcdClientLocalizer & aLocalizer | Localizer to be used for translating localization keys into user viewable strings. |
MNcdSubscriptionManager * | SubscriptionsL | ( | ) | const [pure virtual] |
Returns a pointer to subscription manager object.
Leave |
System wide error code. |
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.