kontact
summarywidget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef SUMMARYWIDGET_H
00026 #define SUMMARYWIDGET_H
00027
00028 #include "summary.h"
00029
00030 #include <dcopobject.h>
00031 #include <pilotDaemonDCOP.h>
00032
00033 #include <tqmap.h>
00034 #include <tqpixmap.h>
00035 #include <tqptrlist.h>
00036 #include <tqstringlist.h>
00037 #include <tqtimer.h>
00038 #include <tqwidget.h>
00039 #include <tqdatetime.h>
00040
00041 class TQGridLayout;
00042 class TQLabel;
00043 class KURLLabel;
00044
00045 class SummaryWidget : public Kontact::Summary, public DCOPObject
00046 {
00047 Q_OBJECT
00048 K_DCOP
00049
00050 public:
00051 SummaryWidget( TQWidget *parent, const char *name = 0 );
00052 virtual ~SummaryWidget();
00053
00054 int summaryHeight() const { return 1; }
00055
00056 TQStringList configModules() const;
00057
00058 k_dcop:
00059
00060
00061 void receiveDaemonStatusDetails( TQDateTime, TQString, TQStringList, TQString, TQString, TQString, bool );
00062 private slots:
00063 void updateView();
00064 void showSyncLog( const TQString &filename );
00065 void startKPilot();
00066 void slotAppRemoved( const TQCString & );
00067 private:
00068 TQTimer mTimer;
00069
00070 TQLabel*mSyncTimeTextLabel;
00071 TQLabel*mSyncTimeLabel;
00072 KURLLabel*mShowSyncLogLabel;
00073 TQLabel*mPilotUserTextLabel;
00074 TQLabel*mPilotUserLabel;
00075 TQLabel*mPilotDeviceTextLabel;
00076 TQLabel*mPilotDeviceLabel;
00077 TQLabel*mDaemonStatusTextLabel;
00078 TQLabel*mDaemonStatusLabel;
00079 TQLabel*mConduitsTextLabel;
00080 TQLabel*mConduitsLabel;
00081 TQLabel*mNoConnectionLabel;
00082 KURLLabel*mNoConnectionStartLabel;
00083
00084 TQGridLayout *mLayout;
00085
00086 TQDateTime mLastSyncTime;
00087 TQString mDaemonStatus;
00088 TQStringList mConduits;
00089 TQString mSyncLog;
00090 TQString mUserName;
00091 TQString mPilotDevice;
00092 bool mDCOPSuccess;
00093
00094 bool mStartedDaemon;
00095 bool mShouldStopDaemon;
00096 };
00097
00098 #endif
00099
|