summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
authordrw <drw>2004-04-02 21:31:18 (UTC)
committer drw <drw>2004-04-02 21:31:18 (UTC)
commit67cf56e3907fba139e2d1ce612f9df29747b8201 (patch) (side-by-side diff)
tree6ac96d3dda59f675f0c60c336a80e82d0ea67ed6 /core/pim/today/plugins/addressbook/addresspluginwidget.cpp
parentebe03c3cd5d2bc1e1ae94f123da7ab27b2188f6a (diff)
downloadopie-67cf56e3907fba139e2d1ce612f9df29747b8201.zip
opie-67cf56e3907fba139e2d1ce612f9df29747b8201.tar.gz
opie-67cf56e3907fba139e2d1ce612f9df29747b8201.tar.bz2
Use ODebug (another 2 down...)
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
index ea387d6..b48d4a7 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
@@ -9,25 +9,25 @@
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "addresspluginwidget.h"
-
+#include <opie2/odebug.h>
#include <opie2/opimcontact.h>
#include <qpe/config.h>
AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name )
: QWidget( parent, name ) {
addressLabel = 0l;
m_contactdb = 0l;
layoutTodo = 0l;
// Hä ? Nonsense ! (se)
@@ -42,25 +42,25 @@ AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char*
readConfig();
getAddress();
}
AddressBookPluginWidget::~AddressBookPluginWidget() {
delete m_contactdb;
}
void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* )
{
- qWarning(" AddressBookPluginWidget::Database was changed externally ! ");
+ Opie::Core::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" );
@@ -96,27 +96,26 @@ void AddressBookPluginWidget::getAddress() {
// 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 ){
- qWarning("Searching from now (%s) until %s ! ",
- QDate::currentDate().toString().latin1(),
- lookAheadDate.toString().latin1() );
+ Opie::Core::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 + ">"