socket/qlocalsocket.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5QLocalSocket::QLocalSocket(QObject * parent) -
6 : QIODevice(*new QLocalSocketPrivate, parent) -
7{ -
8 QLocalSocketPrivate * const d = d_func(); -
9 d->init(); -
10}
executed: }
Execution Count:157
157
11 -
12 -
13 -
14 -
15QLocalSocket::~QLocalSocket() -
16{ -
17 close(); -
18 -
19 QLocalSocketPrivate * const d = d_func(); -
20 d->unixSocket.setParent(0); -
21 -
22}
executed: }
Execution Count:157
157
23QString QLocalSocket::serverName() const -
24{ -
25 const QLocalSocketPrivate * const d = d_func(); -
26 return d->serverName;
executed: return d->serverName;
Execution Count:15
15
27} -
28QString QLocalSocket::fullServerName() const -
29{ -
30 const QLocalSocketPrivate * const d = d_func(); -
31 return d->fullServerName;
executed: return d->fullServerName;
Execution Count:15
15
32} -
33 -
34 -
35 -
36 -
37 -
38 -
39QLocalSocket::LocalSocketState QLocalSocket::state() const -
40{ -
41 const QLocalSocketPrivate * const d = d_func(); -
42 return d->state;
executed: return d->state;
Execution Count:773
773
43} -
44 -
45 -
46 -
47bool QLocalSocket::isSequential() const -
48{ -
49 return true;
executed: return true;
Execution Count:305
305
50} -
51QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketError error) -
52{ -
53 switch (error) { -
54 case QLocalSocket::ConnectionRefusedError: -
55 debug << "QLocalSocket::ConnectionRefusedError"; -
56 break;
executed: break;
Execution Count:1
1
57 case QLocalSocket::PeerClosedError: -
58 debug << "QLocalSocket::PeerClosedError"; -
59 break;
never executed: break;
0
60 case QLocalSocket::ServerNotFoundError: -
61 debug << "QLocalSocket::ServerNotFoundError"; -
62 break;
never executed: break;
0
63 case QLocalSocket::SocketAccessError: -
64 debug << "QLocalSocket::SocketAccessError"; -
65 break;
never executed: break;
0
66 case QLocalSocket::SocketResourceError: -
67 debug << "QLocalSocket::SocketResourceError"; -
68 break;
never executed: break;
0
69 case QLocalSocket::SocketTimeoutError: -
70 debug << "QLocalSocket::SocketTimeoutError"; -
71 break;
never executed: break;
0
72 case QLocalSocket::DatagramTooLargeError: -
73 debug << "QLocalSocket::DatagramTooLargeError"; -
74 break;
never executed: break;
0
75 case QLocalSocket::ConnectionError: -
76 debug << "QLocalSocket::ConnectionError"; -
77 break;
never executed: break;
0
78 case QLocalSocket::UnsupportedSocketOperationError: -
79 debug << "QLocalSocket::UnsupportedSocketOperationError"; -
80 break;
never executed: break;
0
81 case QLocalSocket::UnknownSocketError: -
82 debug << "QLocalSocket::UnknownSocketError"; -
83 break;
never executed: break;
0
84 default: -
85 debug << "QLocalSocket::SocketError(" << int(error) << ')'; -
86 break;
never executed: break;
0
87 } -
88 return debug;
executed: return debug;
Execution Count:1
1
89} -
90 -
91QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketState state) -
92{ -
93 switch (state) { -
94 case QLocalSocket::UnconnectedState: -
95 debug << "QLocalSocket::UnconnectedState"; -
96 break;
executed: break;
Execution Count:1
1
97 case QLocalSocket::ConnectingState: -
98 debug << "QLocalSocket::ConnectingState"; -
99 break;
never executed: break;
0
100 case QLocalSocket::ConnectedState: -
101 debug << "QLocalSocket::ConnectedState"; -
102 break;
never executed: break;
0
103 case QLocalSocket::ClosingState: -
104 debug << "QLocalSocket::ClosingState"; -
105 break;
never executed: break;
0
106 default: -
107 debug << "QLocalSocket::SocketState(" << int(state) << ')'; -
108 break;
never executed: break;
0
109 } -
110 return debug;
executed: return debug;
Execution Count:1
1
111} -
112 -
113 -
114 -
115 -
116 -
117 -
118 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial