eventsui/eventshandlerui/eventsnotifier/evtinfonote/inc/evtinfonoteimpl.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Info Note implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_EVTINFONOTEIMPL_H
       
    20 #define C_EVTINFONOTEIMPL_H
       
    21 
       
    22 // System Includes
       
    23 #include <e32base.h>
       
    24 #include <AknQueryDialog.h>
       
    25 
       
    26 // User Includes
       
    27 #include "evttoneplayer.h"
       
    28 #include "evtinfonoteconsts.hrh"
       
    29 
       
    30 // Forward Declarations
       
    31 class CEikonEnv;
       
    32 class CEvtInfoNoteInputParam;
       
    33 class CEvtTonePlayer;
       
    34 class CEvtKeyLockHandler;
       
    35 
       
    36 /**
       
    37  * Info Note implementation for Event UI Triggers
       
    38  *
       
    39  * This class provides the notifier pop-up implementation.
       
    40  *
       
    41  * @since S60 v9.1
       
    42  */
       
    43 NONSHARABLE_CLASS( CEvtInfoNoteImpl ): public CAknQueryDialog, 
       
    44 									   public MEvtTonePlayObserver
       
    45     {
       
    46 public:
       
    47     /**
       
    48      * Static two phase constructor
       
    49      */
       
    50     static CEvtInfoNoteImpl* NewLC( CEvtInfoNoteInputParam*      aInputParam );
       
    51     
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     virtual ~CEvtInfoNoteImpl();
       
    56     
       
    57 public:
       
    58     // Inherited from CAknQueryDialog    
       
    59     TInt RunLD();
       
    60     
       
    61     // Inherited from MEvtTonePlayObserver 
       
    62     void TonePlayCompleteL( TBool aTimeout );
       
    63     
       
    64     //     
       
    65     TInt RunLD( TEvtInfoNoteCmds* aKey );
       
    66                                        
       
    67 protected:
       
    68     // Inherited from CAknQueryDialog
       
    69     TBool OkToExitL( TInt aButtonId );
       
    70     
       
    71     void PostLayoutDynInitL();        
       
    72 
       
    73     /**
       
    74      * Handles pointer events
       
    75     */
       
    76     void HandlePointerEventL(const TPointerEvent& aPointerEvent);                                   
       
    77 
       
    78 private:
       
    79     /**
       
    80      * Get Msk Option from Popup
       
    81      */
       
    82 	TInt GetMskOptionL();
       
    83     
       
    84     /**
       
    85      * Default Constructor Implementation
       
    86      */
       
    87     CEvtInfoNoteImpl( CEvtInfoNoteInputParam*         aInputParam );
       
    88     
       
    89     /**
       
    90      * Called when timer is expired
       
    91      */
       
    92     static TInt TickL( TAny* aObject );
       
    93     
       
    94     /**
       
    95      * Second phase constructor
       
    96      */
       
    97     void ConstructLC();
       
    98     
       
    99     /**
       
   100      * Loads the Image for the control
       
   101      */
       
   102     void LoadImageL();
       
   103         
       
   104 private:
       
   105 
       
   106     /**
       
   107      * Input parameters for the dialog
       
   108      * Owns
       
   109      */
       
   110     CEvtInfoNoteInputParam*         iInputParam;
       
   111     
       
   112     /**
       
   113      * Tone player
       
   114      * Owns
       
   115      */
       
   116     CEvtTonePlayer*                 iTonePlayer;
       
   117     
       
   118     /**
       
   119      * Key Lock Handler
       
   120      * Owns
       
   121      */
       
   122     CEvtKeyLockHandler* 			iKeyLockHandler;
       
   123     
       
   124     /**
       
   125      * Dialog Exit Flag
       
   126      */
       
   127     TEvtInfoNoteCmds* iExitFlag;
       
   128     
       
   129     /**
       
   130      * Periodic Timer active object.
       
   131      * Own:
       
   132      */
       
   133     CPeriodic* iTimer; 
       
   134     
       
   135     };
       
   136 
       
   137 #endif // C_EVTINFONOTEIMPL_H