25 #include <tqtextstream.h>
26 #include "kmprinter.h"
30 class LpcHelper :
public TQObject
33 LpcHelper(TQObject *parent = 0,
const char *name = 0);
36 KMPrinter::PrinterState state(
const TQString&)
const;
37 KMPrinter::PrinterState state(KMPrinter*)
const;
40 bool enable(KMPrinter*,
bool, TQString&);
41 bool start(KMPrinter*,
bool, TQString&);
42 bool removeJob(KMJob*, TQString&);
43 bool changeJobState(KMJob*,
int, TQString&);
45 bool restart(TQString&);
48 bool changeState(
const TQString&,
const TQString&, TQString&);
49 void parsetStatusLPR(TQTextStream&);
50 void parsetStatusLPRng(TQTextStream&);
51 int parseStateChangeLPR(
const TQString&,
const TQString&);
52 int parseStateChangeLPRng(
const TQString&,
const TQString&);
55 TQMap<TQString, KMPrinter::PrinterState> m_state;
56 TQString m_exepath, m_lprmpath, m_checkpcpath;