|
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 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_DRIVENOTIFICATION_H__) |
|
25 #define __T_DRIVENOTIFICATION_H__ |
|
26 #include "ApparcTestServer.h" |
|
27 #include <apgnotif.h> |
|
28 #include <apgcli.h> |
|
29 #include <eikenv.h> |
|
30 |
|
31 /** Checks for notifications when application list changes. */ |
|
32 |
|
33 class CT_DriveNotificationStep :public CTestStep |
|
34 { |
|
35 public: |
|
36 CT_DriveNotificationStep(); |
|
37 ~CT_DriveNotificationStep(); |
|
38 virtual TVerdict doTestStepL(); |
|
39 void TestDrivesNotificationL(); |
|
40 private: |
|
41 TDriveNumber GetMMCDriveL(); |
|
42 void DeleteRegFileL(TDriveNumber aDriveNumber); |
|
43 void CopyRegFileL(TDriveNumber aDriveNumber); |
|
44 CActiveScheduler* iScheduler; |
|
45 }; |
|
46 |
|
47 class CDriveTestObserver : public CBase, public MApaAppListServObserver |
|
48 { |
|
49 public: // from MApaAppListServObserver |
|
50 void HandleAppListEvent(TInt aEvent); |
|
51 public: |
|
52 TInt iNotified; |
|
53 CApaAppListNotifier* iNotifier; |
|
54 }; |
|
55 |
|
56 _LIT(KT_DriveNotificationStep,"T_DriveNotification"); |
|
57 #endif |