2
This file is part of KOrganizer.
3
Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
4
Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
As a special exception, permission is given to link this program
21
with any edition of Qt, and distribute the resulting executable,
22
without including the source code for Qt in the source distribution.
24
#ifndef KOEDITORDETAILS_H
25
#define KOEDITORDETAILS_H
27
#include "customlistviewitem.h"
28
#include "koattendeeeditor.h"
38
typedef CustomListViewItem<KCal::Attendee *> AttendeeListItem;
40
/** KOAttendeeListView is a child class of K3ListView which supports
41
* dropping of attendees (e.g. from kaddressbook) onto it. If an attendeee
42
* was dropped, the signal dropped(Attendee*) is emitted.
44
class KOAttendeeListView : public K3ListView
48
KOAttendeeListView( QWidget *parent=0 );
49
virtual ~KOAttendeeListView();
50
virtual void addAttendee( const QString &newAttendee );
54
virtual void contentsDragEnterEvent( QDragEnterEvent *e );
55
virtual void dragEnterEvent( QDragEnterEvent *e );
56
virtual void contentsDropEvent( QDropEvent *e );
57
virtual void dropEvent( QDropEvent *e );
58
virtual void contentsDragMoveEvent( QDragMoveEvent *e );
61
void dropped( Attendee * );
65
class KOEditorDetails : public KOAttendeeEditor
69
explicit KOEditorDetails( int spacing = 8, QWidget *parent = 0 );
70
virtual ~KOEditorDetails();
72
/** Set widgets to default values */
75
/** Read incidence and setup widgets accordingly */
76
void readIncidence( Incidence *incidence );
78
/** Write settings to incidence */
79
void fillIncidence( Incidence *incidence );
81
/** Check if the input is valid. */
84
/** Returns whether at least one attendee was added */
87
void insertAttendee( Attendee *, bool goodEmailAddress=true );
90
void removeAttendee();
91
void slotInsertAttendee( Attendee *a );
94
void changeStatusForMe( Attendee::PartStat status );
96
KCal::Attendee *currentAttendee() const;
98
Q3ListViewItem *hasExampleAttendee() const;
99
void updateCurrentItem();
102
bool mDisableItemUpdate;
104
K3ListView *mListView;