Qt 4.8
Classes | Functions
qlocalsocket.h File Reference
#include <QtCore/qiodevice.h>
#include <QtNetwork/qabstractsocket.h>
#include <QtCore/qdebug.h>

Go to the source code of this file.

Classes

class  QLocalSocket
 The QLocalSocket class provides a local socket. More...
 

Functions

Q_NETWORK_EXPORT QDebug operator<< (QDebug, QLocalSocket::LocalSocketError)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug, QLocalSocket::LocalSocketState)
 

Function Documentation

◆ operator<<() [1/2]

Definition at line 500 of file qlocalsocket.cpp.

501 {
502  switch (error) {
504  debug << "QLocalSocket::ConnectionRefusedError";
505  break;
507  debug << "QLocalSocket::PeerClosedError";
508  break;
510  debug << "QLocalSocket::ServerNotFoundError";
511  break;
513  debug << "QLocalSocket::SocketAccessError";
514  break;
516  debug << "QLocalSocket::SocketResourceError";
517  break;
519  debug << "QLocalSocket::SocketTimeoutError";
520  break;
522  debug << "QLocalSocket::DatagramTooLargeError";
523  break;
525  debug << "QLocalSocket::ConnectionError";
526  break;
528  debug << "QLocalSocket::UnsupportedSocketOperationError";
529  break;
531  debug << "QLocalSocket::UnknownSocketError";
532  break;
533  default:
534  debug << "QLocalSocket::SocketError(" << int(error) << ')';
535  break;
536  }
537  return debug;
538 }
#define error(msg)

◆ operator<<() [2/2]

Definition at line 540 of file qlocalsocket.cpp.

541 {
542  switch (state) {
544  debug << "QLocalSocket::UnconnectedState";
545  break;
547  debug << "QLocalSocket::ConnectingState";
548  break;
550  debug << "QLocalSocket::ConnectedState";
551  break;
553  debug << "QLocalSocket::ClosingState";
554  break;
555  default:
556  debug << "QLocalSocket::SocketState(" << int(state) << ')';
557  break;
558  }
559  return debug;
560 }