Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Runtime
Commits
36c0f130
Commit
36c0f130
authored
Aug 17, 2020
by
Shashwat Jolly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logs while setting up items
parent
9223b950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
resources/etesync/calendartaskbasehandler.cpp
resources/etesync/calendartaskbasehandler.cpp
+10
-0
No files found.
resources/etesync/calendartaskbasehandler.cpp
View file @
36c0f130
...
...
@@ -41,11 +41,20 @@ CalendarTaskBaseHandler::CalendarTaskBaseHandler(EteSyncResource *resource) : Ba
void
CalendarTaskBaseHandler
::
getItemListFromEntries
(
std
::
vector
<
EteSyncEntryPtr
>
&
entries
,
Item
::
List
&
changedItems
,
Item
::
List
&
removedItems
,
Collection
&
collection
,
const
QString
&
journalUid
,
QString
&
prevUid
)
{
const
EteSyncJournalPtr
&
journal
=
mResource
->
getJournal
(
journalUid
);
if
(
!
journal
)
{
qCDebug
(
ETESYNC_LOG
)
<<
"SetupItems: Could not get journal"
;
mResource
->
cancelTask
(
i18n
(
"Could not get journal"
));
return
;
}
EteSyncCryptoManagerPtr
cryptoManager
=
etesync_journal_get_crypto_manager
(
journal
.
get
(),
mClientState
->
derived
(),
mClientState
->
keypair
());
QMap
<
QString
,
KCalendarCore
::
Incidence
::
Ptr
>
incidences
;
for
(
auto
&
entry
:
entries
)
{
if
(
!
entry
)
{
qCDebug
(
ETESYNC_LOG
)
<<
"SetupItems: Entry is null"
;
continue
;
}
EteSyncSyncEntryPtr
syncEntry
=
etesync_entry_get_sync_entry
(
entry
.
get
(),
cryptoManager
.
get
(),
prevUid
);
CharPtr
contentStr
(
etesync_sync_entry_get_content
(
syncEntry
.
get
()));
...
...
@@ -54,6 +63,7 @@ void CalendarTaskBaseHandler::getItemListFromEntries(std::vector<EteSyncEntryPtr
const
KCalendarCore
::
Incidence
::
Ptr
incidence
=
format
.
fromString
(
QStringFromCharPtr
(
contentStr
));
if
(
!
incidence
||
(
incidence
->
uid
()).
isEmpty
())
{
qCDebug
(
ETESYNC_LOG
)
<<
"Couldn't parse entry"
;
continue
;
}
...
...
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