Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Runtime
Commits
c276bf4c
Commit
c276bf4c
authored
Apr 30, 2015
by
Sandro Knauß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ImapAclAttribute::operator==
copied from kdepim repo pimcommon/acl/imapaclattribute.* REVIEW: 123572
parent
334bf52e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
resources/shared/singlefileresource/imapaclattribute.cpp
resources/shared/singlefileresource/imapaclattribute.cpp
+7
-0
resources/shared/singlefileresource/imapaclattribute.h
resources/shared/singlefileresource/imapaclattribute.h
+1
-0
No files found.
resources/shared/singlefileresource/imapaclattribute.cpp
View file @
c276bf4c
...
...
@@ -152,3 +152,10 @@ void ImapAclAttribute::deserialize(const QByteArray &data)
mMyRights
=
KIMAP
::
Acl
::
rightsFromString
(
parts
.
at
(
2
));
}
}
bool
ImapAclAttribute
::
operator
==
(
const
ImapAclAttribute
&
other
)
const
{
return
(
oldRights
()
==
other
.
oldRights
())
&&
(
rights
()
==
other
.
rights
())
&&
(
myRights
()
==
other
.
myRights
());
}
resources/shared/singlefileresource/imapaclattribute.h
View file @
c276bf4c
...
...
@@ -46,6 +46,7 @@ public:
QByteArray
serialized
()
const
Q_DECL_OVERRIDE
;
void
deserialize
(
const
QByteArray
&
data
)
Q_DECL_OVERRIDE
;
bool
operator
==
(
const
ImapAclAttribute
&
other
)
const
;
private:
QMap
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>
mRights
;
QMap
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>
mOldRights
;
...
...
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