Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
sslsocket.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#include "sslsocket.h"
9
10#ifdef USE_HEART_SSL
11
12namespace QH {
13
14SslSocket::SslSocket(QObject *parent):
15 QSslSocket(parent) {
16
17 connect(this, QOverload<const QList<QSslError> &>::of(&QSslSocket::sslErrors),
18 this, [this](const QList<QSslError> & errors){
19 emit sslErrorsOcurred(this, errors);
20 }, Qt::DirectConnection);
21}
22
23SslSocket::~SslSocket() {
24 handleDisckonnetFromHost();
25}
26
27void SslSocket::handleDisckonnetFromHost() {
28 disconnectFromHost();
29}
30
31}
32#endif
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13