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

tdeprint

  • tdeprint
  • lpr
lprhandler.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 LPRHANDLER_H
21#define LPRHANDLER_H
22
23#if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24#warning internal header, do not use except if you are a TDEPrint developer
25#endif
26
27#include <tqstring.h>
28
29class PrintcapEntry;
30class KMPrinter;
31class DrMain;
32class KMManager;
33class KPrinter;
34
42class LprHandler
43{
44public:
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
63protected:
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
70protected:
71 TQString m_name;
72 KMManager *m_manager;
73 TQString m_cacheddriverdir;
74};
75
76inline TQString LprHandler::name() const
77{ return m_name; }
78
79inline KMManager* LprHandler::manager() const
80{ return m_manager; }
81
82inline TQString LprHandler::cachedDriverDir() const
83{ return m_cacheddriverdir; }
84
85inline void LprHandler::setCachedDriverDir(const TQString& s)
86{ m_cacheddriverdir = s; }
87
88#endif
KPrinter
This class is the main interface to access the TDE print framework.
Definition: kprinter.h:89

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.