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 Add-ons
Commits
a9278353
Commit
a9278353
authored
May 29, 2016
by
Daniel Vrátil
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event less chattier debug output
parent
c53f8e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
plugins/plasma/pimeventsplugin/pimeventsplugin.cpp
plugins/plasma/pimeventsplugin/pimeventsplugin.cpp
+11
-11
No files found.
plugins/plasma/pimeventsplugin/pimeventsplugin.cpp
View file @
a9278353
...
...
@@ -35,8 +35,6 @@
#include <QSet>
#define TRACE_RESULTS
QDebug
operator
<<
(
QDebug
dbg
,
const
CalendarEvents
::
EventData
&
data
)
{
dbg
.
nospace
()
<<
data
.
title
()
<<
" (UID "
<<
data
.
uid
()
<<
"), "
...
...
@@ -78,30 +76,32 @@ void PimEventsPlugin::loadEventsForDateRange(const QDate &startDate, const QDate
mStart
=
startDate
;
mEnd
=
endDate
;
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"Requested range"
<<
startDate
<<
endDate
;
int
eventsCount
=
0
,
eventDataCount
=
0
;
{
EventDataVisitor
visitor
(
mCalendar
,
startDate
,
endDate
);
const
KCalCore
::
Event
::
List
events
=
mCalendar
->
events
(
startDate
,
endDate
);
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Found"
<<
events
.
count
()
<<
"events"
;
eventsCount
=
events
.
count
();
if
(
visitor
.
act
(
events
))
{
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Generated"
<<
visitor
.
results
().
count
()
<<
"EventData"
;
eventDataCount
=
visitor
.
results
().
count
();
Q_EMIT
dataReady
(
visitor
.
results
());
}
else
{
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Generated 0 EventData"
;
}
}
int
todosCount
=
0
,
todoDataCount
=
0
;
{
EventDataVisitor
visitor
(
mCalendar
,
startDate
,
endDate
);
const
KCalCore
::
Todo
::
List
todos
=
mCalendar
->
todos
(
startDate
,
endDate
);
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Found"
<<
todos
.
count
()
<<
"todos"
;
todosCount
=
todos
.
count
();
if
(
visitor
.
act
(
todos
))
{
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Generated"
<<
visitor
.
results
().
count
()
<<
"EventData"
;
todoDataCount
=
visitor
.
results
().
count
();
Q_EMIT
dataReady
(
visitor
.
results
());
}
else
{
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"
\t
Generated 0 EventData"
;
}
}
qCDebug
(
PIMEVENTSPLUGIN_LOG
)
<<
"Range:"
<<
startDate
.
toString
(
Qt
::
ISODate
)
<<
"-"
<<
endDate
.
toString
(
Qt
::
ISODate
)
<<
"Events:"
<<
eventsCount
<<
"EventData:"
<<
eventDataCount
<<
"Todos:"
<<
todosCount
<<
"TodoData:"
<<
todoDataCount
;
}
void
PimEventsPlugin
::
calendarIncidenceAdded
(
const
KCalCore
::
Incidence
::
Ptr
&
incidence
)
...
...
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