summaryrefslogtreecommitdiffabout
path: root/libkcal
Side-by-side diff
Diffstat (limited to 'libkcal') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/phoneformat.cpp8
-rw-r--r--libkcal/sharpformat.cpp2
2 files changed, 8 insertions, 2 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp
index 94744fb..bc1b863 100644
--- a/libkcal/phoneformat.cpp
+++ b/libkcal/phoneformat.cpp
@@ -157,9 +157,9 @@ public:
#endif
break;
}
}
- QString alarmString = "";
+ QString alarmString = "na";
if ( alarm ) {
Alarm *alarm;
if ( todo->alarms().count() > 0 )
alarm = todo->alarms().first();
@@ -175,8 +175,10 @@ public:
} else {
Alarm *alarm;
if ( todo->alarms().count() > 0 ) {
alarm = todo->alarms().first();
+ alarm->setType( Alarm::Audio );
+ alarm->setStartOffset( -60*15 );
alarm->setEnabled( false );
}
}
// csum *****************************************
@@ -440,9 +442,9 @@ public:
QStringList categoryList;
categoryList << getCategory( Note );
event->setCategories( categoryList );
- QString alarmString = "";
+ QString alarmString = "na";
// strange 0 semms to mean: alarm enabled
if ( alarm ) {
Alarm *alarm;
if ( event->alarms().count() > 0 )
@@ -459,8 +461,10 @@ public:
} else {
Alarm *alarm;
if ( event->alarms().count() > 0 ) {
alarm = event->alarms().first();
+ alarm->setType( Alarm::Audio );
+ alarm->setStartOffset( -60*15 );
alarm->setEnabled( false );
}
}
// csum *****************************************
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp
index f8b066d..defdb09 100644
--- a/libkcal/sharpformat.cpp
+++ b/libkcal/sharpformat.cpp
@@ -188,8 +188,10 @@ class SharpParser : public QObject
} else {
Alarm *alarm;
if ( event->alarms().count() > 0 ) {
alarm = event->alarms().first();
+ alarm->setType( Alarm::Audio );
+ alarm->setStartOffset( -60*15 );
alarm->setEnabled( false );
}
}