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

tdeprint

lprhandler.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 LPRHANDLER_H
00021 #define LPRHANDLER_H
00022 
00023 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
00024 #warning internal header, do not use except if you are a TDEPrint developer
00025 #endif
00026 
00027 #include <tqstring.h>
00028 
00029 class PrintcapEntry;
00030 class KMPrinter;
00031 class DrMain;
00032 class KMManager;
00033 class KPrinter;
00034 
00042 class LprHandler
00043 {
00044 public:
00045     LprHandler(const TQString& name, KMManager *mgr = 0);
00046     virtual ~LprHandler();
00047 
00048     virtual bool validate(PrintcapEntry*);
00049     virtual KMPrinter* createPrinter(PrintcapEntry*);
00050     virtual bool completePrinter(KMPrinter*, PrintcapEntry*, bool shortmode = true);
00051     virtual DrMain* loadDriver(KMPrinter*, PrintcapEntry*, bool = false);
00052     virtual DrMain* loadDbDriver(const TQString&);
00053     virtual bool savePrinterDriver(KMPrinter*, PrintcapEntry*, DrMain*, bool* = 0);
00054     virtual PrintcapEntry* createEntry(KMPrinter*);
00055     virtual bool removePrinter(KMPrinter*, PrintcapEntry*);
00056     virtual TQString printOptions(KPrinter*);
00057     virtual void reset();
00058 
00059     TQString name() const;
00060     KMManager* manager() const;
00061     TQString driverDirectory();
00062 
00063 protected:
00064     DrMain* loadToolDriver(const TQString&);
00065     TQString locateDir(const TQString& dirname, const TQString& paths);
00066     TQString cachedDriverDir() const;
00067     void setCachedDriverDir(const TQString&);
00068     virtual TQString driverDirInternal();
00069 
00070 protected:
00071     TQString    m_name;
00072     KMManager   *m_manager;
00073     TQString    m_cacheddriverdir;
00074 };
00075 
00076 inline TQString LprHandler::name() const
00077 { return m_name; }
00078 
00079 inline KMManager* LprHandler::manager() const
00080 { return m_manager; }
00081 
00082 inline TQString LprHandler::cachedDriverDir() const
00083 { return m_cacheddriverdir; }
00084 
00085 inline void LprHandler::setCachedDriverDir(const TQString& s)
00086 { m_cacheddriverdir = s; }
00087 
00088 #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.7.6.1
This website is maintained by Timothy Pearson.