|
1 /* |
|
2 * Copyright (c) 2004 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 "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 * Definition of CTFDosControl |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CTFDOSCONTROL_H__ |
|
21 #define __CTFDOSCONTROL_H__ |
|
22 |
|
23 #include <dossvrservices.h> |
|
24 #include "dosclishareddata.h" |
|
25 #include <ctfstub.h> |
|
26 #include "mtfdoscontrol.h" |
|
27 #include "tfdostypes.h" |
|
28 #include <f32file.h> |
|
29 #include <e32property.h> |
|
30 class RTFDosExtension; |
|
31 |
|
32 struct TTFDosControlTestCaseState; |
|
33 class CTFEventListener; |
|
34 class CSdDisk; |
|
35 |
|
36 const TInt KTFStubTypeDosServerControl = 560; |
|
37 |
|
38 class CTFDosControl : public CTFStub, public MTFDosControl |
|
39 { |
|
40 public: |
|
41 CTFDosControl( void ); |
|
42 virtual ~CTFDosControl( void ); |
|
43 |
|
44 private: |
|
45 CTFDosControl( const CTFDosControl& aStub ); |
|
46 CTFDosControl& operator=( const CTFDosControl& aStub ); |
|
47 |
|
48 public: |
|
49 void InitializeL( void ); |
|
50 |
|
51 public: |
|
52 void CallDosFunctionL( TTFDosServerControlTestCaseState& aParameter ); |
|
53 TInt ParameterCount( TTFDosFunction aFunction ) const; |
|
54 TBool ParameterBounds( TTFDosFunction aFunction, TInt* aMin, TInt* aMax ) const; |
|
55 void NotifyDosEvent( TInt aEvent, TInt aParameter ); |
|
56 |
|
57 private: |
|
58 void ResetDosServices( void ); |
|
59 |
|
60 |
|
61 private: |
|
62 RDosServer iDosServer; |
|
63 |
|
64 RDosSharedData* iDosSharedData; |
|
65 CSdDisk* iSdDisk; |
|
66 |
|
67 RTFDosExtension* iDosExtension; |
|
68 CTFEventListener* iEventListener; |
|
69 TBool iInitialized; |
|
70 TReal64 iFreeDiskSpace; |
|
71 |
|
72 RFs iFs; |
|
73 RFile iFile; |
|
74 |
|
75 TInt iIndex; |
|
76 |
|
77 }; |
|
78 |
|
79 class RTFDosExtension : public RDosExtension |
|
80 { |
|
81 public: |
|
82 /** |
|
83 * Calls a synchronous RDosExtension::CallFunction |
|
84 */ |
|
85 TInt CallSyncDosExtFunction( const TInt& aFunc, TAny* aParam, TInt aParLength, TBool aAutoComplete ); |
|
86 |
|
87 /** |
|
88 * Calls an asynchronous RDosExtension::CallFunction |
|
89 */ |
|
90 TInt CallAsyncDosExtFunction( TRequestStatus& aStatus, TInt aFunc, TAny* aParam, TInt aParLength, TBool aAutoComplete ); |
|
91 }; |
|
92 |
|
93 |
|
94 #endif |