kogroupwareincomingdialog.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "kogroupwareincomingdialog.h"
00025
00026 #include <libkcal/event.h>
00027 #include <qlabel.h>
00028 #include <qtextedit.h>
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 KOGroupwareIncomingDialog::KOGroupwareIncomingDialog( KCal::Incidence *evt,
00039 QWidget *parent,
00040 const char *name,
00041 bool modal,
00042 WFlags fl )
00043 : KOGroupwareIncomingDialog_base( parent, name, modal, fl )
00044 {
00045 mAccepted = false;
00046 mConditionallyAccepted = false;
00047 mDeclined = false;
00048
00049 fromLA->setText( evt->dtStartDateStr() + ", " + evt->dtStartTimeStr() );
00050 if( evt->type() == "Event" ) {
00051 KCal::Event* event = static_cast<KCal::Event*>(evt);
00052 toLA->setText( event->dtEndDateStr() + ", " + event->dtEndTimeStr() );
00053 }
00054 locationLA->setText( evt->location() );
00055 summaryLA->setText( evt->summary() );
00056 descriptionTE->setText( evt->description() );
00057 }
00058
00059 KOGroupwareIncomingDialog::~KOGroupwareIncomingDialog()
00060 {
00061 }
00062
00063
00064
00065
00066 void KOGroupwareIncomingDialog::slotAcceptEvent()
00067 {
00068 mAccepted = true;
00069 mConditionallyAccepted = false;
00070 mDeclined = false;
00071 }
00072
00073
00074
00075
00076 void KOGroupwareIncomingDialog::slotAcceptEventConditionally()
00077 {
00078 mAccepted = false;
00079 mConditionallyAccepted = true;
00080 mDeclined = false;
00081 }
00082
00083
00084
00085
00086 void KOGroupwareIncomingDialog::slotDeclineEvent()
00087 {
00088 mAccepted = false;
00089 mConditionallyAccepted = false;
00090 mDeclined = true;
00091 }
00092
00093 #include "kogroupwareincomingdialog.moc"
This file is part of the documentation for korganizer Library Version 3.2.2.