1/*
2 * Copyright (C) 2015 by nocteau
3 * Copyright (C) 2015 by Daniel Molkentin <danimo@owncloud.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16#ifndef ADDCERTIFICATEDIALOG_H
17#define ADDCERTIFICATEDIALOG_H
18
19#include <QDialog>
20#include <QString>
21
22namespace OCC {
23
24namespace Ui {
25 class AddCertificateDialog;
26}
27
28/**
29 * @brief The AddCertificateDialog class
30 * @ingroup gui
31 */
32class AddCertificateDialog : public QDialog
33{
34 Q_OBJECT
35
36public:
37 explicit AddCertificateDialog(QWidget *parent = 0);
38 ~AddCertificateDialog();
39 QString getCertificatePath();
40 QString getCertificatePasswd();
41 void showErrorMessage(const QString message);
42 void reinit();
43
44private slots:
45 void on_pushButtonBrowseCertificate_clicked();
46
47private:
48 Ui::AddCertificateDialog *ui;
49};
50
51} //End namespace OCC
52
53#endif // ADDCERTIFICATEDIALOG_H
54