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

tdeprint

  • tdeprint
kprintprocess.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License version 2 as published by the Free Software Foundation.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 **/
19
20#ifndef KPRINTPROCESS_H
21#define KPRINTPROCESS_H
22
23#include <tdeprocess.h>
24#include <tqstringlist.h>
25
26class KPrintProcess : public KShellProcess
27{
28 TQ_OBJECT
29public:
30 KPrintProcess();
31 ~KPrintProcess();
32
33 bool print();
34 TQString errorMessage() const;
35
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;
44
45 enum State { None = 0, Printing, Finishing };
46 int state() const;
47
48signals:
49 void printTerminated( KPrintProcess* );
50 void printError( KPrintProcess*, const TQString& );
51
52protected slots:
53 void slotReceivedStderr(TDEProcess*, char*, int);
54 void slotExited( TDEProcess* );
55
56private:
57 TQString m_buffer;
58 TQStringList m_tempfiles;
59 TQString m_output, m_tempoutput, m_command;
60 int m_state;
61};
62
63inline const TQString& KPrintProcess::output() const
64{ return m_output; }
65
66inline const TQString& KPrintProcess::tempOutput() const
67{ return m_tempoutput; }
68
69inline const TQStringList& KPrintProcess::tempFiles() const
70{ return m_tempfiles; }
71
72inline const TQString& KPrintProcess::command() const
73{ return m_command; }
74
75inline void KPrintProcess::setOutput( const TQString& s )
76{ m_output = s; }
77
78inline void KPrintProcess::setTempOutput( const TQString& s )
79{ m_tempoutput = s; }
80
81inline void KPrintProcess::setTempFiles( const TQStringList& l )
82{ m_tempfiles = l; }
83
84inline void KPrintProcess::setCommand( const TQString& c )
85{ m_command = c; }
86
87inline int KPrintProcess::state() const
88{ return m_state; }
89
90#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.9.4
This website is maintained by Timothy Pearson.