appfw/apparchitecture/tef/T_NotifStep.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2005-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_NOTIF_STEP_H__)
       
    23 #define __T_NOTIF_STEP_H__
       
    24 #include <apgnotif.h>
       
    25 #include "apparctestserver.h"
       
    26 #include "testableapalssession.h"
       
    27 
       
    28 //!  A CT_NotifStep test class. 
       
    29 
       
    30 /**  Checks for notifications when application list changes. */
       
    31 
       
    32 class CT_NotifStep :public CTestStep
       
    33 	{
       
    34 public:
       
    35 	CT_NotifStep();
       
    36 	~CT_NotifStep();
       
    37 	virtual TVerdict doTestStepL();
       
    38 	void TestAppNotificationL();
       
    39 	void TestIconFileNotificationL();
       
    40 	void TestForceRegistrationNotificationL();
       
    41 	friend void TestForceRegistrationL(CT_NotifStep *aNotifStep);
       
    42 private:
       
    43 	TInt DeleteFileL(RSmlTestUtils &aFs, const TDesC &aFileName);
       
    44 	void CreateAppL(const TDesC& aAppName);
       
    45 	void DeleteAppL(const TDesC& aAppName);
       
    46 	void ModifyIconFileTimeStampL();
       
    47 	
       
    48 private:
       
    49 	CActiveScheduler* iScheduler;
       
    50 	RFs	iFs;
       
    51  	RApaLsSession iSession;
       
    52 	RSmlTestUtils iUtils;
       
    53 	};
       
    54 
       
    55 class CTestObserver : public CBase, public MApaAppListServObserver
       
    56 	{
       
    57 public: // from MApaAppListServObserver
       
    58 	void HandleAppListEvent(TInt aEvent);
       
    59 	
       
    60 public:
       
    61 	TInt iNotified;
       
    62 	CApaAppListNotifier* iNotifier;
       
    63 	};
       
    64 
       
    65 _LIT(KT_NotifStep,"T_Notif");
       
    66 
       
    67 #endif
       
    68