MagicSmoke  $VERSION$
sslexception.h
Go to the documentation of this file.
1 //
2 // C++ Interface: sslexception
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2009-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_SSLEXCEPTION_H
14 #define MAGICSMOKE_SSLEXCEPTION_H
15 
16 #include <QByteArray>
17 #include <QList>
18 #include <QMap>
19 #include <QPair>
20 #include <QSslCertificate>
21 #include <QSslError>
22 #include <QString>
23 
24 class QWidget;
25 
26 #ifndef MSIFACE_EXPORT
27 #define MSIFACE_EXPORT Q_DECL_IMPORT
28 #endif
29 
32 {
33  public:
35  MSslExceptions(QString path);
36 
38  void savesslexcept();
40  bool checksslexcept(const QList<QSslError>&);
41 
43  QList<QPair<QSslCertificate,int> > nonFatalExceptions()const{return sslexcept;}
44 
46  QList<QPair<QSslCertificate,int> > collectedExceptions()const{return sslrecord;}
47 
49  void clear();
50 
52  void clearRecorded(){sslrecord.clear();}
53 
55  void acceptRecorded();
56 
57  private:
58  QList<QPair<QSslCertificate,int> > sslexcept,sslrecord;
59  QString path;
60 };
61 
62 #endif
QList< QPair< QSslCertificate, int > > nonFatalExceptions() const
returns the current list of acceptable exceptions
Definition: sslexception.h:43
Helper class: stores and compares SSL-Exceptions.
Definition: sslexception.h:31
QList< QPair< QSslCertificate, int > > collectedExceptions() const
returns the list of collected exceptions
Definition: sslexception.h:46
void clearRecorded()
clears the list of recorded exceptions
Definition: sslexception.h:52
#define MSIFACE_EXPORT
Definition: sslexception.h:27