phoneapp/phoneuiview/inc/cphonenote.h
changeset 0 5f000ab63145
child 5 2a26698d78ba
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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:  PhoneUI Note
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 */
       
    20 
       
    21 #ifndef CPHONENOTE_H
       
    22 #define CPHONENOTE_H
       
    23 
       
    24 
       
    25 //  INCLUDES
       
    26 #include "tphonecmdparamnote.h"
       
    27 #include <aknnotedialog.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CPhoneNote : public CAknNoteDialog
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34 
       
    35         /**
       
    36          * Constructor.
       
    37          * 
       
    38          * @param    aSelfPtr            Pointer to self. 
       
    39          *                               This pointer is set to NULL when the note is destroyed by the framework.
       
    40          * @param    aCommandObserver    Observer to receive command events from the note.
       
    41          */
       
    42         CPhoneNote( CEikDialog** aSelfPtr, MEikCommandObserver& aCommandObserver );  
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CPhoneNote();  
       
    48 
       
    49         /**
       
    50         * Sets the type of the note.
       
    51         */
       
    52         void SetNoteType( TPhoneNoteType aNoteType );
       
    53 
       
    54         /**
       
    55         * Gets the type of the note.
       
    56         */
       
    57         TPhoneNoteType NoteType();
       
    58         
       
    59         /**
       
    60         * Updates softkeys to note
       
    61         * @param    aResourceId     Resource id
       
    62         */
       
    63         void UpdateSoftkeysL( TInt aResourceId );
       
    64         
       
    65     protected:
       
    66 
       
    67         TKeyResponse OfferKeyEventL( 
       
    68             const TKeyEvent& aKeyEvent,
       
    69             TEventCode aType );
       
    70 
       
    71         TBool OkToExitL( TInt aCommand );
       
    72 
       
    73         void HandlePointerEventL( 
       
    74             const TPointerEvent& aPointerEvent );
       
    75         
       
    76     protected:  // Data
       
    77 
       
    78         MEikCommandObserver& iCommandObserver;
       
    79         
       
    80         //The type of note. Not necessarily set.
       
    81         //Used in security view
       
    82         TPhoneNoteType iNoteType;
       
    83     };
       
    84 
       
    85 #endif // CPHONENOTE_H   
       
    86             
       
    87 // End of File