Mercurial > trustbridge
view ui/administratorwindow.h @ 457:c17c1da7108d
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 14:00:38 +0200 |
parents | 6dec8101793c |
children | 5200b8e9b2ae |
line wrap: on
line source
/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=2) * and comes with ABSOLUTELY NO WARRANTY! * See LICENSE.txt for details. */ #ifndef ADMINSTRATORWINDOW_H #define ADMINSTRATORWINDOW_H /** * @file administratorwindow.h * @brief Administrator UI controller */ #include <QMainWindow> #include <QSettings> #include <QMenuBar> #include <QTableView> #include <QPushButton> #include "certificatelist.h" #include "certificatetablemodel.h" class QMenu; class QAction; class AdministratorWindow : public QMainWindow { Q_OBJECT public: AdministratorWindow(); /** @brief obtain a const reference to the certificate List * @returns the current certificatelist */ const CertificateList& certList() const {return mCertList;} /** @brief get the settings for this application * @returns a reference the applications settings object */ QSettings* settings() {return &mSettings;} private slots: void createInstaller(); void showAbout(); void loadCertificateFile(); void saveCertificateFile(); void addCertificates(); void removeCertificates(); void clickedCertificate(const QModelIndex&); private: void createActions(); void createMenuBar(); void createContent(); void loadCertificateTable(); void addToCertificateTable(const QList<Certificate> &certs); QSettings mSettings; QMenuBar *menuBar; QTableView *certificateView; CertificateList mCertList; CertificateTabelModel *certificateModel; QPushButton *saveButton; QPushButton *loadButton; QPushButton *addButton; QPushButton *removeButton; }; #endif // ADMINSTRATORWINDOW_H