summaryrefslogtreecommitdiffstats
path: root/libkdepim/broadcaststatus.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /libkdepim/broadcaststatus.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/broadcaststatus.cpp')
-rw-r--r--libkdepim/broadcaststatus.cpp34
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