MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), ssl(new SSLHelper) { setAcceptDrops(true); ui->setupUi(this); connect(ui->pushButton, SIGNAL( clicked() ), this, SLOT(startDiagnosis())); connect(ssl, SIGNAL(logging()), this, SLOT(addLog())); connect(ui->refreshButton, SIGNAL( clicked() ), this, SLOT(refreshCAs())); connect(ssl, SIGNAL(addCA(string,string)), this, SLOT(addToolboxItem(string,string))); connect(ui->dumpcertsButton, SIGNAL( clicked()), this, SLOT(dumpCerts())); connect(ui->clearlogButton, SIGNAL( clicked()), this, SLOT(clearLog())); refreshCAs(); ui->toolBox->setAcceptDrops(true); connect(ui->toolBox, SIGNAL(dropCert(string)), this, SLOT(addCert(string))); connect(ssl, SIGNAL(verifiedStatus(bool)), this, SLOT(verified(bool))); connect(ui->sendLog, SIGNAL(clicked()), this, SLOT(emailLog())); }
bool KSSLSigners::addCA(KSSLCertificate& cert, bool ssl, bool email, bool code) const { return addCA(cert.toString(), ssl, email, code); }