kmbroadcaststatus.h
00001
00002
00003
00004
00005
00006
00007
00008
#ifndef __km_broadcast_status_h
00009
#define __km_broadcast_status_h
00010
00011
#include <qobject.h>
00012
#include <qmap.h>
00013
00014
#undef None
00015
00016
namespace KPIM {
00017
class ProgressItem;
00018 }
00019
00027 class KMBroadcastStatus :
public QObject
00028 {
00029
00030 Q_OBJECT
00031
00032
public:
00033
00035
static KMBroadcastStatus *
instance();
00037
void setStatusMsg(
const QString& message );
00039 QString statusMsg()
const {
return mStatusMsg; }
00041
void setStatusMsgWithTimestamp(
const QString& message );
00043
void setStatusMsgTransmissionCompleted(
int numMessages,
00044
int numBytes = -1,
00045
int numBytesRead = -1,
00046
int numBytesToRead = -1,
00047
bool mLeaveOnServer =
false,
00048 KPIM::ProgressItem* progressItem = 0 );
00049
void setStatusMsgTransmissionCompleted(
const QString& account,
00050
int numMessages,
00051
int numBytes = -1,
00052
int numBytesRead = -1,
00053
int numBytesToRead = -1,
00054
bool mLeaveOnServer =
false,
00055 KPIM::ProgressItem* progressItem = 0 );
00056
00057 signals:
00058
00060
void statusMsg(
const QString& );
00061
00062
protected:
00063
00064
KMBroadcastStatus();
00065
QString mStatusMsg;
00066
static KMBroadcastStatus* instance_;
00067 };
00068
00069
00070
00071
#endif
This file is part of the documentation for kmail Library Version 3.3.0.