diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-12-14 13:14:02 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-12-19 08:21:14 +0100 |
commit | 9c885a05430cf284512e0cb79fc2a996a294aa30 (patch) | |
tree | 932f6d91ff8e1f4fa049b0cdd80460c2102c8dee /include/unotools | |
parent | 9bf4d471928036cdc4c0c3f6e8d7a42ecdbd032a (diff) |
Read/write 'encrypt to self' bit
use some template functions to avoid duplicate code
Change-Id: Ia178ea3a0561e34e0431749262f5f8f1f49b4fe7
Reviewed-on: https://gerrit.libreoffice.org/46693
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-on: https://gerrit.libreoffice.org/46762
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/useroptions.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/unotools/useroptions.hxx b/include/unotools/useroptions.hxx index 946ba8d34c10..60c18df65ae2 100644 --- a/include/unotools/useroptions.hxx +++ b/include/unotools/useroptions.hxx @@ -47,7 +47,8 @@ enum class UserOptToken Apartment = 16, SigningKey = 17, EncryptionKey = 18, - LAST = EncryptionKey, + EncryptToSelf = 19, + LAST = EncryptToSelf, }; // class SvtUserOptions -------------------------------------------------- @@ -78,12 +79,14 @@ public: OUString GetEmail () const; OUString GetSigningKey () const; OUString GetEncryptionKey () const; + bool GetEncryptToSelf () const; OUString GetFullName () const; bool IsTokenReadonly (UserOptToken nToken) const; OUString GetToken (UserOptToken nToken) const; void SetToken (UserOptToken nToken, OUString const& rNewToken); + void SetBoolValue (UserOptToken nToken, bool bNewValue); private: class Impl; |