Logo Search packages:      
Sourcecode: qtsmbstatus version File versions  Download package

ClientSocket Class Reference

List of all members.


Detailed Description

This class dialogs with server.

This class dialogs with client. (One object per client).

Date:
2007-07-05
Version:
1.1
Author:
Daniel Rocher
See also:
ClientSocket::command
Date:
2007-06-18
Version:
1.0
Author:
Daniel Rocher
See also:
Server
Parameters:
sock Socket number
parent pointer to parent for this object

Definition at line 39 of file clientsocket.h.


Public Slots

void socketConnectionClose ()

Signals

void SignalClosed ()
 Connection closed.
void SignalConnected ()
 Client connected.
void SignalErrorAuth ()
 Authentication error.
void SignalShortMessage (const QString &)
 Short messages for statusBar.

Public Member Functions

 ClientSocket (const int &sock, QObject *parent=0)
 ClientSocket (Q3ListView *mylistView, QObject *parent=0)
void connectionToServer (const QString &username, const QString &passwd)
void Disconnect ()

Static Public Attributes

static int compteur_objet = 0

Private Types

enum  command {
  auth_rq, auth_ack, end, kill_user,
  send_msg, smb_rq, smb_data, end_smb_rq,
  not_imp1, server_info, error_auth, error_command,
  error_obj, echo_request, echo_reply, auth_rq,
  auth_ack, end, kill_user, send_msg,
  smb_rq, smb_data, end_smb_rq, not_imp1,
  server_info, error_auth, error_command, error_obj,
  echo_request, echo_reply
}
enum  command {
  auth_rq, auth_ack, end, kill_user,
  send_msg, smb_rq, smb_data, end_smb_rq,
  not_imp1, server_info, error_auth, error_command,
  error_obj, echo_request, echo_reply, auth_rq,
  auth_ack, end, kill_user, send_msg,
  smb_rq, smb_data, end_smb_rq, not_imp1,
  server_info, error_auth, error_command, error_obj,
  echo_request, echo_reply
}

Private Slots

void add_lockedfile (const QString &, const QString &, const QString &, const QString &, const QString &, const QString &)
void add_share (const QString &, const QString &, const QString &)
void add_user (const QString &, const QString &, const QString &, const QString &, const QString &)
void AnalysisSmbDestroyed ()
void core (const Q3CString &rcv_txt)
void Exception ()
void InfoMachine ()
void InfoServer ()
void InfoService ()
void InfoUser ()
void ObjError (const QString &error_txt)
void readClient ()
void setSambaVersion (const QString &)
void slot_echo_timer ()
void slot_echo_timer ()
void slot_pam ()
void slot_smbstatus (const QStringList &)
void slot_timer ()
void slotDisconnectUser ()
void slotPopupMenu (Q3ListViewItem *, const QPoint &, int)
void slotSendMessage ()
void slotSendMessageAllUsers ()
void socketclosed ()
void socketconnected ()
void UnreachableHost ()

Private Member Functions

void AnalysisSmbstatus ()
void CmdAuthRq (const QString &texte)
void CmdKillUser (const QString &texte)
void CmdSendMsg (const QString &texte)
void CmdSmbRq ()
void core (const Q3CString &rcv_txt)
void infoserver (const QString &text)
void sendToClient (int cmd, const QString &inputArg1="", const QString &inputArg2="")
void sendToServer (int cmd, const QString &inputArg1="", const QString &inputArg2="")

Private Attributes

bool AuthUser
 if user authenticated
Q3ListViewItem * currentPopupMenuItem
int echo
QTimer * echo_timer
smbstatusInstanceSmbstatus
serveritem_server
QStringList ListSmbstatus
Q3ListView * listView
Q3PopupMenu * menu
QErrorMessage * msgError
PamThreadpamthread
QString passwd_login
bool permitDisconnectUser
 if client is authorized to disconnect user
bool permitSendMsg
 if client is authorized to send popup message
QSocketNotifier * sn_exception
QSocketNotifier * sn_read
int socket
ClientSSLsocketclient
Q3SocketDevice * socketdevice
SSL * ssl
bool ssl_connected
bool SSL_init
QTimer * timer
QString username_login

Static Private Attributes

static int TimoutTimerEcho = 30000
 Time between 2 echo request.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index