/usr/include/libkfbapi/eventinfo.h is in libkfbapi-dev 1.0-0ubuntu7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | /* Copyright 2011 Thomas McGuire <mcguire@kde.org>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published
by the Free Software Foundation; either version 2 of the License or
(at your option) version 3 or, at the discretion of KDE e.V.
(which shall act as a proxy as in section 14 of the GPLv3), any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KFBAPI_EVENTINFO_H
#define KFBAPI_EVENTINFO_H
#include "libkfbapi_export.h"
#include <KDateTime>
#include <KCalCore/Event>
#include <KCalCore/Attendee>
namespace KFbAPI {
typedef KCalCore::Event Event;
typedef KCalCore::Attendee Attendee;
typedef KCalCore::Event::Ptr EventPtr;
typedef KCalCore::Incidence::Ptr IncidencePtr;
typedef KCalCore::Attendee::Ptr AttendeePtr;
/**
* An attendee to an event
*/
class LIBKFBAPI_EXPORT AttendeeInfo
{
public:
/**
* @brief Construct an attendee to an event.
*
* @param name The name of the attendee.
* @param id The facebook id of the attendee.
* @param status The RSVP status of the attendee.
*/
AttendeeInfo(const QString &name, const QString &id, const Attendee::PartStat &status);
AttendeeInfo(const AttendeeInfo &other);
~AttendeeInfo();
AttendeeInfo &operator=(const AttendeeInfo &other);
/**
* @return The name of the attendee.
*/
QString name() const;
/**
* @return Returns the facebook id of the attendee.
*/
QString id() const;
/**
* @return Returns the RSVP state of the attendee.
*/
Attendee::PartStat status() const;
private:
class AttendeeInfoPrivate;
QSharedDataPointer<AttendeeInfoPrivate> d;
};
typedef QSharedPointer<AttendeeInfo> AttendeeInfoPtr;
/**
* Class to describe a facebook event.
*/
class LIBKFBAPI_EXPORT EventInfo
{
public:
EventInfo();
EventInfo(const EventInfo &other);
~EventInfo();
EventInfo &operator=(const EventInfo &other);
/**
* @brief Set the name of the event.
* @param name The name of the event.
*/
void setName(const QString &name);
/**
* @return The name of the event.
*/
QString name() const;
/**
* @brief Set the start time of the event.
* @param startTime The start time of the event as a QString in the
* "facebook format".
*/
void setStartTimeString(const QString &startTime);
/**
* @return The start time of the event as a QString in the "facebook format".
*/
QString startTimeString() const;
/**
* @return The start time of the event as a KDateTime object.
*/
KDateTime startTime() const;
/**
* @brief Set the end time of the event.
* @param endTime The end time of the event as a QString in the
* "facebook format".
*/
void setEndTimeString(const QString &endTime);
/**
* @return The end time of the event as a QString in the "facebook format".
*/
QString endTimeString() const;
/**
* @return The end time of the event as a KDateTime object.
*/
KDateTime endTime() const;
/**
* @brief Set the location of the event,
* @param location The location of the event,
*/
void setLocation(const QString &location);
/**
* @return The location of the event
*/
QString location() const;
/**
* @brief Set the facebook id of the event.
* @param id The facebook id of the event.
*/
void setId(const QString &id);
/**
* @return The facebook id of the event.
*/
QString id() const;
/**
* @brief Set the description of the event.
* @param description The description of the event.
*/
void setDescription(const QString &description);
/**
* @return The description of the event.
*/
QString description() const;
/**
* @brief Set the organizer of the event.
* @param organizer The organizer of the event.
*/
void setOrganizer(const QString &organizer);
/**
* @return The organizer of the event as a QString.
*/
QString organizer() const;
/**
* @brief Set the time the event is last updated.
* @param updatedTime The last update time of the event in "facebook format".
*/
void setUpdatedTimeString(const QString &updatedTime);
/**
* @return The time of the last update of the event in "facebook format".
*/
QString updatedTimeString() const;
/**
* @return The time of the last update of the event as a KDateTime object.
*/
KDateTime updatedTime() const;
/**
* @brief Add a list of attendee objects to this event.
* @param attendees A list of attendee objects of people that have responded
* or are requested to respond to this event.
*/
void addAttendees(const QList<AttendeeInfoPtr> &attendees);
QList<AttendeeInfoPtr> attendees() const;
EventPtr asEvent() const;
private:
class EventInfoPrivate;
QSharedDataPointer<EventInfoPrivate> d;
};
}
#endif
|