buildverification/smoketest/Timew/ConsoleAlarmAlertServer/Include/ConsoleAlarmAlertServer.h
branchRCL_3
changeset 20 493058e57c8c
parent 0 9736f095102e
equal deleted inserted replaced
19:4ca382093dae 20:493058e57c8c
       
     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 // TALARMALERTSERVER.H
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __CONSOLEALARMALERTSERVER_H__
       
    19 #define __CONSOLEALARMALERTSERVER_H__
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // User includes
       
    25 
       
    26 // Type definitions
       
    27 
       
    28 // Constants
       
    29 
       
    30 // Enumerations
       
    31 
       
    32 // Classes referenced
       
    33 class CTestAlarmAlertConsole;
       
    34 class CConsoleAlarmAlertSession;
       
    35 
       
    36 //
       
    37 // ----> CConsoleAlarmAlertServer (header)
       
    38 //
       
    39 class CConsoleAlarmAlertServer : public CPolicyServer
       
    40 	{
       
    41 //
       
    42 public:										// STATIC CONSTRUCT / DESTRUCT
       
    43 //
       
    44 	static CConsoleAlarmAlertServer*		NewLC();
       
    45 	~CConsoleAlarmAlertServer();
       
    46 
       
    47 public:
       
    48 	inline void								AddResponseArray(TAny* aResponseArray);
       
    49 	void									SetAttachment(HBufC8* aData);
       
    50 	inline HBufC8*							Attachment() const;
       
    51 	inline TAny*							ResponseArray() const;
       
    52 	inline CConsoleAlarmAlertSession*		WaitingSession() const;
       
    53 	inline void								SetNotifying(TBool aIsNotifying);
       
    54 	inline TBool							IsNotifying() const;
       
    55 //
       
    56 private:									// INTERNAL CONSTRUCT
       
    57 //
       
    58 	CConsoleAlarmAlertServer();
       
    59 	void									ConstructL();
       
    60 
       
    61 //
       
    62 public:										// FROM CServer2
       
    63 //
       
    64 	CSession2*								NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
       
    65 
       
    66 //
       
    67 private:									// FROM CActive
       
    68 //
       
    69 	TInt									RunError(TInt aError);
       
    70 
       
    71 //
       
    72 private:									// MEMBER DATA
       
    73 //
       
    74 	TAny*									iInstructionSet;
       
    75 	HBufC8*									iAttachment;
       
    76 	CConsoleAlarmAlertSession*				iWaitingSession;
       
    77 	TBool									iIsNotifying;
       
    78 	};
       
    79 
       
    80 // inline functions
       
    81 void CConsoleAlarmAlertServer::AddResponseArray(TAny* aResponseArray)		{ iInstructionSet = aResponseArray; }
       
    82 HBufC8* CConsoleAlarmAlertServer::Attachment() const						{ return iAttachment; }
       
    83 TAny* CConsoleAlarmAlertServer::ResponseArray() const						{ return iInstructionSet; }
       
    84 CConsoleAlarmAlertSession* CConsoleAlarmAlertServer::WaitingSession() const	{ return iWaitingSession; }
       
    85 void CConsoleAlarmAlertServer::SetNotifying(TBool aIsNotifying)				{ iIsNotifying = aIsNotifying; }
       
    86 TBool CConsoleAlarmAlertServer::IsNotifying()	const						{ return iIsNotifying; }
       
    87 #endif