Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/certificate.h Mon Sep 29 13:02:41 2014 +0200 +++ b/ui/certificate.h Mon Sep 29 13:12:58 2014 +0200 @@ -161,6 +161,19 @@ friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) { return lhs.base64Line() == rhs.base64Line(); } + + /** @brief Show the certificate in a native ui dialog. + * + * The dialog is external and handled by the OS on windows + * on GNU/Linux gcr-viewer is used. + * + * If parentWindow is not NULL it is used as a handle to the + * parent Window. Unused on GNU/Linux + * + * @returns true on success. false if no native dialog could be shown. + */ + bool showNativeUI(void *parentWindow); + private: /** @brief Helper function to parse the details of a certificate **/ void parseDetails(const QByteArray& cert);