Skip to content
GitLab
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
fb5ab431
Commit
fb5ab431
authored
Dec 14, 2014
by
Laurent Montel
Browse files
Use qCDebug
parent
8d4859d2
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
fb5ab431
...
...
@@ -4,6 +4,7 @@ add_definitions( -DQT_NO_CAST_TO_ASCII )
########### next target ###############
set
(
kalarmcal_LIB_SRCS
kalarmcal_debug.cpp
kacalendar.cpp
karecurrence.cpp
alarmtext.cpp
...
...
src/collectionattribute.cpp
View file @
fb5ab431
...
...
@@ -22,7 +22,7 @@
#include
"collectionattribute.h"
#include
<q
debug.h
>
#include
"kalarmcal_
debug.h
"
namespace
KAlarmCal
{
...
...
@@ -186,13 +186,13 @@ QByteArray CollectionAttribute::serialized() const
+
QByteArray
::
number
(
d
->
mBackgroundColour
.
green
())
+
' '
+
QByteArray
::
number
(
d
->
mBackgroundColour
.
blue
())
+
' '
+
QByteArray
::
number
(
d
->
mBackgroundColour
.
alpha
());
qDebug
()
<<
v
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
v
;
return
v
;
}
void
CollectionAttribute
::
deserialize
(
const
QByteArray
&
data
)
{
qDebug
()
<<
data
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
data
;
// Set default values
d
->
mEnabled
=
CalEvent
::
EMPTY
;
...
...
src/compatibilityattribute.cpp
View file @
fb5ab431
...
...
@@ -22,7 +22,7 @@
#include
"compatibilityattribute.h"
#include
<q
debug.h
>
#include
"kalarmcal_
debug.h
"
namespace
KAlarmCal
{
...
...
@@ -104,13 +104,13 @@ QByteArray CompatibilityAttribute::serialized() const
{
const
QByteArray
v
=
QByteArray
::
number
(
d
->
mCompatibility
)
+
' '
+
QByteArray
::
number
(
d
->
mVersion
);
qDebug
()
<<
v
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
v
;
return
v
;
}
void
CompatibilityAttribute
::
deserialize
(
const
QByteArray
&
data
)
{
qDebug
()
<<
data
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
data
;
// Set default values
d
->
mCompatibility
=
KACalendar
::
Incompatible
;
...
...
src/eventattribute.cpp
View file @
fb5ab431
...
...
@@ -21,7 +21,7 @@
*/
#include
"eventattribute.h"
#include
"kalarmcal_debug.h"
#include
<QList>
#include
<QByteArray>
...
...
@@ -85,13 +85,13 @@ EventAttribute *EventAttribute::clone() const
QByteArray
EventAttribute
::
serialized
()
const
{
const
QByteArray
v
=
QByteArray
::
number
(
d
->
mCommandError
);
qDebug
()
<<
v
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
v
;
return
v
;
}
void
EventAttribute
::
deserialize
(
const
QByteArray
&
data
)
{
qDebug
()
<<
data
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
data
;
// Set default values
d
->
mCommandError
=
KAEvent
::
CMD_NO_ERROR
;
...
...
src/kacalendar.cpp
View file @
fb5ab431
...
...
@@ -34,7 +34,7 @@
#include
<kmessagebox.h>
#include
<klocalizedstring.h>
#include
<q
debug.h
>
#include
"kalarmcal_
debug.h
"
#include
<QMap>
#include
<QFile>
...
...
@@ -118,9 +118,9 @@ int updateVersion(const FileStorage::Ptr &fileStorage, QString &versionString)
if
(
isUTC
(
localFile
))
{
ver
=
-
version
;
}
qDebug
()
<<
"KAlarm version 0.5.7 ("
<<
(
ver
<
0
?
""
:
"non-"
)
<<
"UTC)"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"KAlarm version 0.5.7 ("
<<
(
ver
<
0
?
""
:
"non-"
)
<<
"UTC)"
;
}
else
{
qDebug
()
<<
"KAlarm version"
<<
version
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"KAlarm version"
<<
version
;
}
// Convert events to current KAlarm format for when/if the calendar is saved
...
...
@@ -142,7 +142,7 @@ int Private::readKAlarmVersion(const FileStorage::Ptr &fileStorage, QString &sub
subVersion
.
clear
();
Calendar
::
Ptr
calendar
=
fileStorage
->
calendar
();
versionString
=
calendar
->
customProperty
(
KACalendar
::
APPNAME
,
VERSION_PROPERTY
);
qDebug
()
<<
"File="
<<
fileStorage
->
fileName
()
<<
", version="
<<
versionString
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"File="
<<
fileStorage
->
fileName
()
<<
", version="
<<
versionString
;
if
(
versionString
.
isEmpty
())
{
// Pre-KAlarm 1.4 defined the KAlarm version number in the PRODID field.
...
...
src/kaevent.cpp
View file @
fb5ab431
...
...
@@ -33,7 +33,7 @@ using namespace KHolidays;
#include
<ksystemtimezone.h>
#include
<klocalizedstring.h>
#include
<kglobal.h>
#include
<q
debug.h
>
#include
"kalarmcal_
debug.h
"
using
namespace
KCalCore
;
using
namespace
KHolidays
;
...
...
@@ -2223,7 +2223,7 @@ void KAEventPrivate::activateReminderAfter(const DateTime &mainAlarmTime)
return
;
// the reminder time is after the next occurrence of the main alarm
}
qDebug
()
<<
"Setting reminder at"
<<
reminderTime
.
effectiveKDateTime
().
dateTime
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"Setting reminder at"
<<
reminderTime
.
effectiveKDateTime
().
dateTime
();
activate_reminder
(
true
);
mReminderAfterTime
=
reminderTime
;
}
...
...
@@ -3370,7 +3370,7 @@ bool KAEventPrivate::setDisplaying(const KAEventPrivate &event, KAAlarm::Type al
||
alarmType
==
KAAlarm
::
DEFERRED_REMINDER_ALARM
||
alarmType
==
KAAlarm
::
DEFERRED_ALARM
||
alarmType
==
KAAlarm
::
AT_LOGIN_ALARM
))
{
//qDebug()<<event.id()<<","<<(alarmType==KAAlarm::MAIN_ALARM?"MAIN":alarmType==KAAlarm::REMINDER_ALARM?"REMINDER":alarmType==KAAlarm::DEFERRED_REMINDER_ALARM?"REMINDER_DEFERRAL":alarmType==KAAlarm::DEFERRED_ALARM?"DEFERRAL":"LOGIN")<<"): time="<<repeatAtLoginTime.toString();
//q
C
Debug(
KALARMCAL_LOG
)<<event.id()<<","<<(alarmType==KAAlarm::MAIN_ALARM?"MAIN":alarmType==KAAlarm::REMINDER_ALARM?"REMINDER":alarmType==KAAlarm::DEFERRED_REMINDER_ALARM?"REMINDER_DEFERRAL":alarmType==KAAlarm::DEFERRED_ALARM?"DEFERRAL":"LOGIN")<<"): time="<<repeatAtLoginTime.toString();
KAAlarm
al
=
event
.
alarm
(
alarmType
);
if
(
al
.
isValid
())
{
*
this
=
event
;
...
...
@@ -3706,114 +3706,114 @@ void KAEvent::dumpDebug() const
#ifndef KDE_NO_DEBUG_OUTPUT
void
KAEventPrivate
::
dumpDebug
()
const
{
qDebug
()
<<
"KAEvent dump:"
;
qDebug
()
<<
"-- mEventID:"
<<
mEventID
;
qDebug
()
<<
"-- mActionSubType:"
<<
(
mActionSubType
==
KAEvent
::
MESSAGE
?
"MESSAGE"
:
mActionSubType
==
KAEvent
::
FILE
?
"FILE"
:
mActionSubType
==
KAEvent
::
COMMAND
?
"COMMAND"
:
mActionSubType
==
KAEvent
::
EMAIL
?
"EMAIL"
:
mActionSubType
==
KAEvent
::
AUDIO
?
"AUDIO"
:
"??"
);
qDebug
()
<<
"-- mNextMainDateTime:"
<<
mNextMainDateTime
.
toString
();
qDebug
()
<<
"-- mCommandError:"
<<
mCommandError
;
qDebug
()
<<
"-- mAllTrigger:"
<<
mAllTrigger
.
toString
();
qDebug
()
<<
"-- mMainTrigger:"
<<
mMainTrigger
.
toString
();
qDebug
()
<<
"-- mAllWorkTrigger:"
<<
mAllWorkTrigger
.
toString
();
qDebug
()
<<
"-- mMainWorkTrigger:"
<<
mMainWorkTrigger
.
toString
();
qDebug
()
<<
"-- mCategory:"
<<
mCategory
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"KAEvent dump:"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mEventID:"
<<
mEventID
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mActionSubType:"
<<
(
mActionSubType
==
KAEvent
::
MESSAGE
?
"MESSAGE"
:
mActionSubType
==
KAEvent
::
FILE
?
"FILE"
:
mActionSubType
==
KAEvent
::
COMMAND
?
"COMMAND"
:
mActionSubType
==
KAEvent
::
EMAIL
?
"EMAIL"
:
mActionSubType
==
KAEvent
::
AUDIO
?
"AUDIO"
:
"??"
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mNextMainDateTime:"
<<
mNextMainDateTime
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCommandError:"
<<
mCommandError
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAllTrigger:"
<<
mAllTrigger
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mMainTrigger:"
<<
mMainTrigger
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAllWorkTrigger:"
<<
mAllWorkTrigger
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mMainWorkTrigger:"
<<
mMainWorkTrigger
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCategory:"
<<
mCategory
;
if
(
!
mTemplateName
.
isEmpty
())
{
qDebug
()
<<
"-- mTemplateName:"
<<
mTemplateName
;
qDebug
()
<<
"-- mTemplateAfterTime:"
<<
mTemplateAfterTime
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mTemplateName:"
<<
mTemplateName
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mTemplateAfterTime:"
<<
mTemplateAfterTime
;
}
qDebug
()
<<
"-- mText:"
<<
mText
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mText:"
<<
mText
;
if
(
mActionSubType
==
KAEvent
::
MESSAGE
||
mActionSubType
==
KAEvent
::
FILE
)
{
qDebug
()
<<
"-- mBgColour:"
<<
mBgColour
.
name
();
qDebug
()
<<
"-- mFgColour:"
<<
mFgColour
.
name
();
qDebug
()
<<
"-- mUseDefaultFont:"
<<
mUseDefaultFont
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mBgColour:"
<<
mBgColour
.
name
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mFgColour:"
<<
mFgColour
.
name
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mUseDefaultFont:"
<<
mUseDefaultFont
;
if
(
!
mUseDefaultFont
)
{
qDebug
()
<<
"-- mFont:"
<<
mFont
.
toString
();
}
qDebug
()
<<
"-- mSpeak:"
<<
mSpeak
;
qDebug
()
<<
"-- mAudioFile:"
<<
mAudioFile
;
qDebug
()
<<
"-- mPreAction:"
<<
mPreAction
;
qDebug
()
<<
"-- mExecPreActOnDeferral:"
<<
(
mExtraActionOptions
&
KAEvent
::
ExecPreActOnDeferral
);
qDebug
()
<<
"-- mCancelOnPreActErr:"
<<
(
mExtraActionOptions
&
KAEvent
::
CancelOnPreActError
);
qDebug
()
<<
"-- mDontShowPreActErr:"
<<
(
mExtraActionOptions
&
KAEvent
::
DontShowPreActError
);
qDebug
()
<<
"-- mPostAction:"
<<
mPostAction
;
qDebug
()
<<
"-- mLateCancel:"
<<
mLateCancel
;
qDebug
()
<<
"-- mAutoClose:"
<<
mAutoClose
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mFont:"
<<
mFont
.
toString
();
}
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mSpeak:"
<<
mSpeak
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAudioFile:"
<<
mAudioFile
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mPreAction:"
<<
mPreAction
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mExecPreActOnDeferral:"
<<
(
mExtraActionOptions
&
KAEvent
::
ExecPreActOnDeferral
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCancelOnPreActErr:"
<<
(
mExtraActionOptions
&
KAEvent
::
CancelOnPreActError
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDontShowPreActErr:"
<<
(
mExtraActionOptions
&
KAEvent
::
DontShowPreActError
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mPostAction:"
<<
mPostAction
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mLateCancel:"
<<
mLateCancel
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAutoClose:"
<<
mAutoClose
;
}
else
if
(
mActionSubType
==
KAEvent
::
COMMAND
)
{
qDebug
()
<<
"-- mCommandScript:"
<<
mCommandScript
;
qDebug
()
<<
"-- mCommandXterm:"
<<
mCommandXterm
;
qDebug
()
<<
"-- mCommandDisplay:"
<<
mCommandDisplay
;
qDebug
()
<<
"-- mLogFile:"
<<
mLogFile
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCommandScript:"
<<
mCommandScript
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCommandXterm:"
<<
mCommandXterm
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCommandDisplay:"
<<
mCommandDisplay
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mLogFile:"
<<
mLogFile
;
}
else
if
(
mActionSubType
==
KAEvent
::
EMAIL
)
{
qDebug
()
<<
"-- mEmail: FromKMail:"
<<
mEmailFromIdentity
;
qDebug
()
<<
"-- Addresses:"
<<
mEmailAddresses
.
join
(
QLatin1String
(
","
));
qDebug
()
<<
"-- Subject:"
<<
mEmailSubject
;
qDebug
()
<<
"-- Attachments:"
<<
mEmailAttachments
.
join
(
QLatin1String
(
","
));
qDebug
()
<<
"-- Bcc:"
<<
mEmailBcc
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mEmail: FromKMail:"
<<
mEmailFromIdentity
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- Addresses:"
<<
mEmailAddresses
.
join
(
QLatin1String
(
","
));
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- Subject:"
<<
mEmailSubject
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- Attachments:"
<<
mEmailAttachments
.
join
(
QLatin1String
(
","
));
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- Bcc:"
<<
mEmailBcc
;
}
else
if
(
mActionSubType
==
KAEvent
::
AUDIO
)
{
qDebug
()
<<
"-- mAudioFile:"
<<
mAudioFile
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAudioFile:"
<<
mAudioFile
;
}
qDebug
()
<<
"-- mBeep:"
<<
mBeep
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mBeep:"
<<
mBeep
;
if
(
mActionSubType
==
KAEvent
::
AUDIO
||
!
mAudioFile
.
isEmpty
())
{
if
(
mSoundVolume
>=
0
)
{
qDebug
()
<<
"-- mSoundVolume:"
<<
mSoundVolume
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mSoundVolume:"
<<
mSoundVolume
;
if
(
mFadeVolume
>=
0
)
{
qDebug
()
<<
"-- mFadeVolume:"
<<
mFadeVolume
;
qDebug
()
<<
"-- mFadeSeconds:"
<<
mFadeSeconds
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mFadeVolume:"
<<
mFadeVolume
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mFadeSeconds:"
<<
mFadeSeconds
;
}
else
{
qDebug
()
<<
"-- mFadeVolume:-:"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mFadeVolume:-:"
;
}
}
else
{
qDebug
()
<<
"-- mSoundVolume:-:"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mSoundVolume:-:"
;
}
qDebug
()
<<
"-- mRepeatSoundPause:"
<<
mRepeatSoundPause
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRepeatSoundPause:"
<<
mRepeatSoundPause
;
}
qDebug
()
<<
"-- mKMailSerialNumber:"
<<
mKMailSerialNumber
;
qDebug
()
<<
"-- mCopyToKOrganizer:"
<<
mCopyToKOrganizer
;
qDebug
()
<<
"-- mExcludeHolidays:"
<<
(
bool
)
mExcludeHolidays
;
qDebug
()
<<
"-- mWorkTimeOnly:"
<<
mWorkTimeOnly
;
qDebug
()
<<
"-- mStartDateTime:"
<<
mStartDateTime
.
toString
();
// qDebug() << "-- mCreatedDateTime:" << mCreatedDateTime;
qDebug
()
<<
"-- mRepeatAtLogin:"
<<
mRepeatAtLogin
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mKMailSerialNumber:"
<<
mKMailSerialNumber
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCopyToKOrganizer:"
<<
mCopyToKOrganizer
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mExcludeHolidays:"
<<
(
bool
)
mExcludeHolidays
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mWorkTimeOnly:"
<<
mWorkTimeOnly
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mStartDateTime:"
<<
mStartDateTime
.
toString
();
// q
C
Debug(
KALARMCAL_LOG
) << "-- mCreatedDateTime:" << mCreatedDateTime;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRepeatAtLogin:"
<<
mRepeatAtLogin
;
// if (mRepeatAtLogin)
// qDebug() << "-- mAtLoginDateTime:" << mAtLoginDateTime;
qDebug
()
<<
"-- mArchiveRepeatAtLogin:"
<<
mArchiveRepeatAtLogin
;
qDebug
()
<<
"-- mConfirmAck:"
<<
mConfirmAck
;
qDebug
()
<<
"-- mEnabled:"
<<
mEnabled
;
qDebug
()
<<
"-- mItemId:"
<<
mItemId
;
qDebug
()
<<
"-- mCollectionId:"
<<
mCollectionId
;
qDebug
()
<<
"-- mCompatibility:"
<<
mCompatibility
;
qDebug
()
<<
"-- mReadOnly:"
<<
mReadOnly
;
// q
C
Debug(
KALARMCAL_LOG
) << "-- mAtLoginDateTime:" << mAtLoginDateTime;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mArchiveRepeatAtLogin:"
<<
mArchiveRepeatAtLogin
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mConfirmAck:"
<<
mConfirmAck
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mEnabled:"
<<
mEnabled
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mItemId:"
<<
mItemId
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCollectionId:"
<<
mCollectionId
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mCompatibility:"
<<
mCompatibility
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mReadOnly:"
<<
mReadOnly
;
if
(
mReminderMinutes
)
{
qDebug
()
<<
"-- mReminderMinutes:"
<<
mReminderMinutes
;
qDebug
()
<<
"-- mReminderActive:"
<<
(
mReminderActive
==
ACTIVE_REMINDER
?
"active"
:
mReminderActive
==
HIDDEN_REMINDER
?
"hidden"
:
"no"
);
qDebug
()
<<
"-- mReminderOnceOnly:"
<<
mReminderOnceOnly
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mReminderMinutes:"
<<
mReminderMinutes
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mReminderActive:"
<<
(
mReminderActive
==
ACTIVE_REMINDER
?
"active"
:
mReminderActive
==
HIDDEN_REMINDER
?
"hidden"
:
"no"
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mReminderOnceOnly:"
<<
mReminderOnceOnly
;
}
else
if
(
mDeferral
>
0
)
{
qDebug
()
<<
"-- mDeferral:"
<<
(
mDeferral
==
NORMAL_DEFERRAL
?
"normal"
:
"reminder"
);
qDebug
()
<<
"-- mDeferralTime:"
<<
mDeferralTime
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDeferral:"
<<
(
mDeferral
==
NORMAL_DEFERRAL
?
"normal"
:
"reminder"
);
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDeferralTime:"
<<
mDeferralTime
.
toString
();
}
qDebug
()
<<
"-- mDeferDefaultMinutes:"
<<
mDeferDefaultMinutes
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDeferDefaultMinutes:"
<<
mDeferDefaultMinutes
;
if
(
mDeferDefaultMinutes
)
{
qDebug
()
<<
"-- mDeferDefaultDateOnly:"
<<
mDeferDefaultDateOnly
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDeferDefaultDateOnly:"
<<
mDeferDefaultDateOnly
;
}
if
(
mDisplaying
)
{
qDebug
()
<<
"-- mDisplayingTime:"
<<
mDisplayingTime
.
toString
();
qDebug
()
<<
"-- mDisplayingFlags:"
<<
mDisplayingFlags
;
qDebug
()
<<
"-- mDisplayingDefer:"
<<
mDisplayingDefer
;
qDebug
()
<<
"-- mDisplayingEdit:"
<<
mDisplayingEdit
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDisplayingTime:"
<<
mDisplayingTime
.
toString
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDisplayingFlags:"
<<
mDisplayingFlags
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDisplayingDefer:"
<<
mDisplayingDefer
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDisplayingEdit:"
<<
mDisplayingEdit
;
}
qDebug
()
<<
"-- mRevision:"
<<
mRevision
;
qDebug
()
<<
"-- mRecurrence:"
<<
mRecurrence
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRevision:"
<<
mRevision
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRecurrence:"
<<
mRecurrence
;
if
(
!
mRepetition
)
{
qDebug
()
<<
"-- mRepetition: 0"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRepetition: 0"
;
}
else
if
(
mRepetition
.
isDaily
())
{
qDebug
()
<<
"-- mRepetition: count:"
<<
mRepetition
.
count
()
<<
", interval:"
<<
mRepetition
.
intervalDays
()
<<
"days"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRepetition: count:"
<<
mRepetition
.
count
()
<<
", interval:"
<<
mRepetition
.
intervalDays
()
<<
"days"
;
}
else
{
qDebug
()
<<
"-- mRepetition: count:"
<<
mRepetition
.
count
()
<<
", interval:"
<<
mRepetition
.
intervalMinutes
()
<<
"minutes"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mRepetition: count:"
<<
mRepetition
.
count
()
<<
", interval:"
<<
mRepetition
.
intervalMinutes
()
<<
"minutes"
;
}
qDebug
()
<<
"-- mNextRepeat:"
<<
mNextRepeat
;
qDebug
()
<<
"-- mAlarmCount:"
<<
mAlarmCount
;
qDebug
()
<<
"-- mMainExpired:"
<<
mMainExpired
;
qDebug
()
<<
"-- mDisplaying:"
<<
mDisplaying
;
qDebug
()
<<
"KAEvent dump end"
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mNextRepeat:"
<<
mNextRepeat
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mAlarmCount:"
<<
mAlarmCount
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mMainExpired:"
<<
mMainExpired
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"-- mDisplaying:"
<<
mDisplaying
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"KAEvent dump end"
;
}
#endif
...
...
@@ -4099,7 +4099,7 @@ void KAEventPrivate::readAlarm(const Alarm::Ptr &alarm, AlarmData &data, bool au
data
.
displayingFlags
=
KAEvent
::
REPEAT_AT_LOGIN
;
}
}
//qDebug()<<"text="<<alarm->text()<<", time="<<alarm->time().toString()<<", valid time="<<alarm->time().isValid();
//q
C
Debug(
KALARMCAL_LOG
)<<"text="<<alarm->text()<<", time="<<alarm->time().toString()<<", valid time="<<alarm->time().isValid();
}
/******************************************************************************
...
...
@@ -4223,7 +4223,7 @@ void KAEventPrivate::calcTriggerTimes() const
*/
void
KAEventPrivate
::
calcNextWorkingTime
(
const
DateTime
&
nextTrigger
)
const
{
qDebug
()
<<
"next="
<<
nextTrigger
.
kDateTime
().
dateTime
();
q
C
Debug
(
KALARMCAL_LOG
)
<<
"next="
<<
nextTrigger
.
kDateTime
().
dateTime
();
mMainWorkTrigger
=
mAllWorkTrigger
=
DateTime
();
for
(
int
i
=
0
;
;
++
i
)
{
...
...
@@ -4562,7 +4562,7 @@ void KAEventPrivate::calcNextWorkingTime(const DateTime &nextTrigger) const
}
kdt
=
kdtRecur
;
}
//qDebug()<<"-----exit loop: count="<<limit<<endl;
//q
C
Debug(
KALARMCAL_LOG
)<<"-----exit loop: count="<<limit<<endl;
return
;
// too many iterations
}
...
...
@@ -4888,7 +4888,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
return
false
;
}
qDebug
()
<<
"Adjusting version"
<<
calendarVersion
;
q
C
Debug
(
KALARMCAL_LOG
)
<<
"Adjusting version"
<<
calendarVersion
;
const
bool
pre_0_7
=
(
calendarVersion
<
Version
(
0
,
7
,
0
));
const
bool
pre_0_9
=
(
calendarVersion
<
Version
(
0
,
9
,
0
));
const
bool
pre_0_9_2
=
(
calendarVersion
<
Version
(
0
,
9
,
2
));
...
...
src/kalarmcal_debug.cpp
0 → 100644
View file @
fb5ab431
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include
"kalarmcal_debug.h"
Q_LOGGING_CATEGORY
(
KALARMCAL_LOG
,
"log_kalarmcal"
)
src/kalarmcal_debug.h
0 → 100644
View file @
fb5ab431
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KALARMCAL_DEBUG_H
#define KALARMCAL_DEBUG_H
#include
<QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY
(
KALARMCAL_LOG
)
#endif
src/karecurrence.cpp
View file @
fb5ab431
...
...
@@ -26,7 +26,7 @@
#include
<kcalcore/icalformat.h>
#include
<klocalizedstring.h>
#include
<q
debug.h
>
#include
"kalarmcal_
debug.h
"
#include
<QBitArray>
#include
<QDate>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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