9 files changed, 79 insertions, 79 deletions
diff --git a/core/pim/today/plugins/addressbook/addressbook.pro b/core/pim/today/plugins/addressbook/addressbook.pro index cf0ff97..e65f31e 100644 --- a/core/pim/today/plugins/addressbook/addressbook.pro +++ b/core/pim/today/plugins/addressbook/addressbook.pro | |||
@@ -6,12 +6,12 @@ CONFIG += qt plugin release | |||
6 | HEADERS = addressplugin.h addresspluginimpl.h addresspluginconfig.h \ | 6 | HEADERS = addressplugin.h addresspluginimpl.h addresspluginconfig.h \ |
7 | addresspluginwidget.h | 7 | addresspluginwidget.h |
8 | SOURCES = addressplugin.cpp addresspluginimpl.cpp addresspluginconfig.cpp \ | 8 | SOURCES = addressplugin.cpp addresspluginimpl.cpp addresspluginconfig.cpp \ |
9 | addresspluginwidget.cpp | 9 | addresspluginwidget.cpp |
10 | 10 | ||
11 | INCLUDEPATH += $(OPIEDIR)/include \ | 11 | INCLUDEPATH += $(OPIEDIR)/include \ |
12 | ../ ../library | 12 | ../ ../library |
13 | DEPENDPATH += $(OPIEDIR)/include \ | 13 | DEPENDPATH += $(OPIEDIR)/include \ |
14 | ../ ../library | 14 | ../ ../library |
15 | 15 | ||
16 | LIBS+= -lqpe -lopie | 16 | LIBS+= -lqpe -lopiecore2 -lopieui2 -lopiepim2 -lopiedb2 -lqtaux2 |
17 | 17 | ||
diff --git a/core/pim/today/plugins/addressbook/addressplugin.h b/core/pim/today/plugins/addressbook/addressplugin.h index 0b3b065..e664d5f 100644 --- a/core/pim/today/plugins/addressbook/addressplugin.h +++ b/core/pim/today/plugins/addressbook/addressplugin.h | |||
@@ -21,9 +21,9 @@ | |||
21 | 21 | ||
22 | #include <qstring.h> | 22 | #include "addresspluginwidget.h" |
23 | #include <qwidget.h> | ||
24 | 23 | ||
25 | #include <opie/oclickablelabel.h> | 24 | #include <opie2/oclickablelabel.h> |
26 | #include <opie/todayplugininterface.h> | 25 | #include <opie2/todayplugininterface.h> |
27 | 26 | ||
28 | #include "addresspluginwidget.h" | 27 | #include <qstring.h> |
28 | #include <qwidget.h> | ||
29 | 29 | ||
@@ -47,3 +47,3 @@ public: | |||
47 | private: | 47 | private: |
48 | AddressBookPluginWidget* m_abWidget; | 48 | AddressBookPluginWidget* m_abWidget; |
49 | }; | 49 | }; |
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp index 8c55937..81bb8fd 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp | |||
@@ -88,3 +88,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
88 | colorLabel2->setText( tr( "Set Headline Color: " ) ); | 88 | colorLabel2->setText( tr( "Set Headline Color: " ) ); |
89 | headlineColor = new OColorButton( box5, black , "headlineColor" ); | 89 | headlineColor = new Opie::OColorButton( box5, black , "headlineColor" ); |
90 | QWhatsThis::add( headlineColor , tr( "Colors for the headlines !" ) ); | 90 | QWhatsThis::add( headlineColor , tr( "Colors for the headlines !" ) ); |
@@ -95,3 +95,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
95 | colorLabel3->setText( tr( "Set Entry Color: " ) ); | 95 | colorLabel3->setText( tr( "Set Entry Color: " ) ); |
96 | entryColor = new OColorButton( box6, black , "entryColor" ); | 96 | entryColor = new Opie::OColorButton( box6, black , "entryColor" ); |
97 | QWhatsThis::add( entryColor , tr( "This color will be used for shown birthdays/anniversaries !" ) ); | 97 | QWhatsThis::add( entryColor , tr( "This color will be used for shown birthdays/anniversaries !" ) ); |
@@ -106,3 +106,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
106 | colorLabel6->setText( tr( " days: " ) ); | 106 | colorLabel6->setText( tr( " days: " ) ); |
107 | urgentColor = new OColorButton( box7, red , "urgentColor" ); | 107 | urgentColor = new Opie::OColorButton( box7, red , "urgentColor" ); |
108 | QWhatsThis::add( urgentColor , tr( "This urgent color will be used if we are close to the event !" ) ); | 108 | QWhatsThis::add( urgentColor , tr( "This urgent color will be used if we are close to the event !" ) ); |
@@ -144,3 +144,3 @@ void AddressBookPluginConfig::readConfig() { | |||
144 | m_showAnniversaryButton->setChecked( cfg.readBoolEntry( "showAnniversaries", true ) ); | 144 | m_showAnniversaryButton->setChecked( cfg.readBoolEntry( "showAnniversaries", true ) ); |
145 | 145 | ||
146 | } | 146 | } |
@@ -159,3 +159,3 @@ void AddressBookPluginConfig::writeConfig() { | |||
159 | if ( m_urgentDays > m_daysLookAhead ) | 159 | if ( m_urgentDays > m_daysLookAhead ) |
160 | m_urgentDays = m_daysLookAhead; | 160 | m_urgentDays = m_daysLookAhead; |
161 | cfg.writeEntry( "urgentdays", m_urgentDays ); | 161 | cfg.writeEntry( "urgentdays", m_urgentDays ); |
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.h b/core/pim/today/plugins/addressbook/addresspluginconfig.h index 5626e5d..e065ca2 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.h +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.h | |||
@@ -21,2 +21,5 @@ | |||
21 | 21 | ||
22 | #include <opie2/todayconfigwidget.h> | ||
23 | #include <opie2/ocolorbutton.h> | ||
24 | |||
22 | #include <qwidget.h> | 25 | #include <qwidget.h> |
@@ -25,5 +28,2 @@ | |||
25 | 28 | ||
26 | #include <opie/todayconfigwidget.h> | ||
27 | #include <opie/ocolorbutton.h> | ||
28 | |||
29 | class AddressBookPluginConfig : public TodayConfigWidget { | 29 | class AddressBookPluginConfig : public TodayConfigWidget { |
@@ -48,5 +48,5 @@ private: | |||
48 | QSpinBox* SpinUrgentClip; | 48 | QSpinBox* SpinUrgentClip; |
49 | OColorButton* entryColor; | 49 | Opie::OColorButton* entryColor; |
50 | OColorButton* headlineColor; | 50 | Opie::OColorButton* headlineColor; |
51 | OColorButton* urgentColor; | 51 | Opie::OColorButton* urgentColor; |
52 | QRadioButton* m_showBirthdayButton; | 52 | QRadioButton* m_showBirthdayButton; |
diff --git a/core/pim/today/plugins/addressbook/addresspluginimpl.h b/core/pim/today/plugins/addressbook/addresspluginimpl.h index bf321da..9716787 100644 --- a/core/pim/today/plugins/addressbook/addresspluginimpl.h +++ b/core/pim/today/plugins/addressbook/addresspluginimpl.h | |||
@@ -21,3 +21,3 @@ | |||
21 | 21 | ||
22 | #include <opie/todayplugininterface.h> | 22 | #include <opie2/todayplugininterface.h> |
23 | 23 | ||
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index b0d456d..ea387d6 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -21,5 +21,5 @@ | |||
21 | 21 | ||
22 | #include <qpe/config.h> | 22 | #include <opie2/opimcontact.h> |
23 | 23 | ||
24 | #include <opie/ocontact.h> | 24 | #include <qpe/config.h> |
25 | 25 | ||
@@ -37,6 +37,6 @@ AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* | |||
37 | 37 | ||
38 | m_contactdb = new OContactAccess("addressplugin"); | 38 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); |
39 | 39 | ||
40 | connect( m_contactdb, SIGNAL( signalChanged(const OContactAccess*) ), | 40 | connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), |
41 | this, SLOT( refresh(const OContactAccess*) ) ); | 41 | this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); |
42 | 42 | ||
@@ -51,3 +51,3 @@ AddressBookPluginWidget::~AddressBookPluginWidget() { | |||
51 | 51 | ||
52 | void AddressBookPluginWidget::refresh( const OContactAccess* ) | 52 | void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* ) |
53 | { | 53 | { |
@@ -88,3 +88,3 @@ void AddressBookPluginWidget::getAddress() { | |||
88 | if ( ! addressLabel ) { | 88 | if ( ! addressLabel ) { |
89 | addressLabel = new OClickableLabel( this ); | 89 | addressLabel = new Opie::Ui::OClickableLabel( this ); |
90 | connect( addressLabel, SIGNAL( clicked() ), this, SLOT( startAddressBook() ) ); | 90 | connect( addressLabel, SIGNAL( clicked() ), this, SLOT( startAddressBook() ) ); |
@@ -92,3 +92,3 @@ void AddressBookPluginWidget::getAddress() { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | QString output; | 94 | QString output; |
@@ -96,3 +96,3 @@ void AddressBookPluginWidget::getAddress() { | |||
96 | // Check whether the database provide the search option.. | 96 | // Check whether the database provide the search option.. |
97 | if ( !m_contactdb->hasQuerySettings( OContactAccess::DateDiff ) ){ | 97 | if ( !m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ |
98 | // Libopie seems to be old.. | 98 | // Libopie seems to be old.. |
@@ -112,10 +112,10 @@ void AddressBookPluginWidget::getAddress() { | |||
112 | 112 | ||
113 | if ( m_contactdb->hasQuerySettings( OContactAccess::DateDiff ) ){ | 113 | if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ |
114 | 114 | ||
115 | 115 | ||
116 | OContact querybirthdays; | 116 | Opie::OPimContact querybirthdays; |
117 | querybirthdays.setBirthday( lookAheadDate ); | 117 | querybirthdays.setBirthday( lookAheadDate ); |
118 | 118 | ||
119 | m_list = m_contactdb->queryByExample( querybirthdays, | 119 | m_list = m_contactdb->queryByExample( querybirthdays, |
120 | OContactAccess::DateDiff ); | 120 | Opie::OPimContactAccess::DateDiff ); |
121 | if ( m_list.count() > 0 ){ | 121 | if ( m_list.count() > 0 ){ |
@@ -127,27 +127,27 @@ void AddressBookPluginWidget::getAddress() { | |||
127 | if ( ammount++ < m_maxLinesTask ){ | 127 | if ( ammount++ < m_maxLinesTask ){ |
128 | // Now we want to calculate how many days | 128 | // Now we want to calculate how many days |
129 | //until birthday. We have to set | 129 | //until birthday. We have to set |
130 | // the correct year to calculate the day diff... | 130 | // the correct year to calculate the day diff... |
131 | QDate destdate = (*m_it).birthday(); | 131 | QDate destdate = (*m_it).birthday(); |
132 | destdate.setYMD( QDate::currentDate().year(), | 132 | destdate.setYMD( QDate::currentDate().year(), |
133 | destdate.month(), destdate.day() ); | 133 | destdate.month(), destdate.day() ); |
134 | if ( QDate::currentDate().daysTo(destdate) < 0 ) | 134 | if ( QDate::currentDate().daysTo(destdate) < 0 ) |
135 | destdate.setYMD( QDate::currentDate().year()+1, | 135 | destdate.setYMD( QDate::currentDate().year()+1, |
136 | destdate.month(), destdate.day() ); | 136 | destdate.month(), destdate.day() ); |
137 | 137 | ||
138 | 138 | ||
139 | if ( QDate::currentDate().daysTo(destdate) < m_urgentDays ) | 139 | if ( QDate::currentDate().daysTo(destdate) < m_urgentDays ) |
140 | output += "<font color=" + m_urgentColor + "><b>-" | 140 | output += "<font color=" + m_urgentColor + "><b>-" |
141 | + (*m_it).fullName() | 141 | + (*m_it).fullName() |
142 | + " (" | 142 | + " (" |
143 | + QString::number(QDate::currentDate() | 143 | + QString::number(QDate::currentDate() |
144 | .daysTo(destdate)) | 144 | .daysTo(destdate)) |
145 | + " Days) </b></font><br>"; | 145 | + " Days) </b></font><br>"; |
146 | 146 | ||
147 | else | 147 | else |
148 | output += "<font color=" + m_entryColor + "><b>-" | 148 | output += "<font color=" + m_entryColor + "><b>-" |
149 | + (*m_it).fullName() | 149 | + (*m_it).fullName() |
150 | + " (" | 150 | + " (" |
151 | + QString::number(QDate::currentDate() | 151 | + QString::number(QDate::currentDate() |
152 | .daysTo(destdate)) | 152 | .daysTo(destdate)) |
153 | + " Days) </b></font><br>"; | 153 | + " Days) </b></font><br>"; |
@@ -162,10 +162,10 @@ void AddressBookPluginWidget::getAddress() { | |||
162 | } | 162 | } |
163 | 163 | ||
164 | if ( m_showAnniversaries ){ | 164 | if ( m_showAnniversaries ){ |
165 | // Define the query for anniversaries and start search.. | 165 | // Define the query for anniversaries and start search.. |
166 | OContact queryanniversaries; | 166 | Opie::OPimContact queryanniversaries; |
167 | queryanniversaries.setAnniversary( lookAheadDate ); | 167 | queryanniversaries.setAnniversary( lookAheadDate ); |
168 | 168 | ||
169 | m_list = m_contactdb->queryByExample( queryanniversaries, OContactAccess::DateDiff ); | 169 | m_list = m_contactdb->queryByExample( queryanniversaries, Opie::OPimContactAccess::DateDiff ); |
170 | 170 | ||
171 | ammount = 0; | 171 | ammount = 0; |
@@ -178,9 +178,9 @@ void AddressBookPluginWidget::getAddress() { | |||
178 | if ( ammount++ < m_maxLinesTask ){ | 178 | if ( ammount++ < m_maxLinesTask ){ |
179 | // Now we want to calculate how many days until anniversary. | 179 | // Now we want to calculate how many days until anniversary. |
180 | // We have to set the correct year to calculate the day diff... | 180 | // We have to set the correct year to calculate the day diff... |
181 | QDate destdate = (*m_it).anniversary(); | 181 | QDate destdate = (*m_it).anniversary(); |
182 | destdate.setYMD( QDate::currentDate().year(), destdate.month(), | 182 | destdate.setYMD( QDate::currentDate().year(), destdate.month(), |
183 | destdate.day() ); | 183 | destdate.day() ); |
184 | if ( QDate::currentDate().daysTo(destdate) < 0 ) | 184 | if ( QDate::currentDate().daysTo(destdate) < 0 ) |
185 | destdate.setYMD( QDate::currentDate().year()+1, | 185 | destdate.setYMD( QDate::currentDate().year()+1, |
186 | destdate.month(), destdate.day() ); | 186 | destdate.month(), destdate.day() ); |
@@ -188,14 +188,14 @@ void AddressBookPluginWidget::getAddress() { | |||
188 | if ( QDate::currentDate().daysTo(destdate) < m_urgentDays ) | 188 | if ( QDate::currentDate().daysTo(destdate) < m_urgentDays ) |
189 | output += "<font color=" + m_urgentColor + "><b>-" | 189 | output += "<font color=" + m_urgentColor + "><b>-" |
190 | + (*m_it).fullName() | 190 | + (*m_it).fullName() |
191 | + " (" | 191 | + " (" |
192 | + QString::number(QDate::currentDate() | 192 | + QString::number(QDate::currentDate() |
193 | .daysTo( destdate ) ) | 193 | .daysTo( destdate ) ) |
194 | + " Days) </b></font><br>"; | 194 | + " Days) </b></font><br>"; |
195 | else | 195 | else |
196 | output += "<font color=" + m_entryColor + "><b>-" | 196 | output += "<font color=" + m_entryColor + "><b>-" |
197 | + (*m_it).fullName() | 197 | + (*m_it).fullName() |
198 | + " (" | 198 | + " (" |
199 | + QString::number(QDate::currentDate() | 199 | + QString::number(QDate::currentDate() |
200 | .daysTo( destdate ) ) | 200 | .daysTo( destdate ) ) |
201 | + " Days) </b></font><br>"; | 201 | + " Days) </b></font><br>"; |
@@ -204,3 +204,3 @@ void AddressBookPluginWidget::getAddress() { | |||
204 | } else { | 204 | } else { |
205 | output += "<font color=" + m_headlineColor + ">" | 205 | output += "<font color=" + m_headlineColor + ">" |
206 | + QObject::tr( "No anniversaries in <b> %1 </b> days!" ) | 206 | + QObject::tr( "No anniversaries in <b> %1 </b> days!" ) |
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.h b/core/pim/today/plugins/addressbook/addresspluginwidget.h index b0e3811..b1c690d 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.h +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.h | |||
@@ -21,2 +21,5 @@ | |||
21 | 21 | ||
22 | #include <opie2/ocontactaccess.h> | ||
23 | #include <opie2/oclickablelabel.h> | ||
24 | |||
22 | #include <qstring.h> | 25 | #include <qstring.h> |
@@ -25,5 +28,2 @@ | |||
25 | 28 | ||
26 | #include <opie/ocontactaccess.h> | ||
27 | #include <opie/oclickablelabel.h> | ||
28 | |||
29 | 29 | ||
@@ -39,3 +39,3 @@ public: | |||
39 | public slots: | 39 | public slots: |
40 | void refresh( const OContactAccess* db ); | 40 | void refresh( const Opie::OPimContactAccess* db ); |
41 | 41 | ||
@@ -45,8 +45,8 @@ protected slots: | |||
45 | private: | 45 | private: |
46 | OClickableLabel* addressLabel; | 46 | Opie::Ui::OClickableLabel* addressLabel; |
47 | QVBoxLayout* layoutTodo; | 47 | QVBoxLayout* layoutTodo; |
48 | OContactAccess * m_contactdb; | 48 | Opie::OPimContactAccess * m_contactdb; |
49 | 49 | ||
50 | OContactAccess::List m_list; | 50 | Opie::OPimContactAccess::List m_list; |
51 | OContactAccess::List::Iterator m_it; | 51 | Opie::OPimContactAccess::List::Iterator m_it; |
52 | 52 | ||
diff --git a/core/pim/today/plugins/addressbook/config.in b/core/pim/today/plugins/addressbook/config.in index aad6fc7..cf61a0e 100644 --- a/core/pim/today/plugins/addressbook/config.in +++ b/core/pim/today/plugins/addressbook/config.in | |||
@@ -3,2 +3,2 @@ | |||
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI && LIBOPIE2PIM && LIBOPIE2DB && LIBQTAUX |
diff --git a/core/pim/today/plugins/addressbook/opie-today-addressbookplugin.control b/core/pim/today/plugins/addressbook/opie-today-addressbookplugin.control index d40691a..2fd1435 100644 --- a/core/pim/today/plugins/addressbook/opie-today-addressbookplugin.control +++ b/core/pim/today/plugins/addressbook/opie-today-addressbookplugin.control | |||
@@ -6,3 +6,3 @@ Maintainer: Stefan Eilers <eilers.stefan@epost.de> | |||
6 | Architecture: arm | 6 | Architecture: arm |
7 | Depends: libqte2, opie-today | 7 | Depends: libqte2, opie-today, libopiecore2, libopieui2, libopiepim2, libopiedb2, libqtaux2 |
8 | Description: Addressbook plugin for Today | 8 | Description: Addressbook plugin for Today |