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

tdeprint

kmwsocketutil.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 KMWSOCKETUTIL_H
00021 #define KMWSOCKETUTIL_H
00022 
00023 #include <tqstring.h>
00024 #include <tqptrlist.h>
00025 #include <kdialogbase.h>
00026 
00027 struct SocketInfo
00028 {
00029     QString IP;
00030     QString Name;
00031     int Port;
00032 };
00033 
00034 class TQProgressBar;
00035 class TQLineEdit;
00036 class TQComboBox;
00037 class KMWSocketUtil;
00038 
00039 class SocketConfig : public KDialogBase
00040 {
00041     friend class KMWSocketUtil;
00042     Q_OBJECT
00043 public:
00044     SocketConfig(KMWSocketUtil *util, TQWidget *parent = 0, const char *name = 0);
00045     ~SocketConfig();
00046 
00047 protected slots:
00048     void slotOk();
00049 
00050 private:
00051     TQLineEdit  *mask_, *tout_;
00052     TQComboBox  *port_;
00053 };
00054 
00055 class KMWSocketUtil
00056 {
00057     friend class SocketConfig;
00058 
00059 public:
00060     KMWSocketUtil();
00061 
00062     bool checkPrinter(const TQString& host, int port, TQString* hostname = 0);
00063 
00064     const TQPtrList<SocketInfo>* printerList() { return &printerlist_; }
00065     bool scanNetwork(TQProgressBar *bar = 0);
00066     void configureScan(TQWidget *parent = 0);
00067     void setDefaultPort(int p) { port_ = p; }
00068 
00069 private:
00070     TQPtrList<SocketInfo>   printerlist_;
00071     TQString            root_;
00072     int         port_;
00073     int         timeout_;   // in milliseconds
00074 };
00075 
00076 #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.6.3
This website is maintained by Timothy Pearson.