appfw/apparchitecture/tef/T_ServiceRegistryStep.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #if (!defined __T_SERVICEREGISTRY_STEP_H__)
       
    23 #define __T_SERVICEREGISTRY_STEP_H__
       
    24 
       
    25 #include "appfwk_test_appui.h"
       
    26 #include <apgnotif.h>
       
    27 #include "appfwk_test_utils.h"
       
    28 
       
    29 class RApaLsSession;
       
    30 
       
    31 _LIT(KT_ServiceRegistryStep,"T_ServiceRegistry");
       
    32 
       
    33 class CT_ServiceRegistryTestStep : public CTestStep
       
    34 	{
       
    35 public:
       
    36 	CT_ServiceRegistryTestStep();
       
    37 	~CT_ServiceRegistryTestStep();
       
    38 	virtual TVerdict doTestStepPreambleL();
       
    39 	virtual TVerdict doTestStepPostambleL();
       
    40 	virtual TVerdict doTestStepL();
       
    41 	
       
    42 private:
       
    43 	TInt RunTestCasesL();
       
    44 	void TestAssociation1L();
       
    45 	void TestAppForDataTypeAndServiceL(RApaLsSession& aLs);
       
    46     void TestUpdateOfServiceRegistryOnAppUninstallationL(RApaLsSession& aLs);   
       
    47     void TestServiceRegistryOnAppUpgradeL(RApaLsSession& aLs);
       
    48     TInt DeleteFileL(RSmlTestUtils &aFs, const TDesC &aFileName);
       
    49     void WaitForAppListUpdateL();
       
    50     CActiveScheduler* iScheduler;    
       
    51     };
       
    52     
       
    53 class CTestApplistChangeObserver : public CBase, public MApaAppListServObserver
       
    54     {
       
    55 public: // from MApaAppListServObserver
       
    56     void HandleAppListEvent(TInt aEvent);
       
    57 public:
       
    58     CApaAppListNotifier* iNotifier;
       
    59     };	
       
    60 #endif
       
    61