~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/Certificates/CertificateErrorDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2008  Remko Troncon
 
3
 * See COPYING file for the detailed license.
 
4
 */
 
5
 
 
6
#ifndef CERTIFICATEERRORDIALOG_H
 
7
#define CERTIFICATEERRORDIALOG_H
 
8
 
 
9
#include <QtCrypto>
 
10
#include <QString>
 
11
 
 
12
class QMessageBox;
 
13
class QPushButton;
 
14
 
 
15
class CertificateErrorDialog
 
16
{
 
17
        public:
 
18
                CertificateErrorDialog(const QString& title, const QString& host, const QCA::Certificate& cert, int result, QCA::Validity validity, const QString &domainOverride, QString &tlsOverrideDomain, QByteArray &tlsOverrideCert);
 
19
 
 
20
                QMessageBox* getMessageBox() {
 
21
                        return messageBox_;
 
22
                }
 
23
 
 
24
                int exec();
 
25
        
 
26
        private:
 
27
                QMessageBox* messageBox_;
 
28
                QPushButton* detailsButton_;
 
29
                QPushButton* continueButton_;
 
30
                QPushButton* cancelButton_;
 
31
                QPushButton* saveButton_;
 
32
                QCA::Certificate certificate_;
 
33
                int result_;
 
34
                QCA::Validity validity_;
 
35
                QString &tlsOverrideDomain_;
 
36
                QByteArray &tlsOverrideCert_;
 
37
                QString domainOverride_;
 
38
                QString host_;
 
39
};
 
40
 
 
41
#endif