phonebookui/Phonebook2/inc/CPbk2ContactEditorReadonlyField.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 contact editor dialog field.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPBK2CONTACTEDITORREADONLYFIELD_H
       
    19 #define CPBK2CONTACTEDITORREADONLYFIELD_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <eikedwin.h>
       
    23 #include <touchfeedback.h>
       
    24 #include <touchlogicalfeedback.h>
       
    25 #include <MPbk2ContactEditorField.h>
       
    26 #include "MPbk2ContactEditorUiBuilderExtension.h"
       
    27 #include "MPbk2ContactEditorUIField.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33  *  Custom-editor field 
       
    34   */
       
    35 class CPbk2ContactEditorReadonlyField : public CEikEdwin
       
    36     {
       
    37 public:  // Constructors and destructor
       
    38     CPbk2ContactEditorReadonlyField( ); 
       
    39 
       
    40     virtual ~CPbk2ContactEditorReadonlyField();
       
    41 
       
    42 public:   
       
    43 	IMPORT_C void InitializeL(MPbk2ContactEditorUIField* aPbk2ContactEditorField );
       
    44 	void InitializeL(MPbk2ContactEditorField* aPbk2ContactEditorField );
       
    45 	
       
    46 
       
    47 public: // from CEikEdwin
       
    48 
       
    49     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    50                                 TEventCode aType);
       
    51 
       
    52     IMPORT_C void SetTextL(const TDesC* aData);
       
    53     
       
    54     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    55 
       
    56 private:    // Data
       
    57     // Ref to ContactEditorField
       
    58     MPbk2ContactEditorField* iPbk2ContactEditorField;
       
    59     MPbk2ContactEditorUIField* iPbk2ContactEditorUIField;
       
    60     // Ref to MTouchFeedback    
       
    61     MTouchFeedback* iTouchFeedbackRef; 
       
    62     TBool iButton1UpReceived;
       
    63     };
       
    64 
       
    65 #endif      // CPBK2CONTACTEDITORREADONLYFIELD_H
       
    66 
       
    67 
       
    68 // End of File