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

tdeprint

  • tdeprint
  • lpd
kmlpduimanager.cpp
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#include "kmlpduimanager.h"
21#include "kmfactory.h"
22#include "kmmanager.h"
23#include "kmwizard.h"
24#include "kmwbackend.h"
25#include "kmpropertypage.h"
26#include "kmpropbackend.h"
27#include "kmpropdriver.h"
28
29#include <tqfile.h>
30#include <tdelocale.h>
31
32KMLpdUiManager::KMLpdUiManager(TQObject *parent, const char *name)
33: KMUiManager(parent,name)
34{
35}
36
37KMLpdUiManager::~KMLpdUiManager()
38{
39}
40
41void KMLpdUiManager::setupWizard(KMWizard *wizard)
42{
43 KMWBackend *backend = wizard->backendPage();
44 backend->addBackend(KMWizard::Local,i18n("Local printer (parallel, serial, USB)"),true);
45 backend->addBackend(KMWizard::LPD,i18n("Remote LPD queue"),true);
46 backend->addBackend(KMWizard::SMB,i18n("SMB shared printer (Windows)"),false,KMWizard::Password);
47 backend->addBackend(KMWizard::TCP,i18n("Network printer (TCP)"),false);
48 backend->addBackend(KMWizard::File,i18n("File printer (print to file)"),true);
49
50 KMManager *mgr = KMFactory::self()->manager();
51 if (TQFile::exists(mgr->driverDirectory()+"/smbprint")) backend->enableBackend(KMWizard::SMB,true);
52 if (TQFile::exists(mgr->driverDirectory()+"/directprint")) backend->enableBackend(KMWizard::TCP,true);
53 if (TQFile::exists(mgr->driverDirectory()+"/ncpprint")) backend->enableBackend(KMWizard::Custom+1,true);
54}
55
56void KMLpdUiManager::setupPropertyPages(KMPropertyPage *p)
57{
58 p->addPropPage(new KMPropBackend(p, "Backend"));
59 p->addPropPage(new KMPropDriver(p, "Driver"));
60}

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.