20 #ifndef KPRINTPROCESS_H
21 #define KPRINTPROCESS_H
23 #include <tdeprocess.h>
24 #include <tqstringlist.h>
26 class KPrintProcess :
public KShellProcess
34 TQString errorMessage()
const;
36 void setOutput(
const TQString& output );
37 const TQString& output()
const;
38 void setTempOutput(
const TQString& output );
39 const TQString& tempOutput()
const;
40 void setTempFiles(
const TQStringList& files );
41 const TQStringList& tempFiles()
const;
42 void setCommand(
const TQString& cmd );
43 const TQString& command()
const;
45 enum State { None = 0, Printing, Finishing };
49 void printTerminated( KPrintProcess* );
50 void printError( KPrintProcess*,
const TQString& );
53 void slotReceivedStderr(TDEProcess*,
char*,
int);
54 void slotExited( TDEProcess* );
58 TQStringList m_tempfiles;
59 TQString m_output, m_tempoutput, m_command;
63 inline const TQString& KPrintProcess::output()
const
66 inline const TQString& KPrintProcess::tempOutput()
const
67 {
return m_tempoutput; }
69 inline const TQStringList& KPrintProcess::tempFiles()
const
70 {
return m_tempfiles; }
72 inline const TQString& KPrintProcess::command()
const
75 inline void KPrintProcess::setOutput(
const TQString& s )
78 inline void KPrintProcess::setTempOutput(
const TQString& s )
81 inline void KPrintProcess::setTempFiles(
const TQStringList& l )
84 inline void KPrintProcess::setCommand(
const TQString& c )
87 inline int KPrintProcess::state()
const