multimediacommsengine/mmcesrv/mmceevent/tsrc/ut_event/inc/UT_CMCEEventReferMoIdleState.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    21 #ifndef __UT_CMCEEVENTREFERMOIDLESTATE_H__
       
    22 #define __UT_CMCEEVENTREFERMOIDLESTATE_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include "MMCETestEventObserver.h"
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CMceEventReferMoIdleState;
       
    32 class CMceComEvent;
       
    33 class CMceSipEvent;
       
    34 class CMceSipConnection;
       
    35 class CSIPProfile;
       
    36 
       
    37 
       
    38 //  CLASS DEFINITION
       
    39 /**
       
    40  *
       
    41  * EUnitWizard generated test class. 
       
    42  *
       
    43  */
       
    44 class UT_CMceEventReferMoIdleState
       
    45      : public CEUnitTestSuiteClass,
       
    46        public MMCETestEventObserver
       
    47 
       
    48     {
       
    49     public:     // Constructors and destructors
       
    50 
       
    51         /**
       
    52          * Two phase construction
       
    53          */
       
    54         static UT_CMceEventReferMoIdleState* NewL();
       
    55         static UT_CMceEventReferMoIdleState* NewLC();
       
    56         /**
       
    57          * Destructor
       
    58          */
       
    59         ~UT_CMceEventReferMoIdleState();
       
    60 
       
    61     private:    // Constructors and destructors
       
    62 
       
    63         UT_CMceEventReferMoIdleState();
       
    64         void ConstructL();
       
    65 
       
    66 	public: 	// From observer interface
       
    67 		//From  test event observer
       
    68 	    void IncomingSubscribeL( CDesC8Array* aHeaders,
       
    69                                  HBufC8* aContentType,
       
    70 					             HBufC8* aBody );
       
    71 		
       
    72         void IncomingReferL( HBufC8* aReferTo,
       
    73 					         CDesC8Array* aHeaders,
       
    74                              HBufC8* aContentType,
       
    75 					         HBufC8* aBody );
       
    76 		
       
    77 		void EventStateChangedL( TUint32 aState );
       
    78 		
       
    79 		void NotifyReceivedL( CDesC8Array* aHeaders,
       
    80                     		  HBufC8* aContentType,
       
    81 							  HBufC8* aBody );
       
    82 							
       
    83     private:    // New methods
       
    84 
       
    85          private:    // New methods
       
    86 
       
    87          void SetupL();
       
    88         
       
    89          void SetupEmptyL();
       
    90          
       
    91          void Teardown();
       
    92         
       
    93          void UT_CMceEventReferMoIdleState_HandleLL();
       
    94          
       
    95          void UT_CMceEventReferMoIdleState_HandleL2L();
       
    96         
       
    97          void UT_CMceEventReferMoIdleState_HandleReceiveRequestLL();
       
    98            
       
    99          void UT_CMceEventReferMoIdleState_HandleResponseReceivedLL();
       
   100 
       
   101 
       
   102     private:    // Data
       
   103 
       
   104         CMceEventReferMoIdleState* iState;		
       
   105     	CMceSipEvent* iSIPEvent;
       
   106         CMceComEvent* iEvent;
       
   107         CSIPProfile* iSipProfile;
       
   108 		CMceSipConnection* iConnection;
       
   109 		
       
   110 		EUNIT_DECLARE_TEST_TABLE; 
       
   111 		friend class CMceSipEvent;		
       
   112     };
       
   113 
       
   114 #endif      //  __UT_CMCEEVENTREFERMOIDLESTATE_H__
       
   115 
       
   116 // End of file