userlibandfileserver/fileserver/etshell/ts_std.h
branchRCL_3
changeset 294 039a3e647356
parent 257 3e88ff8f41d5
equal deleted inserted replaced
268:345b1ca54e88 294:039a3e647356
   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);
   147 	static TKeyCode OutputStringToConsole(const TDesC& aNotification,TBool aPageSwitch,TRefByValue<const TDesC> aFmt,...);
   148 	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 
       
   157 public:
   149 public:
   158 	static CConsoleBase* TheConsole;
   150 	static CConsoleBase* TheConsole;
   159 	static CFileMan* TheFileMan;
   151 	static CFileMan* TheFileMan;
   160 	static CCliCompleter* TheCliCompleter;
   152 	static CCliCompleter* TheCliCompleter;
   161 	
   153 	
   172 	static void PrintHelp(const TShellCommand* aCommand);
   164 	static void PrintHelp(const TShellCommand* aCommand);
   173 	static void ChangeDrive(TChar aDrive);
   165 	static void ChangeDrive(TChar aDrive);
   174 	static TInt RunBatch(TDes& aCommand);
   166 	static TInt RunBatch(TDes& aCommand);
   175 	static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion);
   167 	static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion);
   176 	static TKeyCode PageSwitchDisplay(const TDesC& aBuf);
   168 	static TKeyCode PageSwitchDisplay(const TDesC& aBuf);
   177 
       
   178 private:
   169 private:
   179 	static TBuf<KMaxFileName> currentPath;
   170 	static TBuf<KMaxFileName> currentPath;
   180 	static TBuf<KMaxFileName> drivePaths[KMaxDrives];
   171 	static TBuf<KMaxFileName> drivePaths[KMaxDrives];
   181 	static const TShellCommand iCommand[ENoShellCommands];
   172 	static const TShellCommand iCommand[ENoShellCommands];
   182 	static RFs TheFs;
   173 	static RFs TheFs;
   183 	static CLineEdit* TheEditor;
   174 	static CLineEdit* TheEditor;
   184 	friend class ShellFunction;
   175 	friend class ShellFunction;
   185 	friend class CDllChecker;
   176 	friend class CDllChecker;
   186 	
       
   187     static TBool iDbgPrint; ///< if ETrue, the output from CShell::Printf is copied to the debug port
       
   188     
       
   189 	};
   177 	};
   190 
   178 
   191 
   179 
   192 class CDllChecker : public CBase
   180 class CDllChecker : public CBase
   193 //
   181 //
   276 	static void StripQuotes(TDes& aVal);
   264 	static void StripQuotes(TDes& aVal);
   277 	
   265 	
   278 private:		
   266 private:		
   279 	static TInt ShowDirectoryTree(TDes& aPath,TUint aSwitches,TDes& aTreeGraph);
   267 	static TInt ShowDirectoryTree(TDes& aPath,TUint aSwitches,TDes& aTreeGraph);
   280 	static TBool Certain();	
   268 	static TBool Certain();	
   281 	static TBool OutputContentsToConsole(RPointerArray<HBufC>& aText,TUint aSwitches);
   269 	static void OutputContentsToConsole(RPointerArray<HBufC>& aText,TUint aSwitches);
   282 	static void OutputDirContentL(CDir* aDirList,RPointerArray<HBufC>& aText,TUint aSwitches);	
   270 	static void OutputDirContentL(CDir* aDirList,RPointerArray<HBufC>& aText,TUint aSwitches);	
   283 	};
   271 	};
   284 
   272 
   285 GLREF_D TVersion TheShellVersion;
   273 GLREF_D TVersion TheShellVersion;
   286 GLREF_C void Panic(TShellPanic anErrorCode);
   274 GLREF_C void Panic(TShellPanic anErrorCode);