comparison ui/certificate.h @ 1288:265583011f24

(issue123) Add possibility to open native certificate dialog This is currently only implemented for windows.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 29 Sep 2014 13:12:58 +0200
parents 2a1aa9df8f11
children
comparison
equal deleted inserted replaced
1287:d3d66d43365f 1288:265583011f24
159 * @returns true if the base64 line of two certificates is equal. 159 * @returns true if the base64 line of two certificates is equal.
160 **/ 160 **/
161 friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) { 161 friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) {
162 return lhs.base64Line() == rhs.base64Line(); 162 return lhs.base64Line() == rhs.base64Line();
163 } 163 }
164
165 /** @brief Show the certificate in a native ui dialog.
166 *
167 * The dialog is external and handled by the OS on windows
168 * on GNU/Linux gcr-viewer is used.
169 *
170 * If parentWindow is not NULL it is used as a handle to the
171 * parent Window. Unused on GNU/Linux
172 *
173 * @returns true on success. false if no native dialog could be shown.
174 */
175 bool showNativeUI(void *parentWindow);
176
164 private: 177 private:
165 /** @brief Helper function to parse the details of a certificate **/ 178 /** @brief Helper function to parse the details of a certificate **/
166 void parseDetails(const QByteArray& cert); 179 void parseDetails(const QByteArray& cert);
167 180
168 bool mValid; 181 bool mValid;

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