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

tdeprint

  • tdeprint
  • management
kmwsocketutil.h
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 #ifndef KMWSOCKETUTIL_H
21 #define KMWSOCKETUTIL_H
22 
23 #include <tqstring.h>
24 #include <tqptrlist.h>
25 #include <kdialogbase.h>
26 
27 struct SocketInfo
28 {
29  QString IP;
30  QString Name;
31  int Port;
32 };
33 
34 class TQProgressBar;
35 class TQLineEdit;
36 class TQComboBox;
37 class KMWSocketUtil;
38 
39 class SocketConfig : public KDialogBase
40 {
41  friend class KMWSocketUtil;
42  Q_OBJECT
43 public:
44  SocketConfig(KMWSocketUtil *util, TQWidget *parent = 0, const char *name = 0);
45  ~SocketConfig();
46 
47 protected slots:
48  void slotOk();
49 
50 private:
51  TQLineEdit *mask_, *tout_;
52  TQComboBox *port_;
53 };
54 
55 class KMWSocketUtil
56 {
57  friend class SocketConfig;
58 
59 public:
60  KMWSocketUtil();
61 
62  bool checkPrinter(const TQString& host, int port, TQString* hostname = 0);
63 
64  const TQPtrList<SocketInfo>* printerList() { return &printerlist_; }
65  bool scanNetwork(TQProgressBar *bar = 0);
66  void configureScan(TQWidget *parent = 0);
67  void setDefaultPort(int p) { port_ = p; }
68 
69 private:
70  TQPtrList<SocketInfo> printerlist_;
71  TQString root_;
72  int port_;
73  int timeout_; // in milliseconds
74 };
75 
76 #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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.8.8
This website is maintained by Timothy Pearson.