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

QString server::ViewInfoService ( Q3ListViewItem *  Item  ) 

Return service informations (locked file or share)

See also:
ClientSocket::InfoService

TypeService

Definition at line 248 of file server.cpp.

References service::dateopen, service::denymode, service::filename, service::oplock, service::pid, service::rw, service::share, and service::TypeOfService.

Referenced by ClientSocket::InfoService().

{
      debugQt("server::ViewInfoService()");
      QString message;
      service * myItem = dynamic_cast<service *>(Item);
      if (myItem)
      {
            // if a locked file or share
            switch (myItem->TypeOfService)
            {
                  case Tshare: // partage
                        message="<hr>Service: <i>"+
                        myItem->share+"</i><br><br>Date: <i>"+
                        myItem->dateopen+"</i><br><br>PID: <i>"+
                        myItem->pid+"</i><br><hr>";
                        break;
                  case Tlockedfile: // fichier ouvert
                        message = "<hr>File: <i>"+
                        myItem->filename+"</i><br><br>Date: <i>"+
                        myItem->dateopen+"</i><br><br>DenyMode: <i>"+
                        myItem->denymode+"</i><br><br>R/W: <i>"+
                        myItem->rw+"</i><br><br>"+"Oplock: <i>"+
                        myItem->oplock+"</i><br><br>"+"PID: <i>"+
                        myItem->pid+"</i><br><hr>";
                        break;
            }
      }
      return message;
}


Generated by  Doxygen 1.6.0   Back to index