diff options
author | Henry Castro <hcastro@collabora.com> | 2018-04-25 15:53:38 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2018-05-24 15:10:45 -0400 |
commit | 6ff069db62dc38fa9f37d84789266ac4fdf02ba2 (patch) | |
tree | 6dd8fd38c83de8c27a44f218b997e57a7483cee5 /common | |
parent | loleaflet: move cursors to images directory (diff) | |
download | online-6ff069db62dc38fa9f37d84789266ac4fdf02ba2.tar.gz online-6ff069db62dc38fa9f37d84789266ac4fdf02ba2.zip |
respond different logo brands when it has support
Change-Id: Icddc8b67a20fd829c90c3c5d8eb6942da9c5e74d
Reviewed-on: https://gerrit.libreoffice.org/53583
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/Crypto.cpp | 10 | ||||
-rw-r--r-- | common/Crypto.hpp | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/common/Crypto.cpp b/common/Crypto.cpp index 46ba05c0f7..7c1d000521 100644 --- a/common/Crypto.cpp +++ b/common/Crypto.cpp @@ -127,6 +127,16 @@ int SupportKey::validDaysRemaining() return days; } +DateTime SupportKey::expiry() const +{ + return _impl->_expiry; +} + +std::string SupportKey::data() const +{ + return _impl->_data; +} + #endif // ENABLE_SUPPORT_KEY /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/common/Crypto.hpp b/common/Crypto.hpp index 94b194cc22..079a4f7420 100644 --- a/common/Crypto.hpp +++ b/common/Crypto.hpp @@ -15,6 +15,9 @@ #include <memory> struct SupportKeyImpl; +namespace Poco { + class DateTime; +} class SupportKey { std::unique_ptr<SupportKeyImpl> _impl; @@ -28,6 +31,10 @@ public: /// How many days until key expires int validDaysRemaining(); + + Poco::DateTime expiry() const; + + std::string data() const; }; #endif |