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
#include "kogroupwareincomingdialog.h"
00033
00034
#include <libkcal/event.h>
00035
#include <qlabel.h>
00036
#include <qtextedit.h>
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 KOGroupwareIncomingDialog::KOGroupwareIncomingDialog( KCal::Incidence *evt,
00047
QWidget *parent,
00048
const char *name,
00049
bool modal,
00050 WFlags fl )
00051 : KOGroupwareIncomingDialog_base( parent, name, modal, fl )
00052 {
00053 mAccepted =
false;
00054 mConditionallyAccepted =
false;
00055 mDeclined =
false;
00056
00057 fromLA->setText( evt->dtStartDateStr() +
", " + evt->dtStartTimeStr() );
00058
if( evt->type() ==
"Event" ) {
00059 KCal::Event* event = static_cast<KCal::Event*>(evt);
00060 toLA->setText( event->dtEndDateStr() +
", " + event->dtEndTimeStr() );
00061 }
00062 locationLA->setText( evt->location() );
00063 summaryLA->setText( evt->summary() );
00064 descriptionTE->setText( evt->description() );
00065 }
00066
00067 KOGroupwareIncomingDialog::~KOGroupwareIncomingDialog()
00068 {
00069 }
00070
00071
00072
00073
00074
void KOGroupwareIncomingDialog::slotAcceptEvent()
00075 {
00076 mAccepted =
true;
00077 mConditionallyAccepted =
false;
00078 mDeclined =
false;
00079 }
00080
00081
00082
00083
00084
void KOGroupwareIncomingDialog::slotAcceptEventConditionally()
00085 {
00086 mAccepted =
false;
00087 mConditionallyAccepted =
true;
00088 mDeclined =
false;
00089 }
00090
00091
00092
00093
00094
void KOGroupwareIncomingDialog::slotDeclineEvent()
00095 {
00096 mAccepted =
false;
00097 mConditionallyAccepted =
false;
00098 mDeclined =
true;
00099 }
00100
00101
#include "kogroupwareincomingdialog.moc"