|
1 // Copyright (c) 1997-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 "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 // f32test\fsstress\t_remdir.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #if defined(_UNICODE) |
|
19 #if !defined(UNICODE) |
|
20 #define UNICODE |
|
21 #endif |
|
22 #endif |
|
23 |
|
24 /* |
|
25 #define WIN32_LEAN_AND_MEAN |
|
26 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union |
|
27 #include <windows.h> |
|
28 #pragma warning( default : 4201 ) // nonstandard extension used : nameless struct/union |
|
29 #include <stdlib.h> |
|
30 */ |
|
31 #include <f32file.h> |
|
32 #include <f32fsys.h> |
|
33 #include <f32ver.h> |
|
34 #include <e32twin.h> |
|
35 #include <e32uid.h> |
|
36 |
|
37 #include "t_remfsy.h" |
|
38 |
|
39 |
|
40 |
|
41 ////////////////////////////////////////////////////////////////////////// |
|
42 // CRemoteDirCB // |
|
43 ////////////////////////////////////////////////////////////////////////// |
|
44 |
|
45 |
|
46 |
|
47 CRemoteDirCB::CRemoteDirCB(/*CSessionFs* aSession*/) |
|
48 // |
|
49 // Constructor |
|
50 // |
|
51 : CDirCB(/*aSession*/),iEntry()//JCS?????????? |
|
52 { |
|
53 |
|
54 // iWinHandle=NULL; |
|
55 // __DECLARE_NAME(_S("CRemoteDirCB")); |
|
56 } |
|
57 |
|
58 CRemoteDirCB::~CRemoteDirCB() |
|
59 // |
|
60 // Destructor |
|
61 // |
|
62 { |
|
63 |
|
64 // if (iWinHandle!=NULL && FindClose(iWinHandle)==FALSE) |
|
65 // Panic(EDirClose); |
|
66 } |
|
67 |
|
68 TBool CRemoteDirCB::MatchUid() |
|
69 // |
|
70 // Match the uid ? |
|
71 // |
|
72 { |
|
73 |
|
74 if (iUidType[0]!=TUid::Null() || iUidType[1]!=TUid::Null() || iUidType[2]!=TUid::Null()) |
|
75 return(ETrue); |
|
76 return(EFalse); |
|
77 } |
|
78 |
|
79 |
|
80 void CRemoteDirCB::ReadL(TEntry& /*anEntry*/) |
|
81 // |
|
82 // Read the next entry from the directory |
|
83 // Dummy implementation of a pure virtual function |
|
84 // |
|
85 { |
|
86 User::After(200000); // Wait 0.2 seconds |
|
87 } |
|
88 |
|
89 |
|
90 ////////////////////////////////////////////////////////////////////////// |
|
91 // CRemoteFormatCB // |
|
92 ////////////////////////////////////////////////////////////////////////// |
|
93 |
|
94 |
|
95 |
|
96 CRemoteFormatCB::CRemoteFormatCB(/*CSessionFs* aSession*/)//???JCS |
|
97 // |
|
98 // Constructor |
|
99 // |
|
100 :CFormatCB(/*aSession*/) |
|
101 { |
|
102 |
|
103 __DECLARE_NAME(_S("CRemoteFormatCB")); |
|
104 } |
|
105 |
|
106 CRemoteFormatCB::~CRemoteFormatCB() |
|
107 // |
|
108 // Destructor |
|
109 // |
|
110 {} |
|
111 |
|
112 void CRemoteFormatCB::DoFormatStepL() |
|
113 // |
|
114 // Do Formatting |
|
115 // |
|
116 { |
|
117 |
|
118 iCurrentStep=0; |
|
119 User::Leave(KErrNotSupported); |
|
120 } |
|
121 |