equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /*#ifndef __TMEMNOT_H__ |
|
21 #define __TMEMNOT_H__ |
|
22 |
|
23 #include "watchtimer.h" |
|
24 #include "sysinfoservice.h" |
|
25 |
|
26 |
|
27 class CCriticalMemNot : public CActive ,public ISystemObserver, public MTimeOutCallBack |
|
28 { |
|
29 public: |
|
30 static CCriticalMemNot* NewL(CStifLogger* aLog, TInt aDrive = 0, TInt aTestId = -1); |
|
31 |
|
32 ~CCriticalMemNot(); |
|
33 |
|
34 void Start(); |
|
35 |
|
36 TInt Result(); |
|
37 |
|
38 void HandleResponseL(const TDesC& aEntity,const TDesC& aKey, |
|
39 CSysData* aResponse, TInt32 aTransID, |
|
40 TInt aError=KErrNone); |
|
41 |
|
42 void HandleTimeOut(); |
|
43 |
|
44 enum TTestId |
|
45 { |
|
46 ETestCriticalMem, |
|
47 ETestMemoryCard |
|
48 }; |
|
49 |
|
50 private: |
|
51 void ConstructL(); |
|
52 |
|
53 CCriticalMemNot(CStifLogger* aLog, TInt aDrive, TInt aTestId); |
|
54 |
|
55 virtual void DoCancel(); |
|
56 virtual void RunL(); |
|
57 void TestFunc(); |
|
58 void TestFunc1(); |
|
59 |
|
60 |
|
61 |
|
62 private: |
|
63 CActiveSchedulerWait* iWaitScheduler; |
|
64 CSysInfoService* iSysInfoService; |
|
65 CWatchTimer* iTimer; |
|
66 TInt iResult; |
|
67 TInt iDrive ; |
|
68 TInt iCount ; |
|
69 TInt iTestId ; |
|
70 CStifLogger* iLog; |
|
71 |
|
72 }; |
|
73 |
|
74 |
|
75 #endif __TMEMNOT_H__*/ |