addressbookpart.h
00001
#ifndef ksync_addressbookpart_h
00002
#define ksync_addressbookpart_h
00003
00004
#include <kglobal.h>
00005
#include <kabc/resource.h>
00006
00007
#include <manipulatorpart.h>
00008
00009
class KAboutData;
00010
class KConfig;
00011
class AddressBookConfigBase;
00012
class KSimpleConfig;
00013
00014
namespace KABC {
00015
class AddressBook;
00016 }
00017
00018 namespace KSync {
00019
00020
class Syncee;
00021
class SyncEntry;
00022
class AddressBookSyncee;
00023
class AddressBookPart :
public ManipulatorPart{
00024 Q_OBJECT
00025
public:
00026 AddressBookPart(
QWidget* parent,
const char* name,
00027
QObject* obj = 0,
const char* name2 =0,
00028
const QStringList& =
QStringList() );
00029
virtual ~AddressBookPart();
00030
static KAboutData *createAboutData();
00031
00032
QString type()
const;
00033
QString name()
const;
00034
QString description()
const;
00035
QPixmap *pixmap();
00036
QString iconName()
const;
00037
bool configIsVisible()
const;
00038
bool canSync()
const;
00039
void sync(
const SynceeList& ,
SynceeList& );
00040
public:
00041
void slotConfigOk();
00042
private:
00043
AddressBookSyncee* load();
00044
void doMeta(
Syncee*,
const QString& path );
00045
void writeMeta( KABC::AddressBook*,
const QString& path );
00046
void save(
AddressBookSyncee*,
const QString& metapath );
00047
00048
AddressBookSyncee* book2syncee( KABC::AddressBook* );
00049
QPixmap m_pixmap;
00050
QString m_path;
00051
bool m_evo:1;
00052
bool m_configured:1;
00053 KABC::Resource* resource(
const QString& type );
00054 };
00055 }
00056
00057
#endif
This file is part of the documentation for kitchensync Library Version 3.3.0.