connectivitymodules/SeCon/clients/syncclient/inc/scondataproviderinfo.h
branchRCL_3
changeset 20 4a793f564d72
parent 18 453dfc402455
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CSconDataproviderInfo header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SCONDATAPROVIDERINFO_H_
       
    20 #define SCONDATAPROVIDERINFO_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <badesca.h>
       
    24 
       
    25 class RWriteStream;
       
    26 class RReadStream;
       
    27 
       
    28 /**
       
    29  * Contains information about DataSync dataprovider.
       
    30  */
       
    31 class CSconDataproviderInfo : public CBase
       
    32 {
       
    33 public:
       
    34     IMPORT_C static CSconDataproviderInfo* NewL();
       
    35     IMPORT_C ~CSconDataproviderInfo();
       
    36     
       
    37     IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
       
    38     IMPORT_C void InternalizeL( RReadStream& aStream );
       
    39     
       
    40     IMPORT_C TUid        ImplementationUid() const;
       
    41     IMPORT_C void        SetImplementationUid( const TUid aUid );
       
    42     IMPORT_C TDesC&      DisplayNameL();
       
    43     IMPORT_C void        SetDisplayNameL( const TDesC& aName );
       
    44     IMPORT_C TDesC&      DefaultStoreL();
       
    45     IMPORT_C void        SetDefaultStoreL( const TDesC& aStore );
       
    46     IMPORT_C CDesCArray* ListStoresL() const;
       
    47     IMPORT_C void        SetStoresL( const CDesCArray& aStores );
       
    48 private:
       
    49 	CSconDataproviderInfo();
       
    50 	void ConstructL();
       
    51 	
       
    52 private:
       
    53     TInt        iUid;
       
    54     HBufC*      iName;
       
    55     HBufC*      iDefaultStore;
       
    56     CDesCArrayFlat* iStores;
       
    57 };
       
    58 
       
    59 typedef RPointerArray<CSconDataproviderInfo> RSconDataProviderInfoArray;
       
    60 
       
    61 #endif /*SCONDATAPROVIDERINFO_H_*/