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

ClientSocket::ClientSocket ( Q3ListView *  mylistView,
QObject *  parent = 0 
)

Parameters:
mylistView pointer to listview
parent pointer to parent for this object

Definition at line 50 of file clientsocket.cpp.

References permitDisconnectUser, permitSendMsg, slot_echo_timer(), and slotPopupMenu().

                                                                     : QObject (parent)
{
      debugQt("Object ClientSocket : "+QString::number(++compteur_objet));
      permitDisconnectUser=false; // permit (or not) client to disconnect an user
      permitSendMsg=false; // permit (or not) client to send popup messages
      listView=mylistView;
      // create popup menu
      menu = new Q3PopupMenu( listView );
      // and connect it with listview
      connect(listView, SIGNAL( contextMenuRequested( Q3ListViewItem *, const QPoint& , int ) ), this, SLOT( slotPopupMenu( Q3ListViewItem *, const QPoint &, int ) ) );
      // interval for smbstatus request
      timer=new QTimer(this);

      // test if connection is not dead
      // reset timer if we receive data from server
      echo=0; // if echo > 2, disconnect
      echo_timer = new QTimer (this);

      msgError=new QErrorMessage();
      connect( echo_timer, SIGNAL(timeout()), this, SLOT(slot_echo_timer()) );
}


Generated by  Doxygen 1.6.0   Back to index