mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/inc/muscommonstubs.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2006 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 UT_MUSCOMMONSTUBS_H
       
    20 #define UT_MUSCOMMONSTUBS_H
       
    21 
       
    22 
       
    23 #include "muscallmonitorobserver.h"
       
    24 
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <etelmm.h>
       
    28 
       
    29 /**
       
    30 *
       
    31 * @lib musengine.lib
       
    32 * @since S60 v3.2
       
    33 */        
       
    34 class CMusCommonObserverStub : public CBase, 
       
    35                                public MMusCallMonitorObserver
       
    36     {
       
    37     
       
    38     public:
       
    39 
       
    40         CMusCommonObserverStub();
       
    41             
       
    42         ~CMusCommonObserverStub();
       
    43         
       
    44         // From MMusCallMonitorObserver
       
    45         
       
    46         void CallConnectedL( const TDesC& aTelNumber, TBool aIsSipUri );
       
    47         void CallHoldL( const TDesC& aTelNumber, TBool aIsSipUri );
       
    48         void ConferenceCallL();
       
    49         void NoActiveCallL();
       
    50            
       
    51         
       
    52     public: // Helpers
       
    53     
       
    54         /**
       
    55         * ETrue if all boolean member variables are set to EFalse and all the
       
    56         * pointers are NULL
       
    57         */
       
    58         TBool IsReseted();
       
    59         
       
    60         /**
       
    61         * Resets all the boolean member variable values to EFalse and deletes
       
    62         * and nullifies all the pointer variables.
       
    63         */
       
    64         void Reset();
       
    65 
       
    66     public: // Data  
       
    67         
       
    68         TBool iCallConnectedCalled;
       
    69         TBool iCallHoldCalled;
       
    70         TBool iConferenceCallCalled;
       
    71         TBool iNoActiveCallCalled;
       
    72         TBool iIsSipUri;
       
    73                 
       
    74         HBufC* iTelNumber; 
       
    75         RMobileCall::TMobileCallEvent iCallEvent;
       
    76         
       
    77         
       
    78     };
       
    79 
       
    80 
       
    81 
       
    82     
       
    83 #endif // UT_MUSCOMMONSTUBS_H
       
    84