diff options
Diffstat (limited to 'libkcal/calendarresources.cpp')
-rw-r--r-- | libkcal/calendarresources.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/libkcal/calendarresources.cpp b/libkcal/calendarresources.cpp index d6ef5c796..94ce0ca31 100644 --- a/libkcal/calendarresources.cpp +++ b/libkcal/calendarresources.cpp @@ -28,9 +28,9 @@ */ #include <stdlib.h> -#include <qdatetime.h> -#include <qstring.h> -#include <qptrlist.h> +#include <tqdatetime.h> +#include <tqstring.h> +#include <tqptrlist.h> #include <kdebug.h> #include <kstandarddirs.h> @@ -64,7 +64,7 @@ ResourceCalendar ResourceCalendar *CalendarResources::AskDestinationPolicy::destination( Incidence * ) { - QPtrList<KRES::Resource> list; + TQPtrList<KRES::Resource> list; CalendarResourceManager::ActiveIterator it; for ( it = resourceManager()->activeBegin(); @@ -83,14 +83,14 @@ ResourceCalendar return static_cast<ResourceCalendar *>( r ); } -CalendarResources::CalendarResources( const QString &timeZoneId, - const QString &family ) +CalendarResources::CalendarResources( const TQString &timeZoneId, + const TQString &family ) : Calendar( timeZoneId ) { init( family ); } -void CalendarResources::init( const QString &family ) +void CalendarResources::init( const TQString &family ) { kdDebug(5800) << "CalendarResources::init( " << family << " )" << endl; @@ -135,7 +135,7 @@ void CalendarResources::load() (*i1)->setTimeZoneId( timeZoneId() ); } - QValueList<ResourceCalendar *> failed; + TQValueList<ResourceCalendar *> failed; // Open all active resources CalendarResourceManager::ActiveIterator it; @@ -151,7 +151,7 @@ void CalendarResources::load() } } - QValueList<ResourceCalendar *>::ConstIterator it2; + TQValueList<ResourceCalendar *>::ConstIterator it2; for ( it2 = failed.begin(); it2 != failed.end(); ++it2 ) { (*it2)->setActive( false ); emit signalResourceModified( *it2 ); @@ -160,7 +160,7 @@ void CalendarResources::load() mOpen = true; } -bool CalendarResources::reload( const QString &tz ) +bool CalendarResources::reload( const TQString &tz ) { save(); close(); @@ -179,12 +179,12 @@ void CalendarResources::setAskDestinationPolicy() mDestinationPolicy = mAskPolicy; } -QWidget *CalendarResources::dialogParentWidget() +TQWidget *CalendarResources::dialogParentWidget() { return mDestinationPolicy->parent(); } -void CalendarResources::setDialogParentWidget( QWidget *parent ) +void CalendarResources::setDialogParentWidget( TQWidget *parent ) { mDestinationPolicy->setParent( parent ); } @@ -322,7 +322,7 @@ bool CalendarResources::deleteEvent( Event *event ) return status; } -Event *CalendarResources::event( const QString &uid ) +Event *CalendarResources::event( const TQString &uid ) { CalendarResourceManager::ActiveIterator it; for ( it = mManager->activeBegin(); it != mManager->activeEnd(); ++it ) { @@ -386,7 +386,7 @@ Todo::List CalendarResources::rawTodos( TodoSortField sortField, return sortTodos( &result, sortField, sortDirection ); } -Todo *CalendarResources::todo( const QString &uid ) +Todo *CalendarResources::todo( const TQString &uid ) { kdDebug(5800) << "CalendarResources::todo(uid)" << endl; @@ -403,7 +403,7 @@ Todo *CalendarResources::todo( const QString &uid ) return 0; } -Todo::List CalendarResources::rawTodosForDate( const QDate &date ) +Todo::List CalendarResources::rawTodosForDate( const TQDate &date ) { Todo::List result; @@ -420,7 +420,7 @@ Todo::List CalendarResources::rawTodosForDate( const QDate &date ) return result; } -Alarm::List CalendarResources::alarmsTo( const QDateTime &to ) +Alarm::List CalendarResources::alarmsTo( const TQDateTime &to ) { kdDebug(5800) << "CalendarResources::alarmsTo" << endl; @@ -435,8 +435,8 @@ Alarm::List CalendarResources::alarmsTo( const QDateTime &to ) return result; } -Alarm::List CalendarResources::alarms( const QDateTime &from, - const QDateTime &to ) +Alarm::List CalendarResources::alarms( const TQDateTime &from, + const TQDateTime &to ) { Alarm::List result; CalendarResourceManager::ActiveIterator resit; @@ -451,7 +451,7 @@ Alarm::List CalendarResources::alarms( const QDateTime &from, /****************************** PROTECTED METHODS ****************************/ -Event::List CalendarResources::rawEventsForDate( const QDate &date, +Event::List CalendarResources::rawEventsForDate( const TQDate &date, EventSortField sortField, SortDirection sortDirection ) { @@ -468,7 +468,7 @@ Event::List CalendarResources::rawEventsForDate( const QDate &date, return sortEvents( &result, sortField, sortDirection ); } -Event::List CalendarResources::rawEvents( const QDate &start, const QDate &end, +Event::List CalendarResources::rawEvents( const TQDate &start, const TQDate &end, bool inclusive ) { kdDebug(5800) << "CalendarResources::rawEvents(start,end,inclusive)" << endl; @@ -486,7 +486,7 @@ Event::List CalendarResources::rawEvents( const QDate &start, const QDate &end, return result; } -Event::List CalendarResources::rawEventsForDate( const QDateTime &qdt ) +Event::List CalendarResources::rawEventsForDate( const TQDateTime &qdt ) { kdDebug(5800) << "CalendarResources::rawEventsForDate(qdt)" << endl; @@ -557,7 +557,7 @@ bool CalendarResources::addJournal( Journal *journal, return addIncidence( journal, resource ); } -Journal *CalendarResources::journal( const QString &uid ) +Journal *CalendarResources::journal( const TQString &uid ) { kdDebug(5800) << "CalendarResources::journal(uid)" << endl; @@ -592,7 +592,7 @@ Journal::List CalendarResources::rawJournals( JournalSortField sortField, return sortJournals( &result, sortField, sortDirection ); } -Journal::List CalendarResources::rawJournalsForDate( const QDate &date ) +Journal::List CalendarResources::rawJournalsForDate( const TQDate &date ) { Journal::List result; @@ -611,17 +611,17 @@ Journal::List CalendarResources::rawJournalsForDate( const QDate &date ) void CalendarResources::connectResource( ResourceCalendar *resource ) { - connect( resource, SIGNAL( resourceChanged( ResourceCalendar * ) ), - SIGNAL( calendarChanged() ) ); - connect( resource, SIGNAL( resourceSaved( ResourceCalendar * ) ), - SIGNAL( calendarSaved() ) ); + connect( resource, TQT_SIGNAL( resourceChanged( ResourceCalendar * ) ), + TQT_SIGNAL( calendarChanged() ) ); + connect( resource, TQT_SIGNAL( resourceSaved( ResourceCalendar * ) ), + TQT_SIGNAL( calendarSaved() ) ); - connect( resource, SIGNAL( resourceLoadError( ResourceCalendar *, - const QString & ) ), - SLOT( slotLoadError( ResourceCalendar *, const QString & ) ) ); - connect( resource, SIGNAL( resourceSaveError( ResourceCalendar *, - const QString & ) ), - SLOT( slotSaveError( ResourceCalendar *, const QString & ) ) ); + connect( resource, TQT_SIGNAL( resourceLoadError( ResourceCalendar *, + const TQString & ) ), + TQT_SLOT( slotLoadError( ResourceCalendar *, const TQString & ) ) ); + connect( resource, TQT_SIGNAL( resourceSaveError( ResourceCalendar *, + const TQString & ) ), + TQT_SLOT( slotSaveError( ResourceCalendar *, const TQString & ) ) ); } ResourceCalendar *CalendarResources::resource( Incidence *incidence ) @@ -662,7 +662,7 @@ void CalendarResources::resourceDeleted( ResourceCalendar *resource ) emit signalResourceDeleted( resource ); } -void CalendarResources::doSetTimeZoneId( const QString &timeZoneId ) +void CalendarResources::doSetTimeZoneId( const TQString &timeZoneId ) { // set the timezone for all resources. Otherwise we'll have those terrible // tz troubles ;-(( @@ -672,7 +672,7 @@ void CalendarResources::doSetTimeZoneId( const QString &timeZoneId ) } } -void CalendarResources::setTimeZoneIdViewOnly( const QString &timeZoneId ) +void CalendarResources::setTimeZoneIdViewOnly( const TQString &timeZoneId ) { reload( timeZoneId ); } @@ -798,12 +798,12 @@ int CalendarResources::decrementChangeCount( ResourceCalendar *r ) return count; } -void CalendarResources::slotLoadError( ResourceCalendar *, const QString &err ) +void CalendarResources::slotLoadError( ResourceCalendar *, const TQString &err ) { emit signalErrorMessage( err ); } -void CalendarResources::slotSaveError( ResourceCalendar *, const QString &err ) +void CalendarResources::slotSaveError( ResourceCalendar *, const TQString &err ) { emit signalErrorMessage( err ); } |