23 #ifndef KDSOAPSERVER_H 24 #define KDSOAPSERVER_H 26 #include "KDSoapServerGlobal.h" 27 #include <KDSoapClient/KDSoapMessage.h> 28 #include <QtNetwork/QTcpServer> 29 #include <QtNetwork/QSslConfiguration> 65 Q_DECLARE_FLAGS(Features,
Feature)
71 void setFeatures(Features features);
76 Features features() const;
98 void setPath(const QString &path);
103 QString path() const;
111 QString endPoint() const;
122 virtual QObject *createServerObject() = 0;
136 enum LogLevel { LogNothing, LogFaults, LogEveryCall };
149 void setLogLevel(LogLevel level);
153 LogLevel logLevel()
const;
160 void setLogFileName(
const QString &fileName);
165 QString logFileName()
const;
185 void setMaxConnections(
int sockets);
192 int maxConnections()
const;
202 static bool setExpectedSocketCount(
int sockets);
211 int numConnectedSockets()
const;
218 int totalConnectionCount()
const;
224 void resetTotalConnectionCount();
232 void setWsdlFile(
const QString &file,
const QString &pathInUrl);
237 QString wsdlFile()
const;
242 QString wsdlPathInUrl()
const;
244 #ifndef QT_NO_OPENSSL 248 QSslConfiguration sslConfiguration()
const;
254 void setSslConfiguration(
const QSslConfiguration &config);
274 void connectionRejected();
277 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) 278 void incomingConnection(qintptr socketDescriptor)
override;
280 void incomingConnection(
int socketDescriptor)
override;
284 friend class KDSoapServerSocket;
285 void log(
const QByteArray &text);
Definition: KDSoapServer.h:42
Definition: KDSoapMessage.h:41
Feature
Definition: KDSoapServer.h:59
Definition: KDSoapThreadPool.h:39