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

kdeprint

  • kdeprint
  • lpr
lprhandler.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@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 LPRHANDLER_H
21 #define LPRHANDLER_H
22 
23 #if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a KDEPrint developer
25 #endif
26 
27 #include <tqstring.h>
28 
29 class PrintcapEntry;
30 class KMPrinter;
31 class DrMain;
32 class KMManager;
33 class KPrinter;
34 
42 class LprHandler
43 {
44 public:
45  LprHandler(const TQString& name, KMManager *mgr = 0);
46  virtual ~LprHandler();
47 
48  virtual bool validate(PrintcapEntry*);
49  virtual KMPrinter* createPrinter(PrintcapEntry*);
50  virtual bool completePrinter(KMPrinter*, PrintcapEntry*, bool shortmode = true);
51  virtual DrMain* loadDriver(KMPrinter*, PrintcapEntry*, bool = false);
52  virtual DrMain* loadDbDriver(const TQString&);
53  virtual bool savePrinterDriver(KMPrinter*, PrintcapEntry*, DrMain*, bool* = 0);
54  virtual PrintcapEntry* createEntry(KMPrinter*);
55  virtual bool removePrinter(KMPrinter*, PrintcapEntry*);
56  virtual TQString printOptions(KPrinter*);
57  virtual void reset();
58 
59  TQString name() const;
60  KMManager* manager() const;
61  TQString driverDirectory();
62 
63 protected:
64  DrMain* loadToolDriver(const TQString&);
65  TQString locateDir(const TQString& dirname, const TQString& paths);
66  TQString cachedDriverDir() const;
67  void setCachedDriverDir(const TQString&);
68  virtual TQString driverDirInternal();
69 
70 protected:
71  TQString m_name;
72  KMManager *m_manager;
73  TQString m_cacheddriverdir;
74 };
75 
76 inline TQString LprHandler::name() const
77 { return m_name; }
78 
79 inline KMManager* LprHandler::manager() const
80 { return m_manager; }
81 
82 inline TQString LprHandler::cachedDriverDir() const
83 { return m_cacheddriverdir; }
84 
85 inline void LprHandler::setCachedDriverDir(const TQString& s)
86 { m_cacheddriverdir = s; }
87 
88 #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. |