This file is indexed.

/usr/include/attica/event.h is in libattica-dev 0.4.2-2.

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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/*
    This file is part of KDE.

    Copyright (c) 2009 Eckhart Wörner <ewoerner@kde.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) version 3, or any
    later version accepted by the membership of KDE e.V. (or its
    successor approved by the membership of KDE e.V.), which shall
    act as a proxy defined in Section 6 of version 3 of the license.

    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
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef ATTICA_EVENT_H
#define ATTICA_EVENT_H

#include "atticaclient_export.h"

#include <QtCore/QDate>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QSharedDataPointer>
#include <QtCore/QUrl>


namespace Attica {
    
/**
 * Represents a single event
 */
class ATTICA_EXPORT Event
{
    public:
        typedef QList<Event> List;
        class Parser;

        /**
         * Creates an empty Event
         */
        Event();

        /**
         * Copy constructor.
         * @param other the Event to copy from
         */
        Event(const Event& other);

        /**
         * Assignment operator.
         * @param other the Event to assign from
         * @return pointer to this Event
         */
        Event& operator=(const Event& other);

        /**
         * Destructor.
         */
        ~Event();

        /**
         * Sets the id of the Event.
         * The id uniquely identifies a Event with the OCS API.
         * @param id the new id
         */
        void setId(const QString& id);

        /**
         * Gets the id of the Event.
         * The id uniquely identifies a Event with the OCS API.
         * @return the id
         */
        QString id() const;

        /**
         * Sets the name of the Event.
         * @param name the new name
         */
        void setName(const QString& name);

        /**
         * Gets the name of the Event.
         * @return the name
         */
        QString name() const;

        /**
         * Sets the description of the Event.
         * @param description the new description
         */
        void setDescription(const QString& description);

        /**
         * Gets the description of the Event.
         * @return the description
         */
        QString description() const;

        /**
         * Sets the id of the user bound to the Event.
         * @param user the new user id
         */
        void setUser(const QString& user);

        /**
         * Gets the id of the user bound to the Event.
         * @return the user id
         */
        QString user() const;

        /**
         * Sets the start date of the Event.
         * @param startDate the start date
         */
        void setStartDate(const QDate& startDate);
    
        /**
         * Gets the start date of the Event.
         * @return the start date
         */
        QDate startDate() const;

        /**
         * Sets the end date of the Event.
         * @param endDate the end date
         */
        void setEndDate(const QDate& endDate);
    
        /**
         * Gets the start date of the Event.
         * @return the end date
         */
        QDate endDate() const;

        /**
         * Sets the latitude of the position the Event takes place.
         * @param latitude the new latitude
         */
        void setLatitude(qreal latitude);
    
        /**
         * Gets the latitude of the position the Event takes place.
         * @return the latitude
         */
        qreal latitude() const;

        /**
         * Sets the longitude of the position the Event takes place.
         * @param longitude the new latitude
         */
        void setLongitude(qreal longitude);
    
        /**
         * Gets the longitude of the position the Event takes place.
         * @return the latitude
         */
        qreal longitude() const;

        /**
         * Sets the homepage of the Event.
         * @param homepage the new homepage
         */
        void setHomepage(const QUrl& homepage);
    
        /**
         * Gets the homepage of the Event.
         * @return the homepage
         */
        QUrl homepage() const;

        /**
         * Sets the country where the Event takes place.
         * @param country the new country
         */
        void setCountry(const QString& country);
    
        /**
         * Gets the country where the Event takes place.
         * @return the country
         */
        QString country() const;

        /**
         * Sets the city where the Event takes place.
         * @param city the new city
         */
        void setCity(const QString& city);
    
        /**
         * Gets the city where the Event takes place.
         * @return the city
         */
        QString city() const;

        /**
         * Add an attribute that is not included in the basis set of attributes exposed by the Event class.
         * If the attribute already exists it gets overwritten.
         * @param key the key of the attribute
         * @param value the value of the attribute
         */
        void addExtendedAttribute(const QString& key, const QString& value);

        /**
         * Get an attribute that is not included in the basis set of attributes exposed by the Event class.
         * @param key the key of the attribute
         * @return the value of the attribute with the specified key, or an empty string, if the key has not been found
         */
        QString extendedAttribute(const QString& key) const;

        /**
         * Get all attributes that are not included in the basis set of attributes exposed by the Event class.
         * @return the attribute mappings
         */
        QMap<QString,QString> extendedAttributes() const;

        /**
         * Checks whether this Event has an id
         * @return @c true if an id has been set, @c false otherwise
         */
        bool isValid() const;

    private:
        class Private;
        QSharedDataPointer<Private> d;
};

}


#endif