• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEPrint

apshandler.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <kdeprint@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 APSHANDLER_H
00021 #define APSHANDLER_H
00022 
00023 #include "lprhandler.h"
00024 
00025 #include <QtCore/QMap>
00026 
00027 #ifdef __GNUC__
00028 #warning rename class or remove from global namespace
00029 #endif
00030 class ApsHandler : public LprHandler
00031 {
00032 public:
00033     explicit ApsHandler(KMManager*);
00034 
00035     bool validate(PrintcapEntry*);
00036     KMPrinter* createPrinter(PrintcapEntry*);
00037     bool completePrinter(KMPrinter*, PrintcapEntry*, bool = true);
00038     DrMain* loadDriver(KMPrinter*, PrintcapEntry*, bool = false);
00039     DrMain* loadDbDriver(const QString&);
00040     void reset();
00041     PrintcapEntry* createEntry(KMPrinter*);
00042     bool savePrinterDriver(KMPrinter*, PrintcapEntry*, DrMain*, bool* = 0);
00043     bool removePrinter(KMPrinter*, PrintcapEntry*);
00044     QString printOptions(KPrinter*);
00045 
00046 protected:
00047     QString driverDirInternal();
00048 
00049 private:
00050     QMap<QString, QString> loadResources(PrintcapEntry*);
00051     QMap<QString, QString> loadVarFile(const QString&);
00052     QString sysconfDir();
00053     QString shareDir();
00054     DrMain* loadApsDriver(bool = false);
00055 
00056 private:
00057     int m_counter;
00058 };
00059 
00060 #endif

KDEPrint

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

API Reference

Skip menu "API Reference"
  •   KDEPrint
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal