Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
542c8c92
Commit
542c8c92
authored
Mar 05, 2020
by
Don C. Bigler
Committed by
Stefan Brüns
Nov 09, 2020
Browse files
BUGFIX: Fix builds for Qt < 5.11.
parent
6b68348b
Changes
1
Hide whitespace changes
Inline
Side-by-side
smb/kdsoap-ws-discovery-client/src/wsdiscoveryclient.cpp
View file @
542c8c92
...
...
@@ -73,7 +73,11 @@ void WSDiscoveryClient::sendProbe(const QList<KDQName> &typeList, const QList<QU
KDSoapMessageAddressingProperties
addressing
;
addressing
.
setAddressingNamespace
(
KDSoapMessageAddressingProperties
::
Addressing200408
);
addressing
.
setAction
(
QStringLiteral
(
"http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe"
));
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
addressing
.
setMessageID
(
QStringLiteral
(
"urn:uuid:"
)
+
QUuid
::
createUuid
().
toString
(
QUuid
::
WithoutBraces
));
#else
addressing
.
setMessageID
(
QStringLiteral
(
"urn:uuid:"
)
+
QUuid
::
createUuid
().
toString
().
remove
(
"{"
).
remove
(
"}"
));
#endif
addressing
.
setDestination
(
QStringLiteral
(
"urn:schemas-xmlsoap-org:ws:2005:04:discovery"
));
addressing
.
setReplyEndpointAddress
(
KDSoapMessageAddressingProperties
::
predefinedAddressToString
(
KDSoapMessageAddressingProperties
::
Anonymous
));
message
.
setMessageAddressingProperties
(
addressing
);
...
...
@@ -102,7 +106,11 @@ void WSDiscoveryClient::sendResolve(const QString &endpointReferenceString)
KDSoapMessageAddressingProperties
addressing
;
addressing
.
setAddressingNamespace
(
KDSoapMessageAddressingProperties
::
Addressing200408
);
addressing
.
setAction
(
QStringLiteral
(
"http://schemas.xmlsoap.org/ws/2005/04/discovery/Resolve"
));
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
addressing
.
setMessageID
(
QStringLiteral
(
"urn:uuid:"
)
+
QUuid
::
createUuid
().
toString
(
QUuid
::
WithoutBraces
));
#else
addressing
.
setMessageID
(
QStringLiteral
(
"urn:uuid:"
)
+
QUuid
::
createUuid
().
toString
().
remove
(
"{"
).
remove
(
"}"
));
#endif
addressing
.
setDestination
(
QStringLiteral
(
"urn:schemas-xmlsoap-org:ws:2005:04:discovery"
));
addressing
.
setReplyEndpointAddress
(
KDSoapMessageAddressingProperties
::
predefinedAddressToString
(
KDSoapMessageAddressingProperties
::
Anonymous
));
message
.
setMessageAddressingProperties
(
addressing
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment