kogroupware.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
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
#ifndef KOGROUPWARE_H
00038
#define KOGROUPWARE_H
00039
00040
#include <libkcal/icalformat.h>
00041
#include <libkcal/scheduler.h>
00042
#include <qstring.h>
00043
00044
#include <kio/job.h>
00045
00046
using namespace KCal;
00047
00048
namespace KCal {
00049
class Calendar;
00050
class Event;
00051 }
00052
class CalendarView;
00053
class FreeBusyManager;
00054
00055
class KOGroupware :
public QObject
00056 {
00057 Q_OBJECT
00058
public:
00059
static KOGroupware* create(
CalendarView*, KCal::Calendar* );
00060
static KOGroupware* instance();
00061
00062 FreeBusyManager *freeBusyManager();
00063
00068
bool sendICalMessage(
QWidget* parent, KCal::Scheduler::Method method,
00069 Incidence* incidence,
bool isDeleting =
false );
00070
00071
00072
enum EventState { Accepted, ConditionallyAccepted, Declined, Request };
00073
00074
00075
00076
bool incomingEventRequest(
const QString& request,
00077
const QString& receiver,
00078
const QString& vCalIn );
00079
void incomingResourceRequest(
const QValueList<
QPair<QDateTime, QDateTime> >& busy,
00080
const QCString& resource,
00081
const QString& vCalIn,
00082
bool& vCalInOK,
00083
QString& vCalOut,
00084
bool& vCalOutOK,
00085
bool& isFree,
00086
QDateTime& start,
QDateTime& end );
00087
00088
00089
bool incidenceAnswer(
const QString& vCal );
00090
00091
00092
bool cancelIncidence(
const QString& iCal );
00093
00094
00095
00096
00097
QString formatICal(
const QString& iCal );
00098
00099
QString formatTNEF(
const QByteArray& tnef );
00100
00101
QString msTNEFToVPart(
const QByteArray& tnef );
00102
00103
private slots:
00105
void incomingDirChanged(
const QString& path );
00106
00107
protected:
00108 KOGroupware(
CalendarView*, KCal::Calendar* );
00109
00110
private:
00111
static KOGroupware *mInstance;
00112 KCal::ICalFormat mFormat;
00113
CalendarView *mView;
00114 KCal::Calendar *mCalendar;
00115
static FreeBusyManager *mFreeBusyManager;
00116 };
00117
00118
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.