Commit 226facc1 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unimplemented debugdialog method. Really some debug infos

parent 22bbe11e
......@@ -297,11 +297,12 @@ void KOAlarmClient::forceAlarmCheck()
saveLastCheckTime();
}
void KOAlarmClient::dumpDebug()
QString KOAlarmClient::dumpDebug()
{
KConfigGroup cfg( KGlobal::config(), "Alarms" );
const QDateTime lastChecked = cfg.readEntry( "CalendarsLastChecked", QDateTime() );
kDebug() << "Last Check:" << lastChecked;
QString str = QString::fromLatin1("Last Check: %1").arg(lastChecked.toString());
return str;
}
QStringList KOAlarmClient::dumpAlarms()
......@@ -316,19 +317,18 @@ QStringList KOAlarmClient::dumpAlarms()
end.toString();
Alarm::List alarms = mCalendar->alarms( start, end );
foreach( Alarm::Ptr a, alarms ) {
const Incidence::Ptr parentIncidence = mCalendar->incidence( a->parentUid() );
lst << QLatin1String( " " ) + parentIncidence->summary() + QLatin1String(" (") + a->time().toString() + QLatin1Char(')');
if (alarms.isEmpty() ) {
lst << QLatin1String("No alarm found.");
} else {
foreach( Alarm::Ptr a, alarms ) {
const Incidence::Ptr parentIncidence = mCalendar->incidence( a->parentUid() );
lst << QLatin1String( " " ) + parentIncidence->summary() + QLatin1String(" (") + a->time().toString() + QLatin1Char(')');
}
}
return lst;
}
void KOAlarmClient::debugShowDialog()
{
// showAlarmDialog();
}
void KOAlarmClient::hide()
{
#if !defined(KORGAC_AKONADI_AGENT)
......
......@@ -53,11 +53,9 @@ class KOAlarmClient : public QObject, public KSessionManager
void hide();
void show();
void forceAlarmCheck();
void dumpDebug();
QString dumpDebug();
QStringList dumpAlarms();
void debugShowDialog();
public slots:
void slotQuit();
......
......@@ -15,11 +15,10 @@
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method>
<method name="dumpDebug">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
<arg type="s" direction="out"/>
</method>
<method name="dumpAlarms">
<arg type="as" direction="out"/>
</method>
<method name="debugShowDialog"/>
</interface>
</node>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment