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

kdeprint

  • kdeprint
  • lpd
lpdtools.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 #ifndef LPDTOOLS_H
20 #define LPDTOOLS_H
21 
22 #include <tqstring.h>
23 #include <tqmap.h>
24 #include <tqptrlist.h>
25 #include <tqtextstream.h>
26 
27 class KMLpdManager;
28 class DrMain;
29 class KMPrinter;
30 
31 class PrintcapEntry
32 {
33 friend class KMLpdManager;
34 public:
35  bool readLine(const TQString& line);
36  void writeEntry(TQTextStream&);
37  KMPrinter* createPrinter();
38  TQString arg(const TQString& key) const { return m_args[key]; }
39  TQString comment(int i);
40 private:
41  QString m_name;
42  QString m_comment;
43  TQMap<TQString,TQString> m_args;
44 };
45 
46 //*****************************************************************************************************
47 
48 struct Resolution
49 {
50  int xdpi, ydpi;
51  QString comment;
52 };
53 
54 struct BitsPerPixel
55 {
56  QString bpp;
57  QString comment;
58 };
59 
60 class PrinttoolEntry
61 {
62 friend class KMLpdManager;
63 public:
64  bool readEntry(TQTextStream& t);
65  DrMain* createDriver();
66 private:
67  QString m_name, m_gsdriver, m_description, m_about;
68  TQPtrList<Resolution> m_resolutions;
69  TQPtrList<BitsPerPixel> m_depths;
70 };
71 
72 //*****************************************************************************************************
73 
74 TQString getPrintcapLine(TQTextStream& t, TQString *lastcomment = NULL);
75 
76 #endif // LPDTOOLS_H

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. |