freebusywidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef FREEBUSYWIDGET_H
00025
#define FREEBUSYWIDGET_H
00026
00027
#include <kurlrequester.h>
00028
00029
#include "contacteditorwidget.h"
00030
00031
class FreeBusyWidget :
public KAB::ContactEditorWidget
00032 {
00033 Q_OBJECT
00034
00035
public:
00036 FreeBusyWidget( KABC::AddressBook *ab,
QWidget *parent,
const char *name = 0 );
00037 ~FreeBusyWidget();
00038
00039
void loadContact( KABC::Addressee *addr );
00040
void storeContact( KABC::Addressee *addr );
00041
00042
void setReadOnly(
bool readOnly );
00043
00044
private:
00045 KURLRequester *mURL;
00046
00047
bool mReadOnly;
00048 };
00049
00050
class FreeBusyWidgetFactory :
public KAB::ContactEditorWidgetFactory
00051 {
00052
public:
00053 KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab,
QWidget *parent,
const char *name )
00054 {
00055
return new FreeBusyWidget( ab, parent, name );
00056 }
00057
00058
QString pageIdentifier()
const {
return "misc"; }
00059 };
00060
00061
#endif
This file is part of the documentation for kaddressbook Library Version 3.3.0.