qtinternetradio/irqsystemeventhandler/inc/iralarmobserver.h
changeset 3 ee64f059b8e1
child 5 0930554dc389
equal deleted inserted replaced
2:2e1adbfc62af 3:ee64f059b8e1
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IRALARMOBSERVER_H
       
    20 #define IRALARMOBSERVER_H
       
    21 
       
    22 #include <asclisession.h> 
       
    23 
       
    24 class MIRAlarmObserverInterface;
       
    25 
       
    26 class CIRAlarmObserver : public CActive
       
    27 {
       
    28 								 
       
    29 public:
       
    30     
       
    31 	static CIRAlarmObserver* NewL(MIRAlarmObserverInterface* aObserver);
       
    32 	static CIRAlarmObserver* NewLC(MIRAlarmObserverInterface* aObserver);
       
    33 	~CIRAlarmObserver();
       
    34  
       
    35 	void Start();
       
    36 
       
    37 protected:
       
    38 	
       
    39  	void RunL();
       
    40 
       
    41 	void DoCancel();
       
    42 	
       
    43 	TInt RunError(TInt aError);
       
    44 
       
    45 private:	
       
    46  
       
    47 	void ConstructL(MIRAlarmObserverInterface* aObserver);
       
    48 	
       
    49 	CIRAlarmObserver();
       
    50 							 
       
    51 private:
       
    52 	
       
    53 	//The client-side interface to the Symbian OS alarm server
       
    54 	RASCliSession iAlarmSession;
       
    55 	
       
    56 	//Alarm id
       
    57 	TAlarmId iAlarmId;
       
    58 	
       
    59 	//instance of an event observer
       
    60 	MIRAlarmObserverInterface* iObserver;	 
       
    61 };
       
    62 	
       
    63 #endif	//IRALARMOBSERVER_H
       
    64