Diffstat (limited to 'libopie/pim/opimnotifymanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/opimnotifymanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie/pim/opimnotifymanager.cpp b/libopie/pim/opimnotifymanager.cpp index be4a1c2..49af757 100644 --- a/libopie/pim/opimnotifymanager.cpp +++ b/libopie/pim/opimnotifymanager.cpp | |||
@@ -22,48 +22,51 @@ void OPimNotifyManager::remove( const OPimNotify& noti) { | |||
22 | }else if ( noti.type() == QString::fromLatin1("OPimAlarm") ) { | 22 | }else if ( noti.type() == QString::fromLatin1("OPimAlarm") ) { |
23 | const OPimAlarm& al = static_cast<const OPimAlarm&>(noti); | 23 | const OPimAlarm& al = static_cast<const OPimAlarm&>(noti); |
24 | m_al.remove( al ); | 24 | m_al.remove( al ); |
25 | } | 25 | } |
26 | } | 26 | } |
27 | void OPimNotifyManager::replace( const OPimNotify& noti) { | 27 | void OPimNotifyManager::replace( const OPimNotify& noti) { |
28 | if ( noti.type() == QString::fromLatin1("OPimReminder") ) { | 28 | if ( noti.type() == QString::fromLatin1("OPimReminder") ) { |
29 | const OPimReminder& rem = static_cast<const OPimReminder&>(noti); | 29 | const OPimReminder& rem = static_cast<const OPimReminder&>(noti); |
30 | m_rem.remove( rem ); | 30 | m_rem.remove( rem ); |
31 | m_rem.append( rem ); | 31 | m_rem.append( rem ); |
32 | }else if ( noti.type() == QString::fromLatin1("OPimAlarm") ) { | 32 | }else if ( noti.type() == QString::fromLatin1("OPimAlarm") ) { |
33 | const OPimAlarm& al = static_cast<const OPimAlarm&>(noti); | 33 | const OPimAlarm& al = static_cast<const OPimAlarm&>(noti); |
34 | m_al.remove( al ); | 34 | m_al.remove( al ); |
35 | m_al.append( al ); | 35 | m_al.append( al ); |
36 | } | 36 | } |
37 | } | 37 | } |
38 | OPimNotifyManager::Reminders OPimNotifyManager::reminders()const { | 38 | OPimNotifyManager::Reminders OPimNotifyManager::reminders()const { |
39 | return m_rem; | 39 | return m_rem; |
40 | } | 40 | } |
41 | OPimNotifyManager::Alarms OPimNotifyManager::alarms()const { | 41 | OPimNotifyManager::Alarms OPimNotifyManager::alarms()const { |
42 | return m_al; | 42 | return m_al; |
43 | } | 43 | } |
44 | void OPimNotifyManager::setAlarms( const Alarms& al) { | 44 | void OPimNotifyManager::setAlarms( const Alarms& al) { |
45 | m_al = al; | 45 | m_al = al; |
46 | } | 46 | } |
47 | void OPimNotifyManager::setReminders( const Reminders& rem) { | 47 | void OPimNotifyManager::setReminders( const Reminders& rem) { |
48 | m_rem = rem; | 48 | m_rem = rem; |
49 | } | 49 | } |
50 | /* FIXME!!! */ | 50 | /* FIXME!!! */ |
51 | /** | 51 | /** |
52 | * The idea is to check if the provider for our service | 52 | * The idea is to check if the provider for our service |
53 | * is online | 53 | * is online |
54 | * if it is we will use QCOP | 54 | * if it is we will use QCOP |
55 | * if not the Factory to get the backend... | 55 | * if not the Factory to get the backend... |
56 | * Qtopia1.6 services would be kewl to have here.... | 56 | * Qtopia1.6 services would be kewl to have here.... |
57 | */ | 57 | */ |
58 | void OPimNotifyManager::registerNotify( const OPimNotify& ) { | 58 | void OPimNotifyManager::registerNotify( const OPimNotify& ) { |
59 | 59 | ||
60 | } | 60 | } |
61 | /* FIXME!!! */ | 61 | /* FIXME!!! */ |
62 | /** | 62 | /** |
63 | * same as above... | 63 | * same as above... |
64 | * Also implement Url model | 64 | * Also implement Url model |
65 | * have a MainWindow.... | 65 | * have a MainWindow.... |
66 | */ | 66 | */ |
67 | void OPimNotifyManager::deregister( const OPimNotify& ) { | 67 | void OPimNotifyManager::deregister( const OPimNotify& ) { |
68 | 68 | ||
69 | } | 69 | } |
70 | bool OPimNotifyManager::isEmpty()const { | ||
71 | return ( m_rem.isEmpty() && m_al.isEmpty() ); | ||
72 | } | ||