This file is indexed.

/usr/include/Eris-1.3/Eris/Calendar.h is in liberis-1.3-dev 1.3.14-3.

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
#ifndef ERIS_CALENDAR_H
#define ERIS_CALENDAR_H

#include <sigc++/trackable.h>
#include <sigc++/connection.h>

#include <map>
#include <string>

namespace Atlas
{
namespace Message
{
class Element;
typedef std::map<std::string, Element> MapType;
}
}

namespace Eris
{

class Avatar;
class Calendar;

/**
Encapsulate a decoded world time instance
*/
class DateTime
{
public:
    DateTime() : m_valid(false) { }

    bool valid() const { return m_valid; }

    unsigned int year() const { return m_year; }
    unsigned int month() const { return m_month; }
    unsigned int dayOfMonth() const { return m_dayOfMonth; }

    unsigned int seconds() const { return m_seconds; }
    unsigned int minutes() const { return m_minutes; }
    unsigned int hours() const { return m_hours; }

private:
    friend class Calendar;

    unsigned int m_year,
        m_month,
        m_dayOfMonth;

    unsigned int m_seconds,
        m_minutes,
        m_hours;

    bool m_valid;
};

class Calendar : public sigc::trackable
{
public:
    Calendar(Avatar*);

    DateTime now() const;

    unsigned int secondsPerMinute() const { return m_secondsPerMinute; }
    unsigned int minutesPerHour() const { return m_minutesPerHour; }
    unsigned int hoursPerDay() const { return m_hoursPerDay; }

protected:
    void topLevelEntityChanged();
    void calendarAttrChanged(const Atlas::Message::Element& value);

    void initFromCalendarAttr(const Atlas::Message::MapType& cal);

    Avatar* m_avatar;

    unsigned int m_daysPerMonth,
                 m_monthsPerYear,
                 m_hoursPerDay,
                 m_minutesPerHour,
                 m_secondsPerMinute;

    sigc::connection m_calendarObserver;
};

} // of namespace Eris

#endif