buildverification/smoketest/Timew/ConsoleAlarmAlertServer/Include/ConsoleAlarmAlertConsole.h
branchRCL_3
changeset 19 4ca382093dae
parent 5 6beaa9cf4752
child 20 493058e57c8c
equal deleted inserted replaced
5:6beaa9cf4752 19:4ca382093dae
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CONSOLEALARMALERTCONSOLE_H__
       
    17 #define __CONSOLEALARMALERTCONSOLE_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32base.h>
       
    21 
       
    22 // User includes
       
    23 #include "asaltdefs.h"
       
    24 
       
    25 // Type definitions
       
    26 
       
    27 // Constants
       
    28 
       
    29 // Classes referenced
       
    30 class CConsoleAlarmAlertSession;
       
    31 
       
    32 // Enumerations
       
    33 
       
    34 
       
    35 //
       
    36 // ----> CConsoleAlarmAlertConsole (header)
       
    37 //
       
    38 class CConsoleAlarmAlertConsole : public CActive
       
    39 	{
       
    40 //
       
    41 public:										// CONSTRUCT / DESTRUCT
       
    42 //
       
    43 	CConsoleAlarmAlertConsole(CConsoleAlarmAlertSession& aSession);
       
    44 	~CConsoleAlarmAlertConsole();
       
    45 
       
    46 //
       
    47 public:										// ACCESS
       
    48 //
       
    49 	void									GetKey();
       
    50 	void									CancelKey();
       
    51 	void									DecCounter();
       
    52 	void									UpdateDisplay();
       
    53 	TInt									GetTimeInterval() const;
       
    54 	void									SetVisibility(TInt aVis);
       
    55 	void									SetAlertState(TInt aFlags);
       
    56 
       
    57 //
       
    58 protected:									// FROM CActive
       
    59 //
       
    60 	void									RunL();
       
    61 	void									DoCancel();
       
    62 
       
    63 //
       
    64 protected:									// INTERNAL METHODS
       
    65 //
       
    66 	void									Hide();
       
    67 	void									CreateWin();
       
    68 	void									DoDeferTime(TASAltAlertServerResponse aResponse);
       
    69 
       
    70 	static TBool							CountDownCallBack(TAny* aSelf);
       
    71 
       
    72 //
       
    73 private:									// MEMBER DATA
       
    74 //
       
    75 
       
    76 	TInt									iAlertState;
       
    77 
       
    78 	TInt									iTimeInterval;
       
    79 
       
    80 	CPeriodic*								iCountDown;
       
    81 
       
    82 	CConsoleBase*							iWin;
       
    83 
       
    84 	CConsoleAlarmAlertSession&				iSession;
       
    85 
       
    86 	friend class							CConsoleAlarmAlertSession;
       
    87 
       
    88 	TInt									iInstructionIndex;
       
    89 	};
       
    90 
       
    91 #endif