diff options
Diffstat (limited to 'kresources/birthdays/resourcekabc.cpp')
-rw-r--r-- | kresources/birthdays/resourcekabc.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kresources/birthdays/resourcekabc.cpp b/kresources/birthdays/resourcekabc.cpp index 9d86aa3dd..dc902c5bf 100644 --- a/kresources/birthdays/resourcekabc.cpp +++ b/kresources/birthdays/resourcekabc.cpp @@ -22,9 +22,9 @@ #include <typeinfo> #include <stdlib.h> -#include <qdatetime.h> -#include <qstring.h> -#include <qptrlist.h> +#include <tqdatetime.h> +#include <tqstring.h> +#include <tqptrlist.h> #include <klocale.h> #include <kdebug.h> @@ -65,7 +65,7 @@ extern "C" } ResourceKABC::ResourceKABC( const KConfig* config ) - : ResourceCalendar( config ), mCalendar( QString::fromLatin1( "UTC" ) ), + : ResourceCalendar( config ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { if ( config ) { @@ -76,7 +76,7 @@ ResourceKABC::ResourceKABC( const KConfig* config ) } ResourceKABC::ResourceKABC() - : ResourceCalendar( 0 ), mCalendar( QString::fromLatin1( "UTC" ) ), + : ResourceCalendar( 0 ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { init(); @@ -121,7 +121,7 @@ bool ResourceKABC::doOpen() kdDebug(5800) << "ResourceKABC::doOpen()" << endl; mAddressbook = KABC::StdAddressBook::self( true ); - connect( mAddressbook, SIGNAL(addressBookChanged(AddressBook*)), SLOT( reload() ) ); + connect( mAddressbook, TQT_SIGNAL(addressBookChanged(AddressBook*)), TQT_SLOT( reload() ) ); return true; } @@ -133,9 +133,9 @@ bool ResourceKABC::doLoad() mCalendar.close(); // import from kabc - QString summary; - QStringList::ConstIterator strIt; - const QStringList::ConstIterator endStrIt = mCategories.end(); + TQString summary; + TQStringList::ConstIterator strIt; + const TQStringList::ConstIterator endStrIt = mCategories.end(); KABC::Addressee::List anniversaries; KABC::Addressee::List::Iterator addrIt; @@ -145,7 +145,7 @@ bool ResourceKABC::doLoad() if ( mUseCategories ) { bool hasCategory = false; - QStringList categories = (*it).categories(); + TQStringList categories = (*it).categories(); for ( strIt = mCategories.begin(); strIt != endStrIt; ++strIt ) if ( categories.contains( *strIt ) ) { hasCategory = true; @@ -156,8 +156,8 @@ bool ResourceKABC::doLoad() continue; } - QDate birthdate = (*it).birthday().date(); - QString name_1, email_1, uid_1; + TQDate birthdate = (*it).birthday().date(); + TQString name_1, email_1, uid_1; if ( birthdate.isValid() ) { kdDebug(5800) << "found a birthday " << birthdate.toString() << endl; @@ -213,21 +213,21 @@ bool ResourceKABC::doLoad() kdDebug(5800) << "imported " << birthdate.toString() << endl; } - QString anniversary_string = (*it).custom( "KADDRESSBOOK", "X-Anniversary" ); + TQString anniversary_string = (*it).custom( "KADDRESSBOOK", "X-Anniversary" ); if (anniversary_string.isEmpty() ) continue; - QDateTime anniversary = QDate::fromString( anniversary_string, Qt::ISODate ); + TQDateTime anniversary = TQDate::fromString( anniversary_string, Qt::ISODate ); if ( !anniversary.isValid() ) continue; - QString name = (*it).custom( "KADDRESSBOOK", "X-SpousesName" ); + TQString name = (*it).custom( "KADDRESSBOOK", "X-SpousesName" ); if ( name.isEmpty() ) anniversaries.append( *it ); else { bool found = false; for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) { if ( name == (*addrIt).realName() ) { - QDateTime spouseAnniversary = QDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); + TQDateTime spouseAnniversary = TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); if ( anniversary == spouseAnniversary ) { found = true; break; @@ -242,21 +242,21 @@ bool ResourceKABC::doLoad() } for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) { - QDate anniversary = QDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); + TQDate anniversary = TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); kdDebug(5800) << "found a anniversary " << anniversary.toString() << endl; - QString name; - QString name_1 = (*addrIt).nickName(); - QString uid_1 = (*addrIt).uid(); - QString email_1 = (*addrIt).fullEmail(); + TQString name; + TQString name_1 = (*addrIt).nickName(); + TQString uid_1 = (*addrIt).uid(); + TQString email_1 = (*addrIt).fullEmail(); if ( name_1.isEmpty() ) name_1 = (*addrIt).realName(); - QString spouseName = (*addrIt).custom( "KADDRESSBOOK", "X-SpousesName" ); - QString name_2,email_2,uid_2; + TQString spouseName = (*addrIt).custom( "KADDRESSBOOK", "X-SpousesName" ); + TQString name_2,email_2,uid_2; if ( !spouseName.isEmpty() ) { //TODO: find a KABC:Addressee of the spouse - // Probably easiest would be to use a QMap (as the spouse's entry was already searched above! + // Probably easiest would be to use a TQMap (as the spouse's entry was already searched above! KABC::Addressee spouse; spouse.setNameFromString( spouseName ); uid_2 = spouse.uid(); @@ -341,12 +341,12 @@ int ResourceKABC::alarmDays() return mAlarmDays; } -void ResourceKABC::setCategories( const QStringList &categories ) +void ResourceKABC::setCategories( const TQStringList &categories ) { mCategories = categories; } -QStringList ResourceKABC::categories() const +TQStringList ResourceKABC::categories() const { return mCategories; } @@ -389,25 +389,25 @@ bool ResourceKABC::deleteEvent(Event*) } -Event *ResourceKABC::event( const QString &uid ) +Event *ResourceKABC::event( const TQString &uid ) { return mCalendar.event( uid ); } -Event::List ResourceKABC::rawEventsForDate( const QDate &date, +Event::List ResourceKABC::rawEventsForDate( const TQDate &date, EventSortField sortField, SortDirection sortDirection ) { return mCalendar.rawEventsForDate( date, sortField, sortDirection ); } -Event::List ResourceKABC::rawEvents( const QDate &start, const QDate &end, +Event::List ResourceKABC::rawEvents( const TQDate &start, const TQDate &end, bool inclusive ) { return mCalendar.rawEvents( start, end, inclusive ); } -Event::List ResourceKABC::rawEventsForDate(const QDateTime &qdt) +Event::List ResourceKABC::rawEventsForDate(const TQDateTime &qdt) { return mCalendar.rawEventsForDate( qdt.date() ); } @@ -433,12 +433,12 @@ Todo::List ResourceKABC::rawTodos( TodoSortField sortField, SortDirection sortDi return mCalendar.rawTodos( sortField, sortDirection ); } -Todo *ResourceKABC::todo( const QString &uid ) +Todo *ResourceKABC::todo( const TQString &uid ) { return mCalendar.todo( uid ); } -Todo::List ResourceKABC::rawTodosForDate( const QDate &date ) +Todo::List ResourceKABC::rawTodosForDate( const TQDate &date ) { return mCalendar.rawTodosForDate( date ); } @@ -454,7 +454,7 @@ bool ResourceKABC::deleteJournal(Journal*) return false; } -Journal *ResourceKABC::journal(const QString &uid) +Journal *ResourceKABC::journal(const TQString &uid) { return mCalendar.journal( uid ); } @@ -464,17 +464,17 @@ Journal::List ResourceKABC::rawJournals( JournalSortField sortField, SortDirecti return mCalendar.rawJournals( sortField, sortDirection ); } -Journal::List ResourceKABC::rawJournalsForDate( const QDate &date ) +Journal::List ResourceKABC::rawJournalsForDate( const TQDate &date ) { return mCalendar.rawJournalsForDate( date ); } -Alarm::List ResourceKABC::alarmsTo( const QDateTime &to ) +Alarm::List ResourceKABC::alarmsTo( const TQDateTime &to ) { return mCalendar.alarmsTo( to ); } -Alarm::List ResourceKABC::alarms( const QDateTime &from, const QDateTime &to ) +Alarm::List ResourceKABC::alarms( const TQDateTime &from, const TQDateTime &to ) { // kdDebug(5800) << "ResourceKABC::alarms(" << from.toString() << " - " << to.toString() << ")\n"; @@ -492,7 +492,7 @@ void ResourceKABC::reload() emit resourceChanged( this ); } -void ResourceKABC::setTimeZoneId( const QString& tzid ) +void ResourceKABC::setTimeZoneId( const TQString& tzid ) { mCalendar.setTimeZoneId( tzid ); } |