equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @test |
|
20 @internalComponent |
|
21 |
|
22 This contains CT_FileActiveCallback |
|
23 */ |
|
24 |
|
25 #if (!defined __T_FILEACTIVECALLBACK_H__) |
|
26 #define __T_FILEACTIVECALLBACK_H__ |
|
27 |
|
28 #include <test/activecallback.h> |
|
29 |
|
30 class CT_FileActiveCallback : public CActiveCallback |
|
31 { |
|
32 public: |
|
33 static CT_FileActiveCallback* NewL(MActiveCallback& aCallback, TInt aPriority=EPriorityStandard); |
|
34 static CT_FileActiveCallback* NewLC(MActiveCallback& aCallback, TInt aPriority=EPriorityStandard); |
|
35 |
|
36 TInt DecCount(); |
|
37 void Activate(); |
|
38 void Activate(TInt aAsuncErrorIndex); |
|
39 |
|
40 void SetSection(const TDesC& aSection); |
|
41 |
|
42 void CreateFileDataBufferL(TInt aLength); |
|
43 |
|
44 TInt iType; |
|
45 HBufC8* iFileData; |
|
46 TDesC* iSection; |
|
47 |
|
48 protected: |
|
49 CT_FileActiveCallback(MActiveCallback& aCallback, TInt aPriority); |
|
50 ~CT_FileActiveCallback(); |
|
51 |
|
52 private: |
|
53 TInt iCount; |
|
54 TInt iAsyncErrorIndex; |
|
55 }; |
|
56 |
|
57 #endif /* __T_FILEACTIVECALLBACK_H__ */ |