diff options
Diffstat (limited to 'libkdepim/broadcaststatus.cpp')
-rw-r--r-- | libkdepim/broadcaststatus.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libkdepim/broadcaststatus.cpp b/libkdepim/broadcaststatus.cpp index b566bd4b2..fb48f05ca 100644 --- a/libkdepim/broadcaststatus.cpp +++ b/libkdepim/broadcaststatus.cpp @@ -23,46 +23,46 @@ #include "broadcaststatus.h" #include "progressmanager.h" -KPIM::BroadcastStatus* KPIM::BroadcastStatus::instance_ = 0; -static KStaticDeleter<KPIM::BroadcastStatus> broadcastStatusDeleter; +KPIM::BroadcasStatus* KPIM::BroadcasStatus::instance_ = 0; +static KStaticDeleter<KPIM::BroadcasStatus> broadcasStatusDeleter; namespace KPIM { -BroadcastStatus* BroadcastStatus::instance() +BroadcasStatus* BroadcasStatus::instance() { if (!instance_) - broadcastStatusDeleter.setObject( instance_, new BroadcastStatus() ); + broadcasStatusDeleter.setObject( instance_, new BroadcasStatus() ); return instance_; } -BroadcastStatus::BroadcastStatus() +BroadcasStatus::BroadcasStatus() :mTransientActive( false ) { } -BroadcastStatus::~BroadcastStatus() +BroadcasStatus::~BroadcasStatus() { instance_ = 0; } -void BroadcastStatus::setStatusMsg( const TQString& message ) +void BroadcasStatus::seStatusMsg( const TQString& message ) { mStatusMsg = message; if( !mTransientActive ) emit statusMsg( message ); } -void BroadcastStatus::setStatusMsgWithTimestamp( const TQString& message ) +void BroadcasStatus::seStatusMsgWithTimestamp( const TQString& message ) { KLocale* locale = KGlobal::locale(); - setStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" ) + seStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" ) .arg( locale->formatTime( TQTime::currentTime(), true /* with seconds */ ) ) .arg( message ) ); } -void BroadcastStatus::setStatusMsgTransmissionCompleted( int numMessages, +void BroadcasStatus::seStatusMsgTransmissionCompleted( int numMessages, int numBytes, int numBytesRead, int numBytesToRead, @@ -94,12 +94,12 @@ void BroadcastStatus::setStatusMsgTransmissionCompleted( int numMessages, else statusMsg = i18n( "Transmission complete. No new messages." ); - setStatusMsgWithTimestamp( statusMsg ); + seStatusMsgWithTimestamp( statusMsg ); if ( item ) - item->setStatus( statusMsg ); + item->seStatus( statusMsg ); } -void BroadcastStatus::setStatusMsgTransmissionCompleted( const TQString& account, +void BroadcasStatus::seStatusMsgTransmissionCompleted( const TQString& account, int numMessages, int numBytes, int numBytesRead, @@ -142,18 +142,18 @@ void BroadcastStatus::setStatusMsgTransmissionCompleted( const TQString& account statusMsg = i18n( "Transmission for account %1 complete. No new messages.") .arg( account ); - setStatusMsgWithTimestamp( statusMsg ); + seStatusMsgWithTimestamp( statusMsg ); if ( item ) - item->setStatus( statusMsg ); + item->seStatus( statusMsg ); } -void BroadcastStatus::setTransientStatusMsg( const TQString& msg ) +void BroadcasStatus::setTransienStatusMsg( const TQString& msg ) { mTransientActive = true; emit statusMsg( msg ); } -void BroadcastStatus::reset() +void BroadcasStatus::reset() { mTransientActive = false; // restore |