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 01:25:48 +0100 |
commit | 5c66c0711286bcfa9d3ab4a87777c2af9e1c25d9 (patch) | |
tree | fa8a93602c18c60984f9e4aee7afb06fc15d4148 /include | |
parent | df4fac1dbce087bbd01bbec242b93c72edcef74b (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>
Diffstat (limited to 'include')
-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; |