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
KAlarm
Commits
05e31168
Commit
05e31168
authored
Jul 24, 2019
by
David Jarvie
Browse files
Convert KMail serial number to use Akonadi Item ID instead
KMail identifies its emails by Akonadi Item ID now.
parent
3da314c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/alarmtext.cpp
View file @
05e31168
...
...
@@ -303,11 +303,6 @@ bool AlarmText::isTodo() const
return
d
->
mType
==
Private
::
Todo
;
}
unsigned
long
AlarmText
::
kmailSerialNumber
()
const
{
return
static_cast
<
unsigned
long
>
(
akonadiItemId
());
}
Akonadi
::
Item
::
Id
AlarmText
::
akonadiItemId
()
const
{
return
d
->
mAkonadiItemId
;
...
...
src/alarmtext.h
View file @
05e31168
...
...
@@ -158,14 +158,8 @@ public:
/** Return whether the instance contains the text of a todo. */
bool
isTodo
()
const
;
/** Return the kmail serial number of an email.
* @return serial number, or 0 if none.
* @deprecated Use akonadiItemId() instead
*/
KALARMCAL_DEPRECATED
unsigned
long
kmailSerialNumber
()
const
;
/** Return the Akonadi item ID of an email.
* @return
serial number
, or
0
if none.
* @return
Item ID
, or
-1
if none.
*/
Akonadi
::
Item
::
Id
akonadiItemId
()
const
;
...
...
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