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

kdeprint

  • kdeprint
kprinterimpl.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  **/
20 
21 #ifndef KPRINTERIMPL_H
22 #define KPRINTERIMPL_H
23 
24 #include <tqobject.h>
25 #include <tqstringlist.h>
26 #include <tqmap.h>
27 #include <tqptrlist.h>
28 
29 #include <kdelibs_export.h>
30 
31 class KPrinter;
32 class KMPrinter;
33 
34 class KDEPRINT_EXPORT KPrinterImpl : public TQObject
35 {
36  Q_OBJECT
37 public:
38  KPrinterImpl(TQObject *parent = 0, const char *name = 0);
39  virtual ~KPrinterImpl();
40 
41  virtual bool setupCommand(TQString& cmd, KPrinter*);
42  virtual void preparePrinting(KPrinter*);
43  virtual void broadcastOption(const TQString& key, const TQString& value);
44 
45  bool printFiles(KPrinter*, const TQStringList&, bool removeflag = false);
46  // result:
47  // -1 -> error
48  // 0 -> nothing happened
49  // 1 -> files filterd
50  int filterFiles(KPrinter*, TQStringList&, bool removeflag = false);
51  int autoConvertFiles(KPrinter*, TQStringList&, bool removeflag = false);
52  void saveOptions(const TQMap<TQString,TQString>& opts);
53  const TQMap<TQString,TQString>& loadOptions() const { return m_options; }
54  TQString tempFile();
55  TQString quote(const TQString&);
56  void statusMessage(const TQString&, KPrinter* = 0);
57 
58 protected:
59  bool startPrinting(const TQString& cmd, KPrinter *printer, const TQStringList& files, bool removeflag = false);
60  int dcopPrint(const TQString& cmd, const TQStringList& files, bool removeflag = false);
61  bool setupSpecialCommand(TQString&, KPrinter*, const TQStringList&);
62  int doFilterFiles(KPrinter* pr, TQStringList& files, const TQStringList& flist, const TQMap<TQString,TQString>& opts, bool removeflag = false);
63  void loadAppOptions();
64  void saveAppOptions();
65 
66 protected:
67  TQMap<TQString,TQString> m_options; // use to save current options
68 };
69 
70 #endif

kdeprint

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

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |