phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerCallState.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:15:03 +0100
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Declaration of CPhoneHandlerCallState class.
*
*
*/


#ifndef CPHONEHANDLERCALLSTATE_H
#define CPHONEHANDLERCALLSTATE_H

// INCLUDES
#include <e32base.h>
#include <e32property.h>
#include <ccallinformation.h>
#include <mcallinformationobserver.h>

// CONSTANTS

// MACROS

// DATA TYPES

// FUNCTION PROTOTYPES

// FORWARD DECLARATIONS
class CPhoneHandlerControl;

// CLASS DECLARATION

/**
*  Active object that listens to S60 call states.
*
*  @lib RemConAsy
*  @since S60 3.1
*/
NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CBase, public MCallInformationObserver
	{
	public:	// Constructors and destructor
	
		/**
        * Two-phased constructor.
        */
		static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl );
	
		/**
        * Destructor.
        */
		~CPhoneHandlerCallState();
	
	private:
		
		/**
        * C++ default constructor.
        */
		CPhoneHandlerCallState( CPhoneHandlerControl& aControl );
	
		/**
        * By default Symbian 2nd phase constructor is private.
        */
		void ConstructL();

		/**
		* Signals that there are changes in ongoing calls.
		*    
		* @return void
		*/
		void CallInformationChangedL();
     	
		// From MCallInformationObserver
		
		/**
		* Signals that there are changes in ongoing calls.
		*    
		* @return void
		*/
		void CallInformationChanged();
	
	public:     // Data
    
    protected:  // Data
    
    private:    // Data
    
    	CCallInformation* iInfo;

		// reference to control
        CPhoneHandlerControl& iControl;
		
	public:     // Friend classes

    protected:  // Friend classes

    private:    // Friend classes
	};

#endif // CPHONEHANDLERCALLSTATE_H

// End of File