author | eilers <eilers> | 2004-01-16 13:37:03 (UTC) |
---|---|---|
committer | eilers <eilers> | 2004-01-16 13:37:03 (UTC) |
commit | 839775ea257f2c9be752a77c41a09416469df591 (patch) (unidiff) | |
tree | d856530aad005f66adae3634bd384d3d02bb6c95 /libopie/pim/opimnotifymanager.cpp | |
parent | f7936b488e81f8706c4ea900979f2ea70734cfe9 (diff) | |
download | opie-839775ea257f2c9be752a77c41a09416469df591.zip opie-839775ea257f2c9be752a77c41a09416469df591.tar.gz opie-839775ea257f2c9be752a77c41a09416469df591.tar.bz2 |
Some changes to handle alarms for datebook-sql db..
Diffstat (limited to 'libopie/pim/opimnotifymanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/opimnotifymanager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie/pim/opimnotifymanager.cpp b/libopie/pim/opimnotifymanager.cpp index 53ad4c3..d6f0ead 100644 --- a/libopie/pim/opimnotifymanager.cpp +++ b/libopie/pim/opimnotifymanager.cpp | |||
@@ -45,6 +45,22 @@ OPimNotifyManager::Reminders OPimNotifyManager::reminders()const { | |||
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 | } |