23 #include <tdelistview.h>
28 class SmbView :
public TDEListView
32 SmbView(TQWidget *parent = 0,
const char *name = 0);
35 void setLoginInfos(
const TQString& login,
const TQString& password);
36 void setOpen(TQListViewItem*,
bool);
41 void printerSelected(
const TQString& work,
const TQString& server,
const TQString& printer);
45 void startProcess(
int);
48 void processServers();
52 void slotReceivedStdout(TDEProcess*,
char*,
int);
53 void slotProcessExited(TDEProcess*);
54 void slotSelectionChanged(TQListViewItem*);
57 enum State { GroupListing, ServerListing, ShareListing, Idle };
59 TQListViewItem *m_current;
62 TQString m_login, m_password;
63 KTempFile *m_passwdFile;
64 TQString m_wins_server;