mmsharing/mmshengine/tsrc/ut_engine/inc/musengstubs.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     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 
       
    20 #ifndef UT_MUSSTUBS_H
       
    21 #define UT_MUSSTUBS_H
       
    22 
       
    23 
       
    24 #include "musengsessionobserver.h"
       
    25 #include "musengoutsessionobserver.h"
       
    26 #include "musenglivesessionobserver.h"
       
    27 #include "musengclipsessionobserver.h"
       
    28 #include "musengreceivesessionobserver.h"
       
    29 #include "musengsessiondurationtimerobserver.h"
       
    30 #include "musengaudioroutingobserver.h"
       
    31 
       
    32 #include <e32base.h>
       
    33 
       
    34 // DUMMY CLASSES
       
    35 
       
    36 class CSIPTransactionBase
       
    37     {
       
    38     };
       
    39     
       
    40 class CSIPServerTransaction
       
    41     {
       
    42     };
       
    43 
       
    44 class CSIPDialog
       
    45     {
       
    46     };
       
    47 
       
    48 class CSIPClientTransaction
       
    49     {
       
    50     };
       
    51 
       
    52 class CSIPDialogAssocBase
       
    53     {
       
    54     };
       
    55 
       
    56 class CSIPRegistrationBinding
       
    57     {
       
    58     };
       
    59 
       
    60 class CSIPRefresh
       
    61     {
       
    62     };
       
    63  
       
    64 /**
       
    65 * Class to implement all the interfaces provided by MusEngine
       
    66 */        
       
    67 class CMusEngObserverStub : public CBase, 
       
    68                             public MMusEngSessionDurationTimerObserver,
       
    69                             public MMusEngSessionObserver,
       
    70                             public MMusEngOutSessionObserver,
       
    71                             public MMusEngLiveSessionObserver,
       
    72                             public MMusEngClipSessionObserver,
       
    73                             public MMusEngReceiveSessionObserver,
       
    74                             public MMusEngAudioRoutingObserver
       
    75     {
       
    76     
       
    77     public:
       
    78 
       
    79         CMusEngObserverStub();
       
    80             
       
    81         ~CMusEngObserverStub();
       
    82         
       
    83         // From MMusEngSessionDurationTimerObserver
       
    84         
       
    85         void UpdateTimerEvent();
       
    86         
       
    87         // From MMusEngSessionObserver
       
    88         
       
    89         void SessionEstablished();
       
    90         void SessionTerminated(); 
       
    91         void SessionConnectionLost();
       
    92         void SessionFailed();
       
    93         void StreamIdle();
       
    94         void StreamStreaming();
       
    95         void SessionTimeChanged( const TTimeIntervalSeconds& aSeconds );
       
    96         void InactivityTimeout();
       
    97 
       
    98 
       
    99         // From MMusEngOutSessionObserver
       
   100 
       
   101         void SessionRejected();
       
   102     	void SessionBadRequest(); // 400 
       
   103     	void SessionUnauthorized(); // 401 
       
   104     	void SessionPaymentRequired(); // 402
       
   105     	void SessionRecipientNotFound(); // 404 
       
   106     	void SessionProxyAuthenticationRequired(); // 407
       
   107     	void SessionRequestTimeOut(); // 408
       
   108     	void SessionUnsupportedMediaType(); // 415
       
   109     	void SessionBusyHere(); // 486
       
   110     	void SessionRequestCancelled(); // 487 
       
   111     	void SessionTemporarilyNotAvailable(); // 480
       
   112 
       
   113         // From MMusEngLiveSessionObserver
       
   114         
       
   115         void DiskFull();
       
   116         
       
   117         // From MMusEngClipSessionObserver    
       
   118         
       
   119         void EndOfClip(); 
       
   120         
       
   121         void TranscodingNeeded();
       
   122         
       
   123         void TranscodingProgressed( TInt aPercentage );     
       
   124 
       
   125         void TranscodingCompletedInit();
       
   126 
       
   127         void TranscodingCompletedFinalize();
       
   128 
       
   129         void TranscodingFailed();
       
   130 
       
   131 
       
   132         // From MMusEngReceiveSessionObserver    
       
   133         
       
   134         void IncomingSessionPreNotification();
       
   135 
       
   136         void IncomingSession( const TDesC& aOriginator, 
       
   137                               const TDesC& aOriginatorIdentity );
       
   138         
       
   139         void StreamBuffering();
       
   140     
       
   141     
       
   142         // From MMusEngAudioRoutingObserver
       
   143         
       
   144         void AudioRoutingChanged( TBool aShowNote );
       
   145         
       
   146         TBool AudioRouteChangeAllowed() const;
       
   147         
       
   148     
       
   149     public: // Helper
       
   150     
       
   151         /**
       
   152         * ETrue if all boolean member variables are set to EFalse and all the
       
   153         * pointers are NULL
       
   154         */
       
   155         TBool IsReseted();
       
   156         
       
   157         /**
       
   158         * Resets all the boolean member variable values to EFalse and deletes
       
   159         * and nullifies all the pointer variables.
       
   160         */
       
   161         void Reset();
       
   162 
       
   163     public: // Data  
       
   164         
       
   165         TBool iUpdateTimerEventCalled;
       
   166         
       
   167         TBool iSessionEstablishedCalled;
       
   168         TBool iSessionTerminatedCalled;
       
   169         TBool iSessionConnectionLostCalled;
       
   170         TBool iSessionFailedCalled;
       
   171         TBool iStreamIdleCalled;
       
   172         TBool iStreamStreamingCalled;
       
   173         TBool iSessionTimeChangedCalled;
       
   174         TBool iInactivityTimeoutCalled;
       
   175         
       
   176         TBool iSessionRejectedCalled;
       
   177     	TBool iSessionBadRequestCalled;
       
   178     	TBool iSessionUnauthorizedCalled;
       
   179     	TBool iSessionPaymentRequiredCalled;
       
   180     	TBool iSessionRecipientNotFoundCalled;
       
   181     	TBool iSessionProxyAuthenticationRequiredCalled;
       
   182     	TBool iSessionRequestTimeOutCalled;
       
   183     	TBool iSessionUnsupportedMediaTypeCalled;
       
   184     	TBool iSessionBusyHereCalled;
       
   185     	TBool iSessionRequestCancelledCalled;
       
   186     	TBool iDiskFullCalled;
       
   187     	
       
   188     	TBool iEndOfClipCalled;
       
   189     	TBool iTranscodingNeededCalled;
       
   190     	TBool iTranscodingCompletedInitCalled;
       
   191     	TBool iTranscodingCompletedFinalizeCalled;
       
   192     	TBool iTranscodingFailedCalled;
       
   193     	
       
   194     	TBool iIncomingSessionPreNotificationCalled;
       
   195         TBool iIncomingSessionCalled;
       
   196         TBool iStreamBufferingCalled;
       
   197         
       
   198         TBool iAudioRoutingChangedCalled;
       
   199         TBool iShowNote;
       
   200         TBool iAudioRouteChangeAllowed;
       
   201         
       
   202         TInt iTranscodingProgressedPercentage;
       
   203         TBool iSessionTemporarilyNotAvailable;
       
   204         HBufC* iIncomingSessionOriginator;
       
   205         
       
   206     };
       
   207 
       
   208 
       
   209 // Dummy implementations
       
   210 inline void CActiveScheduler::Start()
       
   211     {
       
   212     }
       
   213     
       
   214 inline void CActiveScheduler::Stop()
       
   215     {
       
   216     }
       
   217 
       
   218 
       
   219 #endif // UT_MUSSTUBS_H
       
   220