sslloader.h 649 B

123456789101112131415161718192021222324252627282930
  1. #ifndef SSLLOADER_H
  2. #define SSLLOADER_H
  3. #include <QSslConfiguration>
  4. #include "configuration.h"
  5. #include "cppwebframework_global.h"
  6. CWF_BEGIN_NAMESPACE
  7. /**
  8. * @brief The SslLoader class is responsible for loading the SSL settings.
  9. */
  10. class CPPWEBFRAMEWORKSHARED_EXPORT SslLoader
  11. {
  12. Configuration configuration;
  13. public:
  14. /**
  15. * @brief SslLoader constructor requires a Configuration object.
  16. */
  17. SslLoader(Configuration configuration);
  18. /**
  19. * @brief Returns a QSslConfiguration. It will returns nullptr if it fails.
  20. */
  21. QSslConfiguration *getSslConfiguration() const;
  22. };
  23. CWF_END_NAMESPACE
  24. #endif // SSLLOADER_H