2
Copyright (c) 2000,2001,2004 Cornelius Schumacher <schumacher@kde.org>
3
Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
4
Copyright (c) 2010 Andras Mantia <andras@kdab.com>
5
Copyright (C) 2010 Casey Link <casey@kdab.com>
7
This library is free software; you can redistribute it and/or modify it
8
under the terms of the GNU Library General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version.
12
This library is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15
License for more details.
17
You should have received a copy of the GNU Library General Public License
18
along with this library; see the file COPYING.LIB. If not, write to the
19
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
#ifndef INCIDENCEEDITOR_FREEBUSYITEM_H
24
#define INCIDENCEEDITOR_FREEBUSYITEM_H
26
#include "incidenceeditors-ng_export.h"
28
#include <KCalCore/FreeBusy>
30
namespace IncidenceEditorNG {
33
* The FreeBusyItem is the whole line for a given attendee..
35
class INCIDENCEEDITORS_NG_EXPORT FreeBusyItem
38
typedef QSharedPointer<FreeBusyItem> Ptr;
41
* @param parentWidget is passed to Akonadi when fetching free/busy data.
43
FreeBusyItem( const KCalCore::Attendee::Ptr &attendee, QWidget *parentWidget );
46
KCalCore::Attendee::Ptr attendee() const;
47
void setFreeBusy( const KCalCore::FreeBusy::Ptr &fb );
48
KCalCore::FreeBusy::Ptr freeBusy() const;
50
QString email() const;
51
void setUpdateTimerID( int id );
52
int updateTimerID() const;
54
void startDownload( bool forceDownload );
55
void setIsDownloading( bool d );
56
bool isDownloading() const;
59
void attendeeChanged( const KCalCore::Attendee::Ptr &attendee );
60
void freebusyChanged( const KCalCore::FreeBusy::Ptr fb );
63
KCalCore::Attendee::Ptr mAttendee;
64
KCalCore::FreeBusy::Ptr mFreeBusy;
66
// This is used for the update timer
69
// Only run one download job at a time
72
QWidget *mParentWidget;