diff options
Diffstat (limited to 'libkdepim/broadcaststatus.cpp')
-rw-r--r-- | libkdepim/broadcaststatus.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdepim/broadcaststatus.cpp b/libkdepim/broadcaststatus.cpp index e3f16c32d..a50479195 100644 --- a/libkdepim/broadcaststatus.cpp +++ b/libkdepim/broadcaststatus.cpp @@ -23,37 +23,37 @@ #include "broadcaststatus.h" #include "progressmanager.h" -KPIM::BroadcastqStatus* KPIM::BroadcastqStatus::instance_ = 0; -static KStaticDeleter<KPIM::BroadcastqStatus> broadcasStatusDeleter; +KPIM::BroadcastStatus* KPIM::BroadcastStatus::instance_ = 0; +static KStaticDeleter<KPIM::BroadcastStatus> broadcasStatusDeleter; namespace KPIM { -BroadcastqStatus* BroadcastqStatus::instance() +BroadcastStatus* BroadcastStatus::instance() { if (!instance_) - broadcasStatusDeleter.setObject( instance_, new BroadcastqStatus() ); + broadcasStatusDeleter.setObject( instance_, new BroadcastStatus() ); return instance_; } -BroadcastqStatus::BroadcastqStatus() +BroadcastStatus::BroadcastStatus() :mTransientActive( false ) { } -BroadcastqStatus::~BroadcastqStatus() +BroadcastStatus::~BroadcastStatus() { instance_ = 0; } -void BroadcastqStatus::seStatusMsg( const TQString& message ) +void BroadcastStatus::seStatusMsg( const TQString& message ) { mStatusMsg = message; if( !mTransientActive ) emit statusMsg( message ); } -void BroadcastqStatus::seStatusMsgWithTimestamp( const TQString& message ) +void BroadcastStatus::seStatusMsgWithTimestamp( const TQString& message ) { KLocale* locale = KGlobal::locale(); seStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" ) @@ -62,7 +62,7 @@ void BroadcastqStatus::seStatusMsgWithTimestamp( const TQString& message ) .tqarg( message ) ); } -void BroadcastqStatus::seStatusMsgTransmissionCompleted( int numMessages, +void BroadcastStatus::seStatusMsgTransmissionCompleted( int numMessages, int numBytes, int numBytesRead, int numBytesToRead, @@ -99,7 +99,7 @@ void BroadcastqStatus::seStatusMsgTransmissionCompleted( int numMessages, item->setqStatus( statusMsg ); } -void BroadcastqStatus::seStatusMsgTransmissionCompleted( const TQString& account, +void BroadcastStatus::seStatusMsgTransmissionCompleted( const TQString& account, int numMessages, int numBytes, int numBytesRead, @@ -147,13 +147,13 @@ void BroadcastqStatus::seStatusMsgTransmissionCompleted( const TQString& account item->setqStatus( statusMsg ); } -void BroadcastqStatus::setTransienStatusMsg( const TQString& msg ) +void BroadcastStatus::setTransienStatusMsg( const TQString& msg ) { mTransientActive = true; emit statusMsg( msg ); } -void BroadcastqStatus::reset() +void BroadcastStatus::reset() { mTransientActive = false; // restore |