00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
#ifndef KSYNC_OVERVIEWPART_H
00024
#define KSYNC_OVERVIEWPART_H
00025
00026
#include <klocale.h>
00027
#include <qpixmap.h>
00028
00029
#include <actionpart.h>
00030
00031
namespace KSync {
00032
00033
class OverviewWidget;
00034
00035
class OverviewPart :
public ActionPart
00036 {
00037 Q_OBJECT
00038
00039
public:
00040 OverviewPart(
QWidget *parent,
const char *name,
00041
QObject *object = 0,
const char *name2 = 0,
00042
const QStringList & =
QStringList() );
00043
virtual ~OverviewPart();
00044
00045
static KAboutData *createAboutData();
00046
00047
QString type() const;
00048
QString title() const;
00049
QString description() const;
00050
bool hasGui() const;
00051
QPixmap *pixmap();
00052
QString iconName() const;
00053
QWidget *widget();
00054
00055
void executeAction();
00056
00057 private slots:
00058
void slotPartChanged(
ActionPart * );
00059
void slotPartProgress( ActionPart *part, const Progress & );
00060
void slotPartError( ActionPart *, const
Error & );
00061
void slotSyncProgress( ActionPart *,
int,
int );
00062
void slotKonnectorProgress(
Konnector *, const Progress & );
00063
void slotKonnectorError( Konnector *, const Error & );
00064
void slotProfileChanged( const
Profile & );
00065
void slotStartSync();
00066
void slotDoneSync();
00067
00068 private:
00069
QPixmap m_pixmap;
00070 OverView::
Widget *m_widget;
00071 };
00072
00073 }
00074
00075 #endif