Diffstat (limited to 'libopie2/opiepim/core/opimnotifymanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimnotifymanager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opiepim/core/opimnotifymanager.cpp b/libopie2/opiepim/core/opimnotifymanager.cpp index 53ad4c3..d6f0ead 100644 --- a/libopie2/opiepim/core/opimnotifymanager.cpp +++ b/libopie2/opiepim/core/opimnotifymanager.cpp | |||
@@ -44,8 +44,24 @@ OPimNotifyManager::Reminders OPimNotifyManager::reminders()const { | |||
44 | } | 44 | } |
45 | OPimNotifyManager::Alarms OPimNotifyManager::alarms()const { | 45 | OPimNotifyManager::Alarms OPimNotifyManager::alarms()const { |
46 | return m_al; | 46 | return m_al; |
47 | } | 47 | } |
48 | OPimAlarm OPimNotifyManager::alarmAtDateTime( const QDateTime& when, bool& found ) const { | ||
49 | Alarms::ConstIterator it; | ||
50 | found = true; | ||
51 | |||
52 | for ( it = m_al.begin(); it != m_al.end(); ++it ){ | ||
53 | if ( (*it).dateTime() == when ) | ||
54 | return (*it); | ||
55 | } | ||
56 | |||
57 | // Fall through if nothing could be found | ||
58 | found = false; | ||
59 | OPimAlarm empty; | ||
60 | return empty; | ||
61 | } | ||
62 | |||
63 | |||
48 | void OPimNotifyManager::setAlarms( const Alarms& al) { | 64 | void OPimNotifyManager::setAlarms( const Alarms& al) { |
49 | m_al = al; | 65 | m_al = al; |
50 | } | 66 | } |
51 | void OPimNotifyManager::setReminders( const Reminders& rem) { | 67 | void OPimNotifyManager::setReminders( const Reminders& rem) { |