commonappservices/alarmserver/AlarmAlert/Include/ASAltServerDeathObserver.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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 __ASALTSERVERDEATHOBSERVER_H__
       
    17 #define __ASALTSERVERDEATHOBSERVER_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32base.h>
       
    21 
       
    22 // User includes
       
    23 
       
    24 // Type definitions
       
    25 
       
    26 // Constants
       
    27 
       
    28 // Enumerations
       
    29 
       
    30 // Classes referenced
       
    31 class RASAltClientSession;
       
    32 
       
    33 
       
    34 //
       
    35 // ----> CASAltServerDeathObserver (header)
       
    36 //
       
    37 
       
    38 class CASAltServerDeathObserver : public CActive
       
    39 	{
       
    40 //
       
    41 public:										// STATIC CONSTRUCT / DESTRUCT
       
    42 //
       
    43 	static CASAltServerDeathObserver*		NewL(RASAltClientSession& aSession);
       
    44 	~CASAltServerDeathObserver();
       
    45 
       
    46 //
       
    47 private:									// INTERNAL CONSTRUCT
       
    48 //
       
    49 	CASAltServerDeathObserver(RASAltClientSession& aSession);
       
    50 	void									ConstructL();
       
    51 
       
    52 //
       
    53 private:									// FROM CActive
       
    54 //
       
    55 
       
    56 	void									RunL();
       
    57 
       
    58 	void									DoCancel();
       
    59 
       
    60 //
       
    61 private:									// INTERNAL
       
    62 //
       
    63 
       
    64 	inline RASAltClientSession&				Session() { return iSession; }
       
    65 
       
    66 //
       
    67 private:									// MEMBER DATA
       
    68 //
       
    69 
       
    70 	RASAltClientSession&					iSession;
       
    71 	};
       
    72 
       
    73 #endif