uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginepresencesubservice.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     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: t_vimpstenginepresencesubservice.h
       
    15 *
       
    16 */
       
    17 #ifndef _T_VimpstEnginePresenceSubService_H_
       
    18 #define _T_VimpstEnginePresenceSubService_H_
       
    19 
       
    20 //  EXTERNAL INCLUDES
       
    21 #include <CEUnitTestSuiteClass.h>
       
    22 #include "mvimpstengineserviceconnectioneventobserver.h"
       
    23 #include "cvimpstenginesessioncntxtobserver.h" // MVIMPSTEngineSessionCntxtObserver
       
    24 #include "mvimpstenginecchuieventobserver.h"
       
    25 class CustomCleanupResetAndDestroy;
       
    26 class CVIMPSTEnginePresenceSubService;
       
    27 class CVIMPSTEngineServiceTableFetcher;
       
    28 class CVIMPSTEngineCchHandler;
       
    29 class CVIMPSTEngineSessionCntxtObserver;
       
    30 class MVIMPSTEngineSessionCntxtObserver;
       
    31 class MPresenceCacheReader2;
       
    32 class CIMCacheFactory;
       
    33 class MIMCacheUpdater;
       
    34 class CContactIdArray;
       
    35 class CContactDatabase;
       
    36 class MPresentityGroupContentEvent;
       
    37 class CVIMPSTEngineSubServiceStateListener;
       
    38 class CustomCleanupResetAndDestroy;
       
    39 
       
    40 class T_VimpstEnginePresenceSubService : 
       
    41     public CEUnitTestSuiteClass,
       
    42     public MVIMPSTEngineServiceConnectionEventObserver
       
    43     {
       
    44     public:
       
    45 
       
    46         static T_VimpstEnginePresenceSubService* NewLC();
       
    47         ~T_VimpstEnginePresenceSubService();
       
    48 
       
    49     public:     // From observer interface
       
    50            
       
    51         // From MVIMPSTEngineServiceConnectionEventObserver
       
    52         void HandleServceConnectionEventL();
       
    53         
       
    54     private:
       
    55 
       
    56         void ConstructL();
       
    57         void SetupL();
       
    58         void Teardown();
       
    59         
       
    60         // Help methods
       
    61         TInt CreateSpEntryL( TInt aServiceId );
       
    62 
       
    63         // Test methods
       
    64         void T_NewLL();
       
    65         void T_SubServiceStateL();
       
    66         void T_TypeL();
       
    67         void T_Enabled();
       
    68         void T_RetrieveSubscribedListLL();      
       
    69         void T_SubscribePresenceOfSingleContactL();  
       
    70         void T_UnSubscribePresenceOfSingleContactLL();   
       
    71         void T_DoHandlePresentityPresenceEventLL();     
       
    72         void T_DoHandlePresentityGroupContentEventLL();
       
    73         void T_DoHandlePresenceGrantRequestListEventLL();
       
    74         void T_FormatPresenceUriLCL();
       
    75         void T_ResolveServiceStateLL();
       
    76         void T_CchEventOccuredLL();
       
    77         void T_DoHandleCchErrorLL();
       
    78         void T_PublishOwnPresenceLL();
       
    79         void T_ConvertPresenceStatus();
       
    80     //    void T_FetchPresenceFormCacheL();
       
    81         void T_HandlePresenceReadLL();
       
    82     //    void T_SubscribeToPresenceCacheLL();
       
    83         void T_HandlePresenceNotificationLL();
       
    84         void T_UnSubscribeForAuthorizationLL();
       
    85         void T_SubscribeForAuthorizationLL();
       
    86         void T_SendPresenceGrantPresentityLL();
       
    87         void T_HandleSessionContextEventLL();
       
    88         void T_HandleListEventCompleteLL();
       
    89         void T_HandleXimpRequestCompleteLL();
       
    90         void T_StoreToVirtualStoreLL();
       
    91         void T_IsChangeOwnStatusSupportedL() ;
       
    92         void T_IsStatusMsgSupportedL();
       
    93         void T_SubscribePresenceForAllLL();        
       
    94         void T_UnSubscribePresenceForAllLL();
       
    95         void T_ConvertXimpToClientPresenceStatusL();
       
    96       //  void T_RegisterPresenceEventObserverL();
       
    97         void T_UnRegisterPresenceEventObserverL();
       
    98         void T_DoHandlePresenceBlockListEventL();
       
    99         void T_AddToBlockListL();
       
   100         void T_AddToBlockListL_NoUserid();
       
   101         void T_AddToBlockListL_NoDomainNameL();
       
   102         void T_RemoveFromBlockListL();
       
   103         void T_RemoveFromBlockList_NoUseridL();
       
   104         void T_RemoveFromBlockList_NoDomainNameL();
       
   105         void T_RemoveFromBlockListMgr();
       
   106         void T_GetKeyFiledsAndValuesStatusPendingL();
       
   107         void T_GetKeyFiledsAndValuesStatusUnknownL();
       
   108         void T_GetKeyFiledsAndValuesStatusBlockedL();
       
   109 		void T_FetchBlockedListFromServer();
       
   110     private:
       
   111 
       
   112         T_VimpstEnginePresenceSubService() {};
       
   113 
       
   114     private:
       
   115 
       
   116         CVIMPSTEngineCchHandler* iCchHandler;
       
   117         CVIMPSTEngineServiceTableFetcher* iServiceTableFetcher;
       
   118         MVIMPSTEngineCchUiEventObserver* iCchUiEventObserver;
       
   119         CVIMPSTEngineSessionCntxtObserver* iSessionCntxtObserver;
       
   120         CVIMPSTEnginePresenceSubService* iPresenceSubService;
       
   121         
       
   122         TInt iTestServiceId;
       
   123          
       
   124         EUNIT_DECLARE_TEST_TABLE;
       
   125     };
       
   126 
       
   127 #endif      //  _T_CSCPUtility_H_
       
   128 
       
   129 // end of file