22 #ifndef KDSOAPSERVER_H
23 #define KDSOAPSERVER_H
25 #include "KDSoapServerGlobal.h"
26 #include <KDSoapClient/KDSoapMessage.h>
27 #include <QtNetwork/QTcpServer>
28 #include <QtNetwork/QSslConfiguration>
64 Q_DECLARE_FLAGS(Features, Feature)
70 void setFeatures(Features features);
75 Features features() const;
97 void setPath(const QString& path);
102 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);
280 void incomingConnection(
int socketDescriptor);
284 friend class KDSoapServerSocket;
285 void log(
const QByteArray& text);