diff ui/mainwindow.h @ 641:a7c3ab273d41 trustbridge-refactor

Some code cleanup.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 Jun 2014 17:40:40 +0200
parents 626507197360
children f65503c1833b
line wrap: on
line diff
--- a/ui/mainwindow.h	Tue Jun 24 17:07:49 2014 +0200
+++ b/ui/mainwindow.h	Tue Jun 24 17:40:40 2014 +0200
@@ -71,19 +71,12 @@
     void downloaderError(const QString &message, SSLConnection::ErrorCode error);
     /** @brief Trigger the appropiate action depending on the state */
     void messageClicked();
-    void showHelp();
-    void showAbout();
-    void showDetails(QListWidgetItem*);
-    void resizeButtons();
     void installerError(const QString& errMsg);
     void installerSuccess();
     void installCerts();
     void toggleInManual(bool state, const Certificate &cert);
     void removeFromManual(bool state, const Certificate &cert);
 
-    void saveAutoUpdate(int state);
-    void saveAutoStart(int state);
-
     void togglePages(int button);
     void toggleUpdatesNew();
     void toggleUpdatesRemove();
@@ -157,31 +150,6 @@
     void createContent();
     void loadCertificateList();
 
-    /** @brief Create a separator item for the certificate list.
-     *
-     * The item uses a SeparatorItemDelegate for layout and styling at the given
-     * index.
-     *
-     * @param[in] text  The text for the item.
-     * @param[in] index The index of the item.
-     *
-     * @return The new separator item.
-     */
-    QListWidgetItem* createSeparator(const QString &text, int index);
-
-    /** @brief Create a certificate list item for the list.
-     *
-     * The item uses a CertificateItemDelegate for layout and styling.
-     *
-     * @param[in] text   The certificate to display.
-     * @param[in] status The certificate status.
-     * @param[in] index  The index of the item.
-     *
-     * @return The new separator item.
-     */
-    QListWidgetItem* createListItem(const Certificate &certificate,
-        Certificate::Status status, int index);
-
     /* Are we running in tray mode ?*/
     const bool mTrayMode;
     /* The message currently shown at intervals */
@@ -207,25 +175,9 @@
      * base64lines with I:/R: prefix */
     QStringList mPreviouslyUnselected;
 
-    QListWidget *mCertListWidget;
-
-    QLabel *mSubjectCN;
-    QLabel *mSubjectO;
-    QLabel *mIssuerCN;
-    QLabel *mIssuerO;
-    QLabel *mValidFrom;
-    QLabel *mValidTo;
-    QLabel *mFingerprint;
-
     QLabel *mCurrentListDate;
     QLabel *mNewListDate;
 
-    QCheckBox *mAutoUpdateOption;
-    QCheckBox *mAutoStartOption;
-
-    QPushButton *installButton;
-    QPushButton *quitButton;
-
     QButtonGroup *mButtonGroup;
     QScrollArea *mUpdatesPanel;
     QWidget *mUpdatesWidget;

http://wald.intevation.org/projects/trustbridge/