/usr/include/libical/icalspanlist_cxx.h is in libical-dev 3.0.1-5.
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 | /**
* @file icalspanlist_cxx.h
* @author Critical Path
* @brief C++ class wrapping the icalspanlist data structure
*
* (C) COPYRIGHT 2001, Critical Path
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of either:
*
* The LGPL as published by the Free Software Foundation, version
* 2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
*
* Or:
*
* The Mozilla Public License Version 2.0. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*/
#ifndef ICALSPANLIST_CXX_H
#define ICALSPANLIST_CXX_H
#include "libical_icalss_export.h"
extern "C"
{
#include "icalcomponent.h"
#include "icalspanlist.h"
#include "icaltime.h"
}
#include <vector>
namespace LibICal
{
class VComponent;
/**
* This class wraps the icalspanlist routines in libicalss
*
* Errors within libicalss are propagated via exceptions of type
* icalerrorenum. See icalerror.h for the complete list of exceptions
* that might be thrown.
*/
class LIBICAL_ICALSS_EXPORT ICalSpanList
{
public:
ICalSpanList() throw(icalerrorenum);
ICalSpanList(const ICalSpanList &v) throw(icalerrorenum);
/** Construct an ICalSpanList from an icalset */
ICalSpanList(icalset *set, icaltimetype start, icaltimetype end) throw(icalerrorenum);
/** Construct an ICalSpanList from the VFREEBUSY chunk of a icalcomponent */
explicit ICalSpanList(icalcomponent *comp) throw(icalerrorenum);
/** Construct an ICalSpanList from the VFREEBUSY chunk of a vcomponent */
explicit ICalSpanList(VComponent &comp) throw(icalerrorenum);
/** Destructor */
~ICalSpanList();
/** Return a VFREEBUSY icalcomponent */
VComponent *get_vfreebusy(const char *organizer, const char *attendee) throw(icalerrorenum);
ICalSpanList &operator=(const ICalSpanList &) throw(icalerrorenum);
/** Return the base data when casting */
operator icalspanlist *()
{
return data;
}
/** Return a vector of the number of events over delta t */
std::vector < int >as_vector(int delta_t) throw(icalerrorenum);
/** Dump the spanlist to stdout */
void dump();
private:
icalspanlist *data;
};
} // namespace LibICal;
#endif
|