kontact Library API Documentation

kpilot/summarywidget.h

00001 /*
00002     This file is part of Kontact.
00003     Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
00004     Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
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 <qmap.h>
00034 #include <qpixmap.h>
00035 #include <qptrlist.h>
00036 #include <qstringlist.h>
00037 #include <qtimer.h>
00038 #include <qwidget.h>
00039 #include <qdatetime.h>
00040 
00041 class QGridLayout;
00042 class QLabel;
00043 class KURLLabel;
00044 
00045 class SummaryWidget : public Kontact::Summary, public DCOPObject
00046 {
00047     Q_OBJECT
00048     K_DCOP
00049   public:
00050     SummaryWidget( QWidget *parent, const char *name = 0 );
00051     virtual ~SummaryWidget();
00052 
00053     int summaryHeight() const { return 1; }
00054 
00055     QStringList configModules() const;
00056 
00057   k_dcop:
00058     void refresh( );
00059 
00060   private slots:
00061     void updateView();
00062     void showSyncLog( const QString &filename );
00063 
00064   private:
00065     QTimer mTimer;
00066 
00067     QLabel*mSyncTimeLabel;
00068     KURLLabel*mShowSyncLogLabel;
00069     QLabel*mPilotUserLabel;
00070     QLabel*mPilotDeviceLabel;
00071     QLabel*mDaemonStatusLabel;
00072     QLabel*mConduitsLabel;
00073 
00074     QGridLayout *mLayout;
00075 
00076     QDateTime mLastSyncTime;
00077     QString mDaemonStatus;
00078     QStringList mConduits;
00079     QString mSyncLog;
00080     QString mUserName;
00081     QString mPilotDevice;
00082     bool mDCOPSuccess;
00083 
00084     bool mStartedDaemon; // Record whether the daemon was started by kontact
00085     bool mShouldStopDaemon;
00086 };
00087 
00088 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 4 04:50:13 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003