XX CMake Package
Loading...
Searching...
No Matches
XXSecureNetworkClient.h
Go to the documentation of this file.
1#ifndef XXSecureNetworkClientH
2#define XXSecureNetworkClientH
3
6
7#include <QSslConfiguration>
8
9namespace XX
10{
11 namespace SecureNetwork
12 {
15
17 {
18 Q_OBJECT
19 public:
20 Client(QObject* parent, bool directAccess = false);
21
22 public:
23 void connectToHost(const QString& hostName, const quint16& port);
25 bool setEncryptionWithPasswordFile(const QString& p12FileName, const QString& passwordFileName);
26 bool setEncryption(const QString& p12FileName, const QByteArray& password);
27 void setConfiguration(const QSslConfiguration& newSslConfiguration);
28 static QByteArray readPassword(const QString& passwordFileName);
29 const QSslConfiguration& getConfiguration() const;
30
31 private:
32 QSslConfiguration sslConfiguration;
33 };
34 } // namespace SecureNetwork
35} // namespace XX
36
37#endif // NOT XXSecureNetworkClientH
#define XXNETWORK_DECLSPEC
Definition XXNetworkExportDef.h:11
static QByteArray readPassword(const QString &passwordFileName)
bool setEncryptionWithPasswordFile(const QString &p12FileName, const QString &passwordFileName)
void connectToHost(const QString &hostName, const quint16 &port)
bool setEncryption(const QString &p12FileName, const QByteArray &password)
void setConfiguration(const QSslConfiguration &newSslConfiguration)
Client(QObject *parent, bool directAccess=false)
const QSslConfiguration & getConfiguration() const
bool directAccess
Definition XXSecureNetworkSocket.h:45
Socket(QObject *parent, QSslSocket *externalSocket=nullptr, bool directAccess=false)
Definition XXSecureNetworkServerInternal.h:11
Definition XXPopulatedAbstract.h:11