20 #ifndef NETWORKSCANNER_H
21 #define NETWORKSCANNER_H
24 #include <kdialogbase.h>
25 #include <tqptrlist.h>
28 class TDEPRINT_EXPORT NetworkScanner :
public TQWidget
33 NetworkScanner(
int port = 9100, TQWidget *parent = 0,
const char *name = 0 );
43 const TQPtrList<NetworkScanner::SocketInfo>* printerList();
46 void setTimeout(
int to );
47 TQString subnet()
const;
48 void setSubnet(
const TQString& );
51 bool checkPrinter(
const TQString&,
int );
58 void slotConnectionSuccess();
59 void slotConnectionFailed(
int );
61 void slotScanClicked();
62 void slotSettingsClicked();
71 class NetworkScannerPrivate;
72 NetworkScannerPrivate *d;
78 class NetworkScannerConfig :
public KDialogBase
83 NetworkScannerConfig(NetworkScanner *scanner,
const char *name = 0);
84 ~NetworkScannerConfig();
90 TQLineEdit *mask_, *tout_;
92 NetworkScanner *scanner_;