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