phonebookengines/VirtualPhonebook/VPbkCntModel/inc/TNewContactField.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2004-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:  A wrapper for a new contact field.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VPBKCNTMODEL_TNEWCONTACTFIELD_H
       
    20 #define VPBKCNTMODEL_TNEWCONTACTFIELD_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include "TContactField.h"
       
    25 
       
    26 
       
    27 namespace VPbkCntModel {
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 
       
    31 /**
       
    32  * A wrapper for a new contact field.
       
    33  */
       
    34 NONSHARABLE_CLASS( TNewContactField ): public TContactField
       
    35     {
       
    36     public:  // Constructor and destructor
       
    37         /**
       
    38          * Constructor. 
       
    39          */
       
    40         TNewContactField
       
    41             (CContact& aParentContact, CContactItemField* aField);
       
    42 
       
    43         /**
       
    44          * Destructor.
       
    45          */
       
    46         ~TNewContactField();
       
    47 
       
    48     public:  // New functions
       
    49         CContactItemField* NativeField() const
       
    50             {
       
    51             return TContactField::NativeField();
       
    52             }
       
    53 
       
    54         void ReleaseNativeField()
       
    55             {
       
    56             TContactField::ResetNativeField();
       
    57             }
       
    58     };
       
    59 
       
    60 }  // namespace VPbkCntModel
       
    61 
       
    62 #endif  // VPBKCNTMODEL_TNEWCONTACTFIELD_H
       
    63 //End of file
       
    64 
       
    65