summaryrefslogtreecommitdiffstats
path: root/korganizer/freebusymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/freebusymanager.cpp')
-rw-r--r--korganizer/freebusymanager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/freebusymanager.cpp b/korganizer/freebusymanager.cpp
index 59775f07..ec32367b 100644
--- a/korganizer/freebusymanager.cpp
+++ b/korganizer/freebusymanager.cpp
@@ -80,7 +80,7 @@ FreeBusyDownloadJob::FreeBusyDownloadJob( const TQString &email, const KURL &url
KIO::TransferJob *job = KIO::get( url, false, false );
//pass the mainwindow to the job so any prompts are active
KOrg::MainWindow *korg = ActionManager::findInstance( KURL() );
- job->setWindow( korg->topLevelWidget() );
+ job->setWindow( korg->tqtopLevelWidget() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
TQT_SLOT( slotResult( KIO::Job * ) ) );
@@ -140,7 +140,7 @@ void FreeBusyManager::setCalendar( KCal::Calendar *c )
KCal::FreeBusy *FreeBusyManager::ownerFreeBusy()
{
- TQDateTime start = TQDateTime::currentDateTime();
+ TQDateTime start = TQDateTime::tqcurrentDateTime();
TQDateTime end = start.addDays( KOPrefs::instance()->mFreeBusyPublishDays );
FreeBusy *freebusy = new FreeBusy( mCalendar, start, end );
@@ -176,13 +176,13 @@ void FreeBusyManager::slotPerhapsUploadFB()
// A timer is already running, so we don't need to do anything
return;
- int now = static_cast<int>( TQDateTime::currentDateTime().toTime_t() );
+ int now = static_cast<int>( TQDateTime::tqcurrentDateTime().toTime_t() );
int eta = static_cast<int>( mNextUploadTime.toTime_t() ) - now;
if( !mUploadingFreeBusy ) {
// Not currently uploading
if( mNextUploadTime.isNull() ||
- TQDateTime::currentDateTime() > mNextUploadTime ) {
+ TQDateTime::tqcurrentDateTime() > mNextUploadTime ) {
// No uploading have been done in this session, or delay time is over
publishFreeBusy();
return;
@@ -245,7 +245,7 @@ void FreeBusyManager::publishFreeBusy()
if ( !targetURL.isValid() ) {
KMessageBox::sorry( 0,
i18n( "<qt>The target URL '%1' provided is invalid."
- "</qt>" ).arg( targetURL.prettyURL() ), i18n("Invalid URL") );
+ "</qt>" ).tqarg( targetURL.prettyURL() ), i18n("Invalid URL") );
mBrokenUrl = true;
return;
}
@@ -271,7 +271,7 @@ void FreeBusyManager::publishFreeBusy()
}
// Save the time of the next free/busy uploading
- mNextUploadTime = TQDateTime::currentDateTime();
+ mNextUploadTime = TQDateTime::tqcurrentDateTime();
if( KOPrefs::instance()->mFreeBusyPublishDelay > 0 )
mNextUploadTime = mNextUploadTime.addSecs(
KOPrefs::instance()->mFreeBusyPublishDelay * 60 );
@@ -337,7 +337,7 @@ void FreeBusyManager::publishFreeBusy()
false /*don't show progress info*/ );
//pass the mainwindow to the job so any prompts are active
KOrg::MainWindow *korg = ActionManager::findInstance( KURL() );
- job->setWindow( korg->topLevelWidget() );
+ job->setWindow( korg->tqtopLevelWidget() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
TQT_SLOT( slotUploadFreeBusyResult( KIO::Job * ) ) );
@@ -353,8 +353,8 @@ void FreeBusyManager::slotUploadFreeBusyResult(KIO::Job *_job)
"URL '%1'. There might be a problem with the access rights, or "
"you specified an incorrect URL. The system said: <em>%2</em>."
"<br>Please check the URL or contact your system administrator."
- "</qt>" ).arg( job->destURL().prettyURL() )
- .arg( job->errorString() ) );
+ "</qt>" ).tqarg( job->destURL().prettyURL() )
+ .tqarg( job->errorString() ) );
// Delete temp file
KURL src = job->srcURL();
Q_ASSERT( src.isLocalFile() );
@@ -557,7 +557,7 @@ KURL FreeBusyManager::freeBusyUrl( const TQString &email )
// This means that if the trailing slash is not entered, we can treat this as a custom, non-Kolab URL!
// In that case, just pass it on through with substitution for %u and %d
// TODO: May want an explicit configuration option in kogroupwareprefspage.ui for this
- if ((fullpathURL.url().endsWith("/", true) == false) || (fullpathURL.url().contains("%25u", true)) || (fullpathURL.url().contains("%25d", true))) {
+ if ((fullpathURL.url().tqendsWith("/", true) == false) || (fullpathURL.url().contains("%25u", true)) || (fullpathURL.url().contains("%25d", true))) {
// A generic URL, substitute %u and %d
fullpathURL = fullpathURL.url().replace("%25u", emailName, true);
fullpathURL = fullpathURL.url().replace("%25d", emailHost, true);