00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KCALENDARIFACE_H
00021
#define KCALENDARIFACE_H
00022
00023
#include <dcopobject.h>
00024
#include <qdatetime.h>
00025
#include <qdatastream.h>
00026
00027
00028
#include "kcalendariface.h"
00029
00030
typedef QPair<QDateTime, QDateTime> QDateTimePair;
00031
00032
class KCalendarIface :
public DCOPObject
00033 {
00034 K_DCOP
00035
public:
00036 KCalendarIface() : DCOPObject("CalendarIface") {}
00037
00038 k_dcop:
00039
00043 struct ResourceRequestReply {
00044
bool vCalInOK;
00045 QString vCalOut;
00046
bool vCalOutOK;
bool isFree;
00047 QDateTime start; QDateTime end;
00048 };
00049
virtual KCalendarIface::ResourceRequestReply resourceRequest(
00050
const QValueList< QDateTimePair >& busy,
00051
const QCString& resource,
00052
const QString& vCalIn ) = 0;
00053
00054
virtual void openEventEditor( QString text ) = 0;
00055
virtual void openEventEditor( QString summary, QString description,
00056 QString attachment ) = 0;
00057
00058
virtual void openTodoEditor( QString text ) = 0;
00059
virtual void openTodoEditor( QString summary, QString description,
00060 QString attachment ) = 0;
00061
00062
virtual void showTodoView() = 0;
00063
virtual void showEventView() = 0;
00064 };
00065
00066
inline QDataStream& operator<<( QDataStream& str,
const KCalendarIface::ResourceRequestReply& reply )
00067 {
00068 str << reply.
vCalInOK << reply.
vCalOut << reply.
vCalOutOK << reply.
isFree << reply.
start << reply.
end;
00069
return str;
00070 }
00071
00072
inline QDataStream& operator>>( QDataStream& str,
KCalendarIface::ResourceRequestReply& reply )
00073 {
00074 str >> reply.
vCalInOK >> reply.
vCalOut >> reply.
vCalOutOK >> reply.
isFree >> reply.
start >> reply.
end;
00075
return str;
00076 }
00077
00078
#endif