Mercurial > trustbridge
comparison ui/mainwindow.h @ 559:dd8a295d5b4d
Add framework for mainwindow testing
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 22 May 2014 10:20:45 +0000 |
parents | 15121735805e |
children | aee3eb10bbba |
comparison
equal
deleted
inserted
replaced
558:bde15f68942b | 559:dd8a295d5b4d |
---|---|
76 void resizeButtons(); | 76 void resizeButtons(); |
77 void installerError(const QString& errMsg); | 77 void installerError(const QString& errMsg); |
78 void installerSuccess(); | 78 void installerSuccess(); |
79 void installCerts(); | 79 void installCerts(); |
80 | 80 |
81 void saveAutoUpdate(int state); | |
82 void saveAutoStart(int state); | |
83 | |
84 /** @brief get the last modified date on the download server for | |
85 * the current version. | |
86 * | |
87 * After the initial installation this function can be used to | |
88 * determine the DateTime that corresponds to the currently installed | |
89 * version on the download server. | |
90 * | |
91 * Calls setLastModifiedSWDate on success. Otherwise downloaderError | |
92 * is triggered. */ | |
93 void getLastModForCurrentVersion(); | |
94 | |
95 /** @brief set the last modified software date/time | |
96 * | |
97 * The last modifiedSWDate is the corresponding last modified | |
98 * timestamp from the download server vor the currently installed version. | |
99 */ | |
100 void setLastModifiedSWDate(const QDateTime &date); | |
101 | |
102 /** @brief saves the currently unselected certificates | |
103 * | |
104 * This creates / updates a qsettings section that | |
105 * [unselected] that contains the certificates that | |
106 * were unselected previously. | |
107 * | |
108 * Unselected are certificates that are unchecked | |
109 * in the certListWidget | |
110 * | |
111 * Returns false on error. | |
112 */ | |
113 bool saveUnselectedCertificates(); | |
114 | |
115 /** @brief loads previously unselected certificates from settings | |
116 * | |
117 * The certificates are strored in the list mPreviouslyUnselected. | |
118 * | |
119 * On error mPreviouslyUnselected is empty after this call. | |
120 */ | |
121 void loadUnselectedCertificates(); | |
122 | |
123 protected slots: | |
124 /** @brief cleanup and close the main window | |
125 * | |
126 * Perform a clean exit (saving state etc.) and close | |
127 * the application */ | |
128 void closeApp(); | |
129 | |
81 /* @brief Execute the file fileName to install the softwareupdate. | 130 /* @brief Execute the file fileName to install the softwareupdate. |
82 * | 131 * |
83 * Once the installer process is started this function terminates | 132 * Once the installer process is started this function terminates |
84 * the application. */ | 133 * the application. */ |
85 void installNewSW(const QString& fileName, const QDateTime& modDate); | 134 void installNewSW(const QString& fileName, const QDateTime& modDate); |
86 | |
87 void saveAutoUpdate(int state); | |
88 void saveAutoStart(int state); | |
89 | |
90 /** @brief get the last modified date on the download server for | |
91 * the current version. | |
92 * | |
93 * After the initial installation this function can be used to | |
94 * determine the DateTime that corresponds to the currently installed | |
95 * version on the download server. | |
96 * | |
97 * Calls setLastModifiedSWDate on success. Otherwise downloaderError | |
98 * is triggered. */ | |
99 void getLastModForCurrentVersion(); | |
100 | |
101 /** @brief set the last modified software date/time | |
102 * | |
103 * The last modifiedSWDate is the corresponding last modified | |
104 * timestamp from the download server vor the currently installed version. | |
105 */ | |
106 void setLastModifiedSWDate(const QDateTime &date); | |
107 | |
108 /** @brief saves the currently unselected certificates | |
109 * | |
110 * This creates / updates a qsettings section that | |
111 * [unselected] that contains the certificates that | |
112 * were unselected previously. | |
113 * | |
114 * Unselected are certificates that are unchecked | |
115 * in the certListWidget | |
116 * | |
117 * Returns false on error. | |
118 */ | |
119 bool saveUnselectedCertificates(); | |
120 | |
121 /** @brief loads previously unselected certificates from settings | |
122 * | |
123 * The certificates are strored in the list mPreviouslyUnselected. | |
124 * | |
125 * On error mPreviouslyUnselected is empty after this call. | |
126 */ | |
127 void loadUnselectedCertificates(); | |
128 | |
129 void closeApp(); | |
130 | 135 |
131 private: | 136 private: |
132 /** @brief check the integrity of available files. | 137 /** @brief check the integrity of available files. |
133 * | 138 * |
134 * Do not use this as a trust check as this only works on | 139 * Do not use this as a trust check as this only works on |