localisation/apparchitecture/tef/T_NotifStep.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @test
       
    21  @internalComponent - Internal Symbian test code  
       
    22 */
       
    23 
       
    24 #if (!defined __T_NOTIF_STEP_H__)
       
    25 #define __T_NOTIF_STEP_H__
       
    26 #include <apgnotif.h>
       
    27 #include "ApparcTestServer.h"
       
    28 #include "testableapalssession.h"
       
    29 
       
    30 //!  A CT_NotifStep test class. 
       
    31 
       
    32 /**  Checks for notifications when application list changes. */
       
    33 
       
    34 class CT_NotifStep :public CTestStep
       
    35 	{
       
    36 public:
       
    37 	CT_NotifStep();
       
    38 	~CT_NotifStep();
       
    39 	virtual TVerdict doTestStepL();
       
    40 	void TestAppNotificationL();
       
    41 	void TestIconFileNotificationL();
       
    42 	
       
    43 private:
       
    44 	void CreateAppL(const TDesC& aAppName);
       
    45 	void DeleteAppL(const TDesC& aAppName);
       
    46 	void ModifyIconFileTimeStamp();
       
    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