author | mickeyl <mickeyl> | 2004-04-04 17:16:33 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 17:16:33 (UTC) |
commit | 5dc77f8c1ef0b22d208a629ebbb61476909569be (patch) (side-by-side diff) | |
tree | 3d89d7b55eb5010783b5e31a48872ff778b81aeb | |
parent | 2d87ac4bb0d799d15c7ea96ea444e5de617abdef (diff) | |
download | opie-5dc77f8c1ef0b22d208a629ebbb61476909569be.zip opie-5dc77f8c1ef0b22d208a629ebbb61476909569be.tar.gz opie-5dc77f8c1ef0b22d208a629ebbb61476909569be.tar.bz2 |
better use owarn here
-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 5de6b0a..d76a29a 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* m_contactdb = new Opie::OPimContactAccess("addressplugin"); connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); readConfig(); getAddress(); } AddressBookPluginWidget::~AddressBookPluginWidget() { delete m_contactdb; } void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* ) { - oerr << " AddressBookPluginWidget::Database was changed externally ! " << oendl; + owarn << " AddressBookPluginWidget::Database was changed externally ! " << oendl; m_contactdb->reload(); getAddress(); } void AddressBookPluginWidget::reinitialize() { readConfig(); getAddress(); } void AddressBookPluginWidget::readConfig() { Config cfg( "todayaddressplugin" ); cfg.setGroup( "config" ); m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); m_urgentDays = cfg.readNumEntry( "urgentdays", 7 ); @@ -92,33 +92,33 @@ void AddressBookPluginWidget::getAddress() { } QString output; // Check whether the database provide the search option.. if ( !m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ // Libopie seems to be old.. output = QObject::tr( "Database does not provide this search query ! Please upgrade libOpie !<br>" ); addressLabel->setText( output ); return; } // Define the query for birthdays and start search.. QDate lookAheadDate = QDate::currentDate().addDays( m_daysLookAhead ); int ammount = 0; if ( m_showBirthdays ){ - oerr << "Searching from now (" << QDate::currentDate().toString() << ") until " + owarn << "Searching from now (" << QDate::currentDate().toString() << ") until " << lookAheadDate.toString() << " ! " << oendl; } if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ Opie::OPimContact querybirthdays; querybirthdays.setBirthday( lookAheadDate ); m_list = m_contactdb->queryByExample( querybirthdays, Opie::OPimContactAccess::DateDiff ); if ( m_list.count() > 0 ){ output = "<font color=" + m_headlineColor + ">" + QObject::tr( "Next birthdays in <b> %1 </b> days:" ) .arg( m_daysLookAhead ) + "</font> <br>"; |