Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Mime
Commits
e469be71
Commit
e469be71
authored
Sep 28, 2021
by
Laurent Montel
😁
Browse files
Add ==operator
parent
d440a082
Pipeline
#83146
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/addressattribute.cpp
View file @
e469be71
...
...
@@ -122,6 +122,11 @@ bool AddressAttribute::deliveryStatusNotification() const
return
d
->
mDSN
;
}
bool
AddressAttribute
::
operator
==
(
const
AddressAttribute
&
other
)
const
{
return
d
->
mDSN
==
other
.
deliveryStatusNotification
()
&&
d
->
mBcc
==
other
.
bcc
()
&&
d
->
mTo
==
other
.
to
()
&&
d
->
mCc
==
other
.
cc
()
&&
d
->
mFrom
==
other
.
from
();
}
void
AddressAttribute
::
setDeliveryStatusNotification
(
bool
b
)
{
d
->
mDSN
=
b
;
...
...
src/addressattribute.h
View file @
e469be71
...
...
@@ -89,6 +89,8 @@ public:
void
setDeliveryStatusNotification
(
bool
b
);
Q_REQUIRED_RESULT
bool
deliveryStatusNotification
()
const
;
bool
operator
==
(
const
AddressAttribute
&
other
)
const
;
private:
class
Private
;
Private
*
const
d
;
...
...
Write
Preview
Supports
Markdown
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