phonebookui/Phonebook/BCardEng/inc/CBCardExportProperty.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *    BCard export property.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CBCARDEXPORTPROPERTY_H__
       
    21 #define __CBCARDEXPORTPROPERTY_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>        // CBase
       
    25 #include "PbkFields.hrh"    // TPbkVersitStorageType
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TResourceReader;
       
    29 class CPbkFieldInfo;
       
    30 class CPbkFieldsInfo;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Phonebook vCard property.
       
    36  */
       
    37 NONSHARABLE_CLASS(CBCardExportProperty) : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         /**
       
    41          * Creates a new instance of this class and intializes it from 
       
    42          * resources.
       
    43 		 * @param aReader reference to resources
       
    44 		 * @param aFieldsInfo fields info reference
       
    45          */
       
    46         static CBCardExportProperty* NewLC(
       
    47             TResourceReader& aReader, 
       
    48             const CPbkFieldsInfo& aFieldsInfo);
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CBCardExportProperty();
       
    54 
       
    55     public:  // Implementation
       
    56          const TDesC8& Name() const;
       
    57          TPbkVersitStorageType StorageType() const;
       
    58          TInt InfoCount() const;
       
    59          const CPbkFieldInfo* InfoAt(TInt aIndex) const;
       
    60         
       
    61     private:  // Implementation
       
    62         CBCardExportProperty();
       
    63         void ConstructL(TResourceReader& aReader, const CPbkFieldsInfo& fieldsInfo);
       
    64 
       
    65     private:  // Data
       
    66 		/// Own: name
       
    67         HBufC8*                         iName;
       
    68 		/// Own: storage type
       
    69         TPbkVersitStorageType           iStorageType;
       
    70 		/// Own: field info array
       
    71         RPointerArray<CPbkFieldInfo>    iFieldInfos;
       
    72     };
       
    73 
       
    74 
       
    75 #endif // __CBCARDEXPORTPROPERTY_H__
       
    76 
       
    77 // End of File