diff options
Diffstat (limited to 'libkpimexchange/core/exchangeclient.cpp')
-rw-r--r-- | libkpimexchange/core/exchangeclient.cpp | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/libkpimexchange/core/exchangeclient.cpp b/libkpimexchange/core/exchangeclient.cpp index 337e540fd..3a1c46cc5 100644 --- a/libkpimexchange/core/exchangeclient.cpp +++ b/libkpimexchange/core/exchangeclient.cpp @@ -43,7 +43,7 @@ using namespace KPIM; ExchangeClient::ExchangeClient( ExchangeAccount *account, - const QString &timeZoneId ) + const TQString &timeZoneId ) : mWindow( 0 ), mTimeZoneId( timeZoneId ) { kdDebug() << "Creating ExchangeClient...\n"; @@ -58,22 +58,22 @@ ExchangeClient::~ExchangeClient() kdDebug() << "ExchangeClient destructor" << endl; } -void ExchangeClient::setWindow(QWidget *window) +void ExchangeClient::setWindow(TQWidget *window) { mWindow = window; } -QWidget *ExchangeClient::window() const +TQWidget *ExchangeClient::window() const { return mWindow; } -void ExchangeClient::setTimeZoneId( const QString& timeZoneId ) +void ExchangeClient::setTimeZoneId( const TQString& timeZoneId ) { mTimeZoneId = timeZoneId; } -QString ExchangeClient::timeZoneId() +TQString ExchangeClient::timeZoneId() { return mTimeZoneId; } @@ -93,11 +93,11 @@ void ExchangeClient::test() bool result = resource->open(); kdDebug() << "Result: " << result << endl; - resource->subscribeEvents( QDate( 2002, 12, 18 ), QDate( 2002, 12, 19 ) ); + resource->subscribeEvents( TQDate( 2002, 12, 18 ), TQDate( 2002, 12, 19 ) ); */ // mAccount->tryFindMailbox(); /* - QString query = + TQString query = "<propfind xmlns=\"DAV:\" xmlns:h=\"urn:schemas:httpmail:\">\r\n" " <allprop/>\r\n" "</propfind>\r\n"; @@ -113,13 +113,13 @@ void ExchangeClient::test2() kdDebug() << "Entering test2()" << endl; } /* -ExchangeMonitor* ExchangeClient::monitor( int pollMode, const QHostAddress& ownInterface ) +ExchangeMonitor* ExchangeClient::monitor( int pollMode, const TQHostAddress& ownInterface ) { return new ExchangeMonitor( mAccount, pollMode, ownInterface ); } */ -void ExchangeClient::download( KCal::Calendar *calendar, const QDate &start, - const QDate &end, bool showProgress ) +void ExchangeClient::download( KCal::Calendar *calendar, const TQDate &start, + const TQDate &end, bool showProgress ) { kdDebug() << "ExchangeClient::download1()" << endl; @@ -131,12 +131,12 @@ void ExchangeClient::download( KCal::Calendar *calendar, const QDate &start, ExchangeDownload *worker = new ExchangeDownload( mAccount, mWindow ); worker->download( calendar, start, end, showProgress ); connect( worker, - SIGNAL( finished( ExchangeDownload *, int, const QString & ) ), - SLOT( slotDownloadFinished( ExchangeDownload *, int, - const QString & ) ) ); + TQT_SIGNAL( finished( ExchangeDownload *, int, const TQString & ) ), + TQT_SLOT( slotDownloadFinished( ExchangeDownload *, int, + const TQString & ) ) ); } -void ExchangeClient::download( const QDate &start, const QDate &end, +void ExchangeClient::download( const TQDate &start, const TQDate &end, bool showProgress ) { kdDebug() << "ExchangeClient::download2()" << endl; @@ -149,11 +149,11 @@ void ExchangeClient::download( const QDate &start, const QDate &end, ExchangeDownload *worker = new ExchangeDownload( mAccount, mWindow ); worker->download( start, end, showProgress ); connect( worker, - SIGNAL( finished( ExchangeDownload *, int, const QString & ) ), - SLOT( slotDownloadFinished( ExchangeDownload *, int, - const QString & ) ) ); - connect( worker, SIGNAL( gotEvent( KCal::Event *, const KURL & ) ), - SIGNAL( event( KCal::Event *, const KURL & ) ) ); + TQT_SIGNAL( finished( ExchangeDownload *, int, const TQString & ) ), + TQT_SLOT( slotDownloadFinished( ExchangeDownload *, int, + const TQString & ) ) ); + connect( worker, TQT_SIGNAL( gotEvent( KCal::Event *, const KURL & ) ), + TQT_SIGNAL( event( KCal::Event *, const KURL & ) ) ); } void ExchangeClient::upload( KCal::Event *event ) @@ -167,8 +167,8 @@ void ExchangeClient::upload( KCal::Event *event ) ExchangeUpload *worker = new ExchangeUpload( event, mAccount, mTimeZoneId, mWindow ); - connect( worker, SIGNAL( finished( ExchangeUpload *, int, const QString & ) ), - SLOT( slotUploadFinished( ExchangeUpload *, int, const QString & ) ) ); + connect( worker, TQT_SIGNAL( finished( ExchangeUpload *, int, const TQString & ) ), + TQT_SLOT( slotUploadFinished( ExchangeUpload *, int, const TQString & ) ) ); } void ExchangeClient::remove( KCal::Event *event ) @@ -179,31 +179,31 @@ void ExchangeClient::remove( KCal::Event *event ) } ExchangeDelete *worker = new ExchangeDelete( event, mAccount, mWindow ); - connect( worker, SIGNAL( finished( ExchangeDelete *, int, const QString & ) ), - SLOT( slotRemoveFinished( ExchangeDelete *, int, const QString & ) ) ); + connect( worker, TQT_SIGNAL( finished( ExchangeDelete *, int, const TQString & ) ), + TQT_SLOT( slotRemoveFinished( ExchangeDelete *, int, const TQString & ) ) ); } void ExchangeClient::slotDownloadFinished( ExchangeDownload *worker, - int result, const QString &moreInfo ) + int result, const TQString &moreInfo ) { emit downloadFinished( result, moreInfo ); worker->deleteLater(); } -void ExchangeClient::slotDownloadFinished( ExchangeDownload* worker, int result, const QString& moreInfo, QPtrList<KCal::Event>& events ) +void ExchangeClient::slotDownloadFinished( ExchangeDownload* worker, int result, const TQString& moreInfo, TQPtrList<KCal::Event>& events ) { emit downloadFinished( result, moreInfo, events ); worker->deleteLater(); } -void ExchangeClient::slotUploadFinished( ExchangeUpload* worker, int result, const QString& moreInfo ) +void ExchangeClient::slotUploadFinished( ExchangeUpload* worker, int result, const TQString& moreInfo ) { kdDebug() << "ExchangeClient::slotUploadFinished()" << endl; emit uploadFinished( result, moreInfo ); worker->deleteLater(); } -void ExchangeClient::slotRemoveFinished( ExchangeDelete* worker, int result, const QString& moreInfo ) +void ExchangeClient::slotRemoveFinished( ExchangeDelete* worker, int result, const TQString& moreInfo ) { kdDebug() << "ExchangeClient::slotRemoveFinished()" << endl; emit removeFinished( result, moreInfo ); @@ -211,27 +211,27 @@ void ExchangeClient::slotRemoveFinished( ExchangeDelete* worker, int result, con } int ExchangeClient::downloadSynchronous( KCal::Calendar *calendar, - const QDate &start, const QDate &end, + const TQDate &start, const TQDate &end, bool showProgress ) { kdDebug() << "ExchangeClient::downloadSynchronous()" << endl; mClientState = WaitingForResult; - connect( this, SIGNAL( downloadFinished( int, const QString & ) ), - SLOT( slotSyncFinished( int, const QString & ) ) ); + connect( this, TQT_SIGNAL( downloadFinished( int, const TQString & ) ), + TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); download( calendar, start, end, showProgress ); // TODO: Remove this busy loop - QApplication::setOverrideCursor + TQApplication::setOverrideCursor ( KCursor::waitCursor() ); do { qApp->processEvents(); } while ( mClientState == WaitingForResult ); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); - disconnect( this, SIGNAL( downloadFinished( int, const QString & ) ), - this, SLOT( slotSyncFinished( int, const QString & ) ) ); + disconnect( this, TQT_SIGNAL( downloadFinished( int, const TQString & ) ), + this, TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); return mSyncResult; } @@ -239,42 +239,42 @@ int ExchangeClient::downloadSynchronous( KCal::Calendar *calendar, int ExchangeClient::uploadSynchronous( KCal::Event* event ) { mClientState = WaitingForResult; - connect( this, SIGNAL( uploadFinished( int, const QString & ) ), - SLOT( slotSyncFinished( int, const QString & ) ) ); + connect( this, TQT_SIGNAL( uploadFinished( int, const TQString & ) ), + TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); upload( event ); // TODO: Remove this busy loop - QApplication::setOverrideCursor( KCursor::waitCursor() ); + TQApplication::setOverrideCursor( KCursor::waitCursor() ); do { qApp->processEvents(); } while ( mClientState == WaitingForResult ); - QApplication::restoreOverrideCursor(); - disconnect( this, SIGNAL( uploadFinished( int, const QString & ) ), - this, SLOT( slotSyncFinished( int, const QString & ) ) ); + TQApplication::restoreOverrideCursor(); + disconnect( this, TQT_SIGNAL( uploadFinished( int, const TQString & ) ), + this, TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); return mSyncResult; } int ExchangeClient::removeSynchronous( KCal::Event* event ) { mClientState = WaitingForResult; - connect( this, SIGNAL( removeFinished( int, const QString & ) ), - SLOT( slotSyncFinished( int, const QString & ) ) ); + connect( this, TQT_SIGNAL( removeFinished( int, const TQString & ) ), + TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); remove( event ); // TODO: Remove this busy loop - QApplication::setOverrideCursor( KCursor::waitCursor() ); + TQApplication::setOverrideCursor( KCursor::waitCursor() ); do { qApp->processEvents(); } while ( mClientState == WaitingForResult ); - QApplication::restoreOverrideCursor(); - disconnect( this, SIGNAL( removeFinished( int, const QString & ) ), - this, SLOT( slotSyncFinished( int, const QString & ) ) ); + TQApplication::restoreOverrideCursor(); + disconnect( this, TQT_SIGNAL( removeFinished( int, const TQString & ) ), + this, TQT_SLOT( slotSyncFinished( int, const TQString & ) ) ); return mSyncResult; } -void ExchangeClient::slotSyncFinished( int result, const QString &moreInfo ) +void ExchangeClient::slotSyncFinished( int result, const TQString &moreInfo ) { kdDebug() << "Exchangeclient::slotSyncFinished("<<result<<","<<moreInfo<<")" << endl; if ( mClientState == WaitingForResult ) { @@ -284,7 +284,7 @@ void ExchangeClient::slotSyncFinished( int result, const QString &moreInfo ) } } -QString ExchangeClient::detailedErrorString() +TQString ExchangeClient::detailedErrorString() { return mDetailedErrorString; } |