diff options
Diffstat (limited to 'libkdepim/broadcaststatus.cpp')
-rw-r--r-- | libkdepim/broadcaststatus.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libkdepim/broadcaststatus.cpp b/libkdepim/broadcaststatus.cpp index fb48f05ca..68900936a 100644 --- a/libkdepim/broadcaststatus.cpp +++ b/libkdepim/broadcaststatus.cpp @@ -23,37 +23,37 @@ #include "broadcaststatus.h" #include "progressmanager.h" -KPIM::BroadcasStatus* KPIM::BroadcasStatus::instance_ = 0; -static KStaticDeleter<KPIM::BroadcasStatus> broadcasStatusDeleter; +KPIM::BroadcastqStatus* KPIM::BroadcastqStatus::instance_ = 0; +static KStaticDeleter<KPIM::BroadcastqStatus> broadcasStatusDeleter; namespace KPIM { -BroadcasStatus* BroadcasStatus::instance() +BroadcastqStatus* BroadcastqStatus::instance() { if (!instance_) - broadcasStatusDeleter.setObject( instance_, new BroadcasStatus() ); + broadcasStatusDeleter.setObject( instance_, new BroadcastqStatus() ); return instance_; } -BroadcasStatus::BroadcasStatus() +BroadcastqStatus::BroadcastqStatus() :mTransientActive( false ) { } -BroadcasStatus::~BroadcasStatus() +BroadcastqStatus::~BroadcastqStatus() { instance_ = 0; } -void BroadcasStatus::seStatusMsg( const TQString& message ) +void BroadcastqStatus::seStatusMsg( const TQString& message ) { mStatusMsg = message; if( !mTransientActive ) emit statusMsg( message ); } -void BroadcasStatus::seStatusMsgWithTimestamp( const TQString& message ) +void BroadcastqStatus::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 BroadcasStatus::seStatusMsgWithTimestamp( const TQString& message ) .arg( message ) ); } -void BroadcasStatus::seStatusMsgTransmissionCompleted( int numMessages, +void BroadcastqStatus::seStatusMsgTransmissionCompleted( int numMessages, int numBytes, int numBytesRead, int numBytesToRead, @@ -96,10 +96,10 @@ void BroadcasStatus::seStatusMsgTransmissionCompleted( int numMessages, seStatusMsgWithTimestamp( statusMsg ); if ( item ) - item->seStatus( statusMsg ); + item->setqStatus( statusMsg ); } -void BroadcasStatus::seStatusMsgTransmissionCompleted( const TQString& account, +void BroadcastqStatus::seStatusMsgTransmissionCompleted( const TQString& account, int numMessages, int numBytes, int numBytesRead, @@ -144,16 +144,16 @@ void BroadcasStatus::seStatusMsgTransmissionCompleted( const TQString& account, seStatusMsgWithTimestamp( statusMsg ); if ( item ) - item->seStatus( statusMsg ); + item->setqStatus( statusMsg ); } -void BroadcasStatus::setTransienStatusMsg( const TQString& msg ) +void BroadcastqStatus::setTransienStatusMsg( const TQString& msg ) { mTransientActive = true; emit statusMsg( msg ); } -void BroadcasStatus::reset() +void BroadcastqStatus::reset() { mTransientActive = false; // restore |