simplesslerrorhandler.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. * for more details.
  13. */
  14. #ifndef SIMPLESSLERRORHANDLER_H
  15. #define SIMPLESSLERRORHANDLER_H
  16. #include "accountfwd.h"
  17. class QSslError;
  18. class QSslCertificate;
  19. namespace OCC {
  20. /**
  21. * @brief The SimpleSslErrorHandler class
  22. * @ingroup cmd
  23. */
  24. class SimpleSslErrorHandler : public OCC::AbstractSslErrorHandler
  25. {
  26. public:
  27. bool handleErrors(QList<QSslError> errors, const QSslConfiguration &conf, QList<QSslCertificate> *certs, OCC::AccountPtr) override;
  28. };
  29. }
  30. #endif // SIMPLESSLERRORHANDLER_H