142 void SetCurrentPath(const TDesC& aDes); |
142 void SetCurrentPath(const TDesC& aDes); |
143 TDes& CurrentPath(); |
143 TDes& CurrentPath(); |
144 void SetDrivePath(const TDesC& aDes); |
144 void SetDrivePath(const TDesC& aDes); |
145 static void NewLine(); |
145 static void NewLine(); |
146 static TKeyCode OutputStringToConsole(TBool aPageSwitch,TRefByValue<const TDesC> aFmt,...); |
146 static TKeyCode OutputStringToConsole(TBool aPageSwitch,TRefByValue<const TDesC> aFmt,...); |
147 static TKeyCode OutputStringToConsole(TBool aPageSwitch, const TDesC& aBuf); |
|
148 static TKeyCode OutputStringToConsole(const TDesC& aNotification,TBool aPageSwitch,TRefByValue<const TDesC> aFmt,...); |
147 static TKeyCode OutputStringToConsole(const TDesC& aNotification,TBool aPageSwitch,TRefByValue<const TDesC> aFmt,...); |
|
148 |
|
149 static TKeyCode WriteBufToConsole(TBool aPageSwitch, const TDesC& aBuf); |
|
150 static TKeyCode WriteBufToConsole(TBool aPageSwitch, const TDesC& aBuf, const TDesC& aNotification); |
|
151 |
|
152 |
|
153 static void Printf(TRefByValue<const TDesC16> aFmt, ...); |
|
154 static void Print(const TDesC16& aBuf); |
|
155 static void SetDbgConsoleEcho(TBool aOn) {iDbgPrint = aOn;} |
|
156 |
149 public: |
157 public: |
150 static CConsoleBase* TheConsole; |
158 static CConsoleBase* TheConsole; |
151 static CFileMan* TheFileMan; |
159 static CFileMan* TheFileMan; |
152 static CCliCompleter* TheCliCompleter; |
160 static CCliCompleter* TheCliCompleter; |
153 |
161 |
164 static void PrintHelp(const TShellCommand* aCommand); |
172 static void PrintHelp(const TShellCommand* aCommand); |
165 static void ChangeDrive(TChar aDrive); |
173 static void ChangeDrive(TChar aDrive); |
166 static TInt RunBatch(TDes& aCommand); |
174 static TInt RunBatch(TDes& aCommand); |
167 static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion); |
175 static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion); |
168 static TKeyCode PageSwitchDisplay(const TDesC& aBuf); |
176 static TKeyCode PageSwitchDisplay(const TDesC& aBuf); |
|
177 |
169 private: |
178 private: |
170 static TBuf<KMaxFileName> currentPath; |
179 static TBuf<KMaxFileName> currentPath; |
171 static TBuf<KMaxFileName> drivePaths[KMaxDrives]; |
180 static TBuf<KMaxFileName> drivePaths[KMaxDrives]; |
172 static const TShellCommand iCommand[ENoShellCommands]; |
181 static const TShellCommand iCommand[ENoShellCommands]; |
173 static RFs TheFs; |
182 static RFs TheFs; |
174 static CLineEdit* TheEditor; |
183 static CLineEdit* TheEditor; |
175 friend class ShellFunction; |
184 friend class ShellFunction; |
176 friend class CDllChecker; |
185 friend class CDllChecker; |
|
186 |
|
187 static TBool iDbgPrint; ///< if ETrue, the output from CShell::Printf is copied to the debug port |
|
188 |
177 }; |
189 }; |
178 |
190 |
179 |
191 |
180 class CDllChecker : public CBase |
192 class CDllChecker : public CBase |
181 // |
193 // |
264 static void StripQuotes(TDes& aVal); |
276 static void StripQuotes(TDes& aVal); |
265 |
277 |
266 private: |
278 private: |
267 static TInt ShowDirectoryTree(TDes& aPath,TUint aSwitches,TDes& aTreeGraph); |
279 static TInt ShowDirectoryTree(TDes& aPath,TUint aSwitches,TDes& aTreeGraph); |
268 static TBool Certain(); |
280 static TBool Certain(); |
269 static void OutputContentsToConsole(RPointerArray<HBufC>& aText,TUint aSwitches); |
281 static TBool OutputContentsToConsole(RPointerArray<HBufC>& aText,TUint aSwitches); |
270 static void OutputDirContentL(CDir* aDirList,RPointerArray<HBufC>& aText,TUint aSwitches); |
282 static void OutputDirContentL(CDir* aDirList,RPointerArray<HBufC>& aText,TUint aSwitches); |
271 }; |
283 }; |
272 |
284 |
273 GLREF_D TVersion TheShellVersion; |
285 GLREF_D TVersion TheShellVersion; |
274 GLREF_C void Panic(TShellPanic anErrorCode); |
286 GLREF_C void Panic(TShellPanic anErrorCode); |