phonebookengines/VirtualPhonebook/VPbkVCardEng/inc/TVPbkVCardDataConverter.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Converting data according data's vcard uid.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TVPBKVCARDDATACONVERTER_H
       
    20 #define TVPBKVCARDDATACONVERTER_H    
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32cmn.h> // RPointerArray
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CVPbkVCardContactFieldData;
       
    27 class TVersitDateTime;
       
    28 class CParserProperty;
       
    29 class MVPbkFieldType;
       
    30 class CBufSeg;
       
    31 class MVPbkContactAttribute;
       
    32                         
       
    33 // CLASS DECLARATIONS
       
    34 
       
    35 /**
       
    36  * Class creates concrete CVPbkVCardContactFieldData classes according 
       
    37  * vcard uids.
       
    38  */             
       
    39 class TVPbkVCardDataConverter
       
    40     {
       
    41     public:
       
    42         TVPbkVCardDataConverter();
       
    43     
       
    44     public:
       
    45         CVPbkVCardContactFieldData* CreateDataLC
       
    46             ( CParserProperty& aProperty, 
       
    47               RPointerArray<const MVPbkFieldType>& aTypes,
       
    48               MVPbkContactAttribute* aAttribute,              
       
    49               TInt aCursor );
       
    50         const TDesC& GetDesCData( CVPbkVCardContactFieldData& aData );
       
    51         const TDesC8& GetBinaryData( CVPbkVCardContactFieldData& aData );
       
    52         const TVersitDateTime* GetDateTimeData( CVPbkVCardContactFieldData& aData );
       
    53         HBufC8* GetHBufCOfCBufSegL( CBufSeg* aBufSeg ) const;
       
    54     };
       
    55     
       
    56 #endif // TVPBKVCARDDATACONVERTER_H
       
    57 
       
    58 // End of file