userlibandfileserver/fileserver/etshell/ts_std.h
changeset 176 af6ec97d9189
parent 33 0173bcd7697c
child 254 1560c419b176
equal deleted inserted replaced
175:5af6c74cd793 176:af6ec97d9189
   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(TBool aPageSwitch, const TDesC& aBuf);
   148 	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,...);
       
   149 
       
   150     static void Printf(TRefByValue<const TDesC16> aFmt, ...);
       
   151     static void SetDbgConsoleEcho(TBool aOn) {iDbgPrint = aOn;}
       
   152 
   149 public:
   153 public:
   150 	static CConsoleBase* TheConsole;
   154 	static CConsoleBase* TheConsole;
   151 	static CFileMan* TheFileMan;
   155 	static CFileMan* TheFileMan;
   152 	static CCliCompleter* TheCliCompleter;
   156 	static CCliCompleter* TheCliCompleter;
   153 	
   157 	
   164 	static void PrintHelp(const TShellCommand* aCommand);
   168 	static void PrintHelp(const TShellCommand* aCommand);
   165 	static void ChangeDrive(TChar aDrive);
   169 	static void ChangeDrive(TChar aDrive);
   166 	static TInt RunBatch(TDes& aCommand);
   170 	static TInt RunBatch(TDes& aCommand);
   167 	static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion);
   171 	static TInt RunExecutable(TDes& aCommand,TBool aWaitForCompletion);
   168 	static TKeyCode PageSwitchDisplay(const TDesC& aBuf);
   172 	static TKeyCode PageSwitchDisplay(const TDesC& aBuf);
       
   173 
   169 private:
   174 private:
   170 	static TBuf<KMaxFileName> currentPath;
   175 	static TBuf<KMaxFileName> currentPath;
   171 	static TBuf<KMaxFileName> drivePaths[KMaxDrives];
   176 	static TBuf<KMaxFileName> drivePaths[KMaxDrives];
   172 	static const TShellCommand iCommand[ENoShellCommands];
   177 	static const TShellCommand iCommand[ENoShellCommands];
   173 	static RFs TheFs;
   178 	static RFs TheFs;
   174 	static CLineEdit* TheEditor;
   179 	static CLineEdit* TheEditor;
   175 	friend class ShellFunction;
   180 	friend class ShellFunction;
   176 	friend class CDllChecker;
   181 	friend class CDllChecker;
       
   182 	
       
   183     static TBool iDbgPrint; ///< if ETrue, the output from CShell::Printf is copied to the debug port
       
   184     
   177 	};
   185 	};
   178 
   186 
   179 
   187 
   180 class CDllChecker : public CBase
   188 class CDllChecker : public CBase
   181 //
   189 //