• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

kprintprocess.h

00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License version 2 as published by the Free Software Foundation.
00008  *
00009  *  This library is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *  Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this library; see the file COPYING.LIB.  If not, write to
00016  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  *  Boston, MA 02110-1301, USA.
00018  **/
00019 
00020 #ifndef KPRINTPROCESS_H
00021 #define KPRINTPROCESS_H
00022 
00023 #include <kprocess.h>
00024 #include <tqstringlist.h>
00025 
00026 class KPrintProcess : public KShellProcess
00027 {
00028     Q_OBJECT
00029 public:
00030     KPrintProcess();
00031     ~KPrintProcess();
00032 
00033     bool print();
00034     TQString errorMessage() const;
00035 
00036     void setOutput( const TQString& output );
00037     const TQString& output() const;
00038     void setTempOutput( const TQString& output );
00039     const TQString& tempOutput() const;
00040     void setTempFiles( const TQStringList& files );
00041     const TQStringList& tempFiles() const;
00042     void setCommand( const TQString& cmd );
00043     const TQString& command() const;
00044 
00045     enum State { None = 0, Printing, Finishing };
00046     int state() const;
00047 
00048 signals:
00049     void printTerminated( KPrintProcess* );
00050     void printError( KPrintProcess*, const TQString& );
00051 
00052 protected slots:
00053     void slotReceivedStderr(TDEProcess*, char*, int);
00054     void slotExited( TDEProcess* );
00055 
00056 private:
00057     QString m_buffer;
00058     TQStringList m_tempfiles;
00059     TQString m_output, m_tempoutput, m_command;
00060     int m_state;
00061 };
00062 
00063 inline const TQString& KPrintProcess::output() const
00064 { return m_output; }
00065 
00066 inline const TQString& KPrintProcess::tempOutput() const
00067 { return m_tempoutput; }
00068 
00069 inline const TQStringList& KPrintProcess::tempFiles() const
00070 { return m_tempfiles; }
00071 
00072 inline const TQString& KPrintProcess::command() const
00073 { return m_command; }
00074 
00075 inline void KPrintProcess::setOutput( const TQString& s )
00076 { m_output = s; }
00077 
00078 inline void KPrintProcess::setTempOutput( const TQString& s )
00079 { m_tempoutput = s; }
00080 
00081 inline void KPrintProcess::setTempFiles( const TQStringList& l )
00082 { m_tempfiles = l; }
00083 
00084 inline void KPrintProcess::setCommand( const TQString& c )
00085 { m_command = c; }
00086 
00087 inline int KPrintProcess::state() const
00088 { return m_state; }
00089 
00090 #endif

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.6.3
This website is maintained by Timothy Pearson.