Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
819c3e02
Commit
819c3e02
authored
May 19, 2016
by
Daniel Vrátil
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recipient: allow storing GPG key and crypto status per recipient
parent
06884f23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
messagecomposer/src/recipient/recipient.cpp
messagecomposer/src/recipient/recipient.cpp
+23
-1
messagecomposer/src/recipient/recipient.h
messagecomposer/src/recipient/recipient.h
+9
-0
No files found.
messagecomposer/src/recipient/recipient.cpp
View file @
819c3e02
...
...
@@ -34,13 +34,15 @@ class MessageComposer::RecipientPrivate
public:
RecipientPrivate
(
const
QString
&
email
,
Recipient
::
Type
type
)
:
mEmail
(
email
),
mEncryptionAction
(
Kleo
::
Impossible
),
mType
(
type
)
{
}
QString
mEmail
;
QString
mName
;
Kleo
::
Action
mEncryptionAction
;
GpgME
::
Key
mKey
;
MessageComposer
::
Recipient
::
Type
mType
;
};
...
...
@@ -134,3 +136,23 @@ QStringList Recipient::allTypeLabels()
types
.
append
(
typeLabel
(
Bcc
));
return
types
;
}
GpgME
::
Key
Recipient
::
key
()
const
{
return
d
->
mKey
;
}
void
Recipient
::
setKey
(
const
GpgME
::
Key
&
key
)
{
d
->
mKey
=
key
;
}
Kleo
::
Action
MessageComposer
::
Recipient
::
encryptionAction
()
const
{
return
d
->
mEncryptionAction
;
}
void
MessageComposer
::
Recipient
::
setEncryptionAction
(
const
Kleo
::
Action
action
)
{
d
->
mEncryptionAction
=
action
;
}
messagecomposer/src/recipient/recipient.h
View file @
819c3e02
...
...
@@ -29,6 +29,9 @@
#include <Libkdepim/MultiplyingLine>
#include <gpgme++/key.h>
#include <libkleo/enum.h>
#include <QString>
#include <QSharedPointer>
namespace
MessageComposer
...
...
@@ -65,6 +68,12 @@ public:
static
QString
typeLabel
(
Type
type
);
static
QStringList
allTypeLabels
();
void
setEncryptionAction
(
const
Kleo
::
Action
action
);
Kleo
::
Action
encryptionAction
()
const
;
void
setKey
(
const
GpgME
::
Key
&
key
);
GpgME
::
Key
key
()
const
;
private:
RecipientPrivate
*
const
d
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment