libkdepim Library API Documentation

broadcaststatus.h

00001 /* 00002 broadcaststatus.h 00003 00004 This file is part of KDEPIM. 00005 00006 Copyright (C) 2000 Don Sanders <sanders@kde.org> 00007 00008 License GPL 00009 */ 00010 00011 #ifndef __kpim_broadcast_status_h 00012 #define __kpim_broadcast_status_h 00013 00014 #include <qobject.h> 00015 #include <qmap.h> 00016 00017 #undef None 00018 00019 namespace KPIM { 00020 00021 class ProgressItem; 00022 00030 class BroadcastStatus : public QObject 00031 { 00032 00033 Q_OBJECT 00034 00035 public: 00036 virtual ~BroadcastStatus(); 00037 00039 static BroadcastStatus *instance(); 00040 00042 QString statusMsg() const { return mStatusMsg; } 00044 void setStatusMsgWithTimestamp( const QString& message ); 00046 void setStatusMsgTransmissionCompleted( int numMessages, 00047 int numBytes = -1, 00048 int numBytesRead = -1, 00049 int numBytesToRead = -1, 00050 bool mLeaveOnServer = false, 00051 KPIM::ProgressItem* progressItem = 0 ); // set the same status in this progress item 00052 void setStatusMsgTransmissionCompleted( const QString& account, 00053 int numMessages, 00054 int numBytes = -1, 00055 int numBytesRead = -1, 00056 int numBytesToRead = -1, 00057 bool mLeaveOnServer = false, 00058 KPIM::ProgressItem* progressItem = 0 ); // set the same status in this progress item 00059 00060 public slots: 00063 void setStatusMsg( const QString& message ); 00064 00069 void setTransientStatusMsg( const QString& msg ); 00074 void reset(); 00075 00076 signals: 00077 00079 void statusMsg( const QString& ); 00080 00081 protected: 00082 00083 BroadcastStatus(); 00084 QString mStatusMsg; 00085 bool mTransientActive; 00086 static BroadcastStatus* instance_; 00087 }; 00088 00089 00090 } 00091 #endif
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:29 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003