mmsharing/mmshavailability/tsrc/ut_availability/Stubs/inc/musavacallmonitorobserver.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2009 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:  Unit test stub of MMusCallMonitorObserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MUSAVACALLMONITOROBSERVER_H__
       
    20 #define __MUSAVACALLMONITOROBSERVER_H__
       
    21 
       
    22 #include "musavaavailabilityobserver.h"
       
    23 #include "muscallmonitorobserver.h"
       
    24 #include <e32base.h>
       
    25 
       
    26 /**
       
    27  *  Test stub of MMusCallMonitorObserver
       
    28  */
       
    29 class CMusAvaCallMonitorObserverStub :
       
    30 	public CBase,
       
    31 	public MMusCallMonitorObserver                            
       
    32 	{
       
    33 public:
       
    34 
       
    35 	/**
       
    36      * Two-phased constructor
       
    37  	 *
       
    38 	 * @return New CMusAvaCallMonitorObserverStub instance
       
    39 	 */
       
    40 	static CMusAvaCallMonitorObserverStub* NewL();
       
    41 	
       
    42 	/**
       
    43      * Destructor
       
    44      */
       
    45 	~CMusAvaCallMonitorObserverStub();
       
    46 
       
    47 public: // From MMusCallMonitorObserver
       
    48 
       
    49 	void CallConnectedL( const TDesC& aTelNumber, TBool aIsSipUri );
       
    50 
       
    51 	void CallHoldL( const TDesC& aTelNumber, TBool aIsSipUri );
       
    52 
       
    53 	void ConferenceCallL();
       
    54 
       
    55 	void NoActiveCallL();
       
    56 	
       
    57 private:
       
    58 	/**
       
    59      * Constructor
       
    60      */
       
    61 	CMusAvaCallMonitorObserverStub();
       
    62 
       
    63     /**
       
    64      * Perform the second phase construction
       
    65      */
       
    66 	void ConstructL();
       
    67 	
       
    68 	void CopyDescriptorL( const TDesC& aSource );
       
    69 
       
    70 public:
       
    71 
       
    72 	// Most recently received tel number. Owned.
       
    73 	HBufC* iTelNumber;
       
    74 
       
    75 	// Contains the most recent value a of aIsSipUri parameter, from
       
    76 	// CallConnectedL or CallHoldL.
       
    77 	TBool iIsSipUri;
       
    78     };
       
    79 
       
    80 
       
    81 #endif // __MUSAVACALLMONITOROBSERVER_H__