author | mickeyl <mickeyl> | 2004-04-04 17:15:07 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 17:15:07 (UTC) |
commit | 2d87ac4bb0d799d15c7ea96ea444e5de617abdef (patch) (unidiff) | |
tree | b55dd8701350da302e11ca6aad174a57fd3aa53b | |
parent | b49dbce74737411736d63358319e709d1af810bb (diff) | |
download | opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.zip opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.tar.gz opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.tar.bz2 |
fix odebug usage
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index b48d4a7..5de6b0a 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -38,33 +38,33 @@ AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* | |||
38 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); | 38 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); |
39 | 39 | ||
40 | connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), | 40 | connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), |
41 | this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); | 41 | this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); |
42 | 42 | ||
43 | 43 | ||
44 | readConfig(); | 44 | readConfig(); |
45 | getAddress(); | 45 | getAddress(); |
46 | } | 46 | } |
47 | 47 | ||
48 | AddressBookPluginWidget::~AddressBookPluginWidget() { | 48 | AddressBookPluginWidget::~AddressBookPluginWidget() { |
49 | delete m_contactdb; | 49 | delete m_contactdb; |
50 | } | 50 | } |
51 | 51 | ||
52 | void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* ) | 52 | void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* ) |
53 | { | 53 | { |
54 | Opie::Core::owarn << " AddressBookPluginWidget::Database was changed externally ! " << oendl; | 54 | oerr << " AddressBookPluginWidget::Database was changed externally ! " << oendl; |
55 | m_contactdb->reload(); | 55 | m_contactdb->reload(); |
56 | getAddress(); | 56 | getAddress(); |
57 | } | 57 | } |
58 | 58 | ||
59 | void AddressBookPluginWidget::reinitialize() { | 59 | void AddressBookPluginWidget::reinitialize() { |
60 | readConfig(); | 60 | readConfig(); |
61 | getAddress(); | 61 | getAddress(); |
62 | } | 62 | } |
63 | 63 | ||
64 | void AddressBookPluginWidget::readConfig() { | 64 | void AddressBookPluginWidget::readConfig() { |
65 | Config cfg( "todayaddressplugin" ); | 65 | Config cfg( "todayaddressplugin" ); |
66 | cfg.setGroup( "config" ); | 66 | cfg.setGroup( "config" ); |
67 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); | 67 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); |
68 | m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); | 68 | m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); |
69 | m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); | 69 | m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); |
70 | m_urgentDays = cfg.readNumEntry( "urgentdays", 7 ); | 70 | m_urgentDays = cfg.readNumEntry( "urgentdays", 7 ); |
@@ -92,33 +92,33 @@ void AddressBookPluginWidget::getAddress() { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | QString output; | 94 | QString output; |
95 | 95 | ||
96 | // Check whether the database provide the search option.. | 96 | // Check whether the database provide the search option.. |
97 | if ( !m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ | 97 | if ( !m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ |
98 | // Libopie seems to be old.. | 98 | // Libopie seems to be old.. |
99 | output = QObject::tr( "Database does not provide this search query ! Please upgrade libOpie !<br>" ); | 99 | output = QObject::tr( "Database does not provide this search query ! Please upgrade libOpie !<br>" ); |
100 | addressLabel->setText( output ); | 100 | addressLabel->setText( output ); |
101 | return; | 101 | return; |
102 | } | 102 | } |
103 | 103 | ||
104 | // Define the query for birthdays and start search.. | 104 | // Define the query for birthdays and start search.. |
105 | QDate lookAheadDate = QDate::currentDate().addDays( m_daysLookAhead ); | 105 | QDate lookAheadDate = QDate::currentDate().addDays( m_daysLookAhead ); |
106 | int ammount = 0; | 106 | int ammount = 0; |
107 | if ( m_showBirthdays ){ | 107 | if ( m_showBirthdays ){ |
108 | Opie::Core::owarn << "Searching from now (" << QDate::currentDate().toString() << ") until " | 108 | oerr << "Searching from now (" << QDate::currentDate().toString() << ") until " |
109 | << lookAheadDate.toString() << " ! " << oendl; | 109 | << lookAheadDate.toString() << " ! " << oendl; |
110 | } | 110 | } |
111 | 111 | ||
112 | if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ | 112 | if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ |
113 | 113 | ||
114 | 114 | ||
115 | Opie::OPimContact querybirthdays; | 115 | Opie::OPimContact querybirthdays; |
116 | querybirthdays.setBirthday( lookAheadDate ); | 116 | querybirthdays.setBirthday( lookAheadDate ); |
117 | 117 | ||
118 | m_list = m_contactdb->queryByExample( querybirthdays, | 118 | m_list = m_contactdb->queryByExample( querybirthdays, |
119 | Opie::OPimContactAccess::DateDiff ); | 119 | Opie::OPimContactAccess::DateDiff ); |
120 | if ( m_list.count() > 0 ){ | 120 | if ( m_list.count() > 0 ){ |
121 | output = "<font color=" + m_headlineColor + ">" | 121 | output = "<font color=" + m_headlineColor + ">" |
122 | + QObject::tr( "Next birthdays in <b> %1 </b> days:" ) | 122 | + QObject::tr( "Next birthdays in <b> %1 </b> days:" ) |
123 | .arg( m_daysLookAhead ) | 123 | .arg( m_daysLookAhead ) |
124 | + "</font> <br>"; | 124 | + "</font> <br>"; |