CSmlDataProvider Class Reference

#include <SmlDataProvider.h>

Link against: smldataprovider.lib

class CSmlDataProvider : public CBase

Inherits from

  • CSmlDataProvider
    Public Member Functions
    virtual ~CSmlDataProvider()
    IMPORT_C voidCheckServerFiltersL(RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo &)
    IMPORT_C voidCheckSupportedServerFiltersL(const CSmlDataStoreFormat &, RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo &)
    IMPORT_C const TDesC &DefaultStoreL()
    IMPORT_C voidGenerateFieldFilterQueryL(const RPointerArray< CSyncMLFilter > &, TDes &, RPointerArray< CSmlDataProperty > &, TDesC &)
    IMPORT_C HBufC *GenerateRecordFilterQueryLC(const RPointerArray< CSyncMLFilter > &, TSyncMLFilterMatchType, TDes &, TSyncMLFilterType &, TDesC &)
    IMPORT_C TSmlDataProviderIdIdentifier()
    IMPORT_C CDesCArray *ListStoresLC()
    IMPORT_C CSmlDataProvider *NewL(TSmlDataProviderId)
    IMPORT_C CSmlDataStore *NewStoreInstanceLC()
    IMPORT_C voidOnFrameworkEvent(TSmlFrameworkEvent, TInt, TInt)
    IMPORT_C const CSmlDataStoreFormat &StoreFormatL()
    IMPORT_C const RPointerArray< CSyncMLFilter > &SupportedServerFiltersL()
    IMPORT_C TBoolSupportsOperation(TUid)
    Protected Member Functions
    pure virtual voidDoCheckServerFiltersL(RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo &)
    pure virtual voidDoCheckSupportedServerFiltersL(const CSmlDataStoreFormat &, RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo &)
    pure virtual const TDesC &DoDefaultStoreL()
    pure virtual voidDoGenerateFieldFilterQueryL(const RPointerArray< CSyncMLFilter > &, TDes &, RPointerArray< CSmlDataProperty > &, TDesC &)
    pure virtual HBufC *DoGenerateRecordFilterQueryLC(const RPointerArray< CSyncMLFilter > &, TSyncMLFilterMatchType, TDes &, TSyncMLFilterType &, TDesC &)
    pure virtual CDesCArray *DoListStoresLC()
    pure virtual CSmlDataStore *DoNewStoreInstanceLC()
    pure virtual voidDoOnFrameworkEvent(TSmlFrameworkEvent, TInt, TInt)
    pure virtual const CSmlDataStoreFormat &DoStoreFormatL()
    pure virtual const RPointerArray< CSyncMLFilter > &DoSupportedServerFiltersL()
    pure virtual TBool DoSupportsOperation(TUid)
    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()

    Detailed Description

    ECom Data Provider interface.

    Constructor & Destructor Documentation

    ~CSmlDataProvider ( )

    IMPORT_C~CSmlDataProvider()[virtual]

    Member Function Documentation

    CheckServerFiltersL ( RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo & )

    IMPORT_C voidCheckServerFiltersL(RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterChangeInfo &aChangeInfo
    )

    This method updates dynamic filters up-to-date.

    ParameterDescription
    aFiltersThe array that includes filters
    aChangeInfoThe change information about changes that data provider did

    CheckSupportedServerFiltersL ( const CSmlDataStoreFormat &, RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo & )

    IMPORT_C voidCheckSupportedServerFiltersL(const CSmlDataStoreFormat &aServerDataStoreFormat,
    RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterChangeInfo &aChangeInfo
    )

    This method checks what filters are supported by server.

    ParameterDescription
    aServerDataStoreFormatThe store format of server
    aFiltersThe array that includes filters
    aChangeInfoThe change information about changes that data provider did

    DefaultStoreL ( )

    IMPORT_C const TDesC &DefaultStoreL()

    DoCheckServerFiltersL ( RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo & )

    voidDoCheckServerFiltersL(RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterChangeInfo &aChangeInfo
    )[protected, pure virtual]

    DoCheckSupportedServerFiltersL ( const CSmlDataStoreFormat &, RPointerArray< CSyncMLFilter > &, TSyncMLFilterChangeInfo & )

    voidDoCheckSupportedServerFiltersL(const CSmlDataStoreFormat &aServerDataStoreFormat,
    RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterChangeInfo &aChangeInfo
    )[protected, pure virtual]

    DoDefaultStoreL ( )

    const TDesC &DoDefaultStoreL()[protected, pure virtual]

    DoGenerateFieldFilterQueryL ( const RPointerArray< CSyncMLFilter > &, TDes &, RPointerArray< CSmlDataProperty > &, TDesC & )

    voidDoGenerateFieldFilterQueryL(const RPointerArray< CSyncMLFilter > &aFilters,
    TDes &aFilterMimeType,
    RPointerArray< CSmlDataProperty > &aProperties,
    TDesC &aStoreName
    )[protected, pure virtual]

    DoGenerateRecordFilterQueryLC ( const RPointerArray< CSyncMLFilter > &, TSyncMLFilterMatchType, TDes &, TSyncMLFilterType &, TDesC & )

    HBufC *DoGenerateRecordFilterQueryLC(const RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterMatchTypeaMatch,
    TDes &aFilterMimeType,
    TSyncMLFilterType &aFilterType,
    TDesC &aStoreName
    )[protected, pure virtual]

    DoListStoresLC ( )

    CDesCArray *DoListStoresLC()[protected, pure virtual]

    DoNewStoreInstanceLC ( )

    CSmlDataStore *DoNewStoreInstanceLC()[protected, pure virtual]

    DoOnFrameworkEvent ( TSmlFrameworkEvent, TInt, TInt )

    voidDoOnFrameworkEvent(TSmlFrameworkEvent,
    TIntaParam1,
    TIntaParam2
    )[protected, pure virtual]

    DoStoreFormatL ( )

    const CSmlDataStoreFormat &DoStoreFormatL()[protected, pure virtual]

    DoSupportedServerFiltersL ( )

    const RPointerArray< CSyncMLFilter > &DoSupportedServerFiltersL()[protected, pure virtual]

    DoSupportsOperation ( TUid )

    TBool DoSupportsOperation(TUidaOpId)const [protected, pure virtual]

    GenerateFieldFilterQueryL ( const RPointerArray< CSyncMLFilter > &, TDes &, RPointerArray< CSmlDataProperty > &, TDesC & )

    IMPORT_C voidGenerateFieldFilterQueryL(const RPointerArray< CSyncMLFilter > &aFilters,
    TDes &aFilterMimeType,
    RPointerArray< CSmlDataProperty > &aProperties,
    TDesC &aStoreName
    )

    This method generates a field filter query to be sent to the SyncML server for the provided filters. NOTE: this method isn't finalised - still thinking of a way to make it SyncML DS 1.2 independent

    ParameterDescription
    aFiltersThe filters to be used for the query generation
    aFilterMimeTypeThe mime type of the returned filter query
    aPropertiesThe field filter query to be sent to the SyncML server - empty if no field filter involved for this specific filter
    aStoreNameThe name of used store

    GenerateRecordFilterQueryLC ( const RPointerArray< CSyncMLFilter > &, TSyncMLFilterMatchType, TDes &, TSyncMLFilterType &, TDesC & )

    IMPORT_C HBufC *GenerateRecordFilterQueryLC(const RPointerArray< CSyncMLFilter > &aFilters,
    TSyncMLFilterMatchTypeaMatch,
    TDes &aFilterMimeType,
    TSyncMLFilterType &aFilterType,
    TDesC &aStoreName
    )

    This method generates a record filter query to be sent to the SyncML server for the provided filters.

    ParameterDescription
    aFiltersThe filters to be used for the query generation
    aMatchThe filter match type to be used
    aFilterMimeTypeThe mime type of the returned filter query
    aStoreNameThe name of used store

    Returns: The record filter query to be sent to the SyncML server - empty if no record filter involved for this specific filter

    Identifier ( )

    IMPORT_C TSmlDataProviderIdIdentifier()const

    ListStoresLC ( )

    IMPORT_C CDesCArray *ListStoresLC()

    NewL ( TSmlDataProviderId )

    IMPORT_C CSmlDataProvider *NewL(TSmlDataProviderIdaId)[static]

    NewStoreInstanceLC ( )

    IMPORT_C CSmlDataStore *NewStoreInstanceLC()

    OnFrameworkEvent ( TSmlFrameworkEvent, TInt, TInt )

    IMPORT_C voidOnFrameworkEvent(TSmlFrameworkEvent,
    TIntaParam1,
    TIntaParam2
    )

    StoreFormatL ( )

    IMPORT_C const CSmlDataStoreFormat &StoreFormatL()

    SupportedServerFiltersL ( )

    IMPORT_C const RPointerArray< CSyncMLFilter > &SupportedServerFiltersL()

    This method returns the set of filters that can be used to send to the SyncML server.

    SupportsOperation ( TUid )

    IMPORT_C TBoolSupportsOperation(TUidaOpId)const