comparison ui/mainwindow.h @ 377:e3f825a7257e

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 12:34:04 +0200
parents 9e38a4bcd44e
children 3be838c3e4d8
comparison
equal deleted inserted replaced
376:9731d28b95af 377:e3f825a7257e
43 BeforeDownload, 43 BeforeDownload,
44 NewListAvailable, 44 NewListAvailable,
45 NewSoftwareAvailable, 45 NewSoftwareAvailable,
46 TransferError 46 TransferError
47 }; 47 };
48
49 CurrentState getState() {return mCurState;} 48 CurrentState getState() {return mCurState;}
50 void setState(CurrentState state) {mCurState = state;} 49 void setState(CurrentState state) {mCurState = state;}
51 50
52 private slots: 51 private slots:
53 void showMessage(); 52 void showMessage();
64 void showAbout(); 63 void showAbout();
65 void showDetails(QListWidgetItem*); 64 void showDetails(QListWidgetItem*);
66 void resizeButtons(); 65 void resizeButtons();
67 void installerError(const QString& errMsg); 66 void installerError(const QString& errMsg);
68 void installCerts(); 67 void installCerts();
68
69 /** @brief saves the currently unselected certificates
70 *
71 * This creates / updates a qsettings section that
72 * [unselected] that contains the certificates that
73 * were unselected previously.
74 *
75 * Unselected are certificates that are unchecked
76 * in the certListWidget
77 *
78 * Returns false on error.
79 */
80 bool saveUnselectedCertificates();
81
82 /** @brief loads previously unselected certificates from settings
83 *
84 * The certificates are strored in the list mPreviouslyUnselected.
85 *
86 * On error mPreviouslyUnselected is empty after this call.
87 */
88 void loadUnselectedCertificates();
69 89
70 private: 90 private:
71 /** @brief check the integrity of available files. 91 /** @brief check the integrity of available files.
72 * 92 *
73 * Do not use this as a trust check as this only works on 93 * Do not use this as a trust check as this only works on
98 QAction *mCheckUpdates; 118 QAction *mCheckUpdates;
99 QAction *mQuitAction; 119 QAction *mQuitAction;
100 CurrentState mCurState; 120 CurrentState mCurState;
101 QMenuBar *mMenuBar; 121 QMenuBar *mMenuBar;
102 122
123 /* The current list that should be installed */
103 CertificateList mListToInstall; 124 CertificateList mListToInstall;
125 /* Previously made "unselect" choices in the form of
126 * base64lines with I:/R: prefix */
127 QStringList mPreviouslyUnselected;
104 128
105 QListWidget *mCertListWidget; 129 QListWidget *mCertListWidget;
106 QTextEdit *certificateDetails; 130 QTextEdit *certificateDetails;
107 QPushButton *installButton; 131 QPushButton *installButton;
108 QPushButton *quitButton; 132 QPushButton *quitButton;

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