equal
deleted
inserted
replaced
|
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 #if !defined(__T_LOWDISKSPACE_H__) |
|
17 #define __T_LOWDISKSPACE_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 |
|
22 class CContactDatabase; |
|
23 |
|
24 |
|
25 class CLowDiskSpaceTest : public CActive |
|
26 { |
|
27 public: |
|
28 static CLowDiskSpaceTest* NewL(); |
|
29 ~CLowDiskSpaceTest(); |
|
30 void Start(); |
|
31 private: |
|
32 CLowDiskSpaceTest(); |
|
33 void ConstructL(); |
|
34 void FillDiskL(); |
|
35 void ClearDiskL(); |
|
36 void DatabaseTestL(); |
|
37 private: //From CActive |
|
38 void RunL(); |
|
39 void DoCancel(); |
|
40 void AddContactToDatabaseL(); |
|
41 void Cleanup(); |
|
42 private: |
|
43 enum TTest |
|
44 { |
|
45 EFillDisk, |
|
46 EDatabaseTest, |
|
47 EClearDisk |
|
48 }; |
|
49 private: |
|
50 CContactDatabase* iContactDatabase; |
|
51 RFs iFileSession; |
|
52 RFile* iFile; |
|
53 TInt iCount; |
|
54 TInt iManyFiles; |
|
55 }; |
|
56 |
|
57 #endif |