/usr/include/syndication/atom/source.h is in kdepimlibs5-dev 4:4.14.10-7+b2.
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 | /*
* This file is part of the syndication library
*
* Copyright (C) 2006 Frank Osterfeld <osterfeld@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) 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 SYNDICATION_ATOM_SOURCE_H
#define SYNDICATION_ATOM_SOURCE_H
#include <syndication/elementwrapper.h>
#include <ctime>
class QDomElement;
class QString;
template <class T> class QList;
namespace Syndication {
namespace Atom {
class Category;
class Generator;
class Link;
class Person;
/**
* If an entry was copied from another feed, this class contains
* a description of the source feed.
*
* @author Frank Osterfeld
*/
class SYNDICATION_EXPORT Source : public ElementWrapper
{
public:
/**
* creates a null source object
*/
Source();
/**
* creates a Source object wrapping a atom:source element.
*
* @param element a DOM element, should be a atom:source element
* (although not enforced), otherwise this object will not parse
* anything useful
*/
explicit Source(const QDomElement& element);
/**
* authors of the original content (optional)
*/
QList<Person> authors() const;
/**
* contributors to the original content (optional)
*/
QList<Person> contributors() const;
/**
* categories the source feed is assigned to (optional)
*/
QList<Category> categories() const;
/**
* description of the software which generated the source feed
* (optional)
*/
Generator generator() const;
/**
* URL of an image serving as a feed icon (optional)
*
* @return icon URL, or a null string if not specified
*/
QString icon() const;
/**
* a string that unambigously identifies the source feed (optional)
*
* @return the ID of the source feed, or a null string if not
* specified.
*/
QString id() const;
/**
* a list of links. See Link for more information on
* link types.
*/
QList<Link> links() const;
/**
* URL of an image, the logo of the source feed (optional)
*
* @return image URL, or a null string if not specified in the feed.
*/
QString logo() const;
/**
* copyright information (optional)
*
* @return copyright information for the source,
* or a null string if not specified
*/
QString rights() const;
/**
* description or subtitle of the source feed (optional).
*
* @return subtitle string as HTML, or a null string
* if not specified.
*/
QString subtitle() const;
/**
* source feed title (optional).
*
* @return title string as HTML, or a null string if not specified
*/
QString title() const;
/**
* The datetime of the last modification of the source feed
* content. (optional)
*
* @return the modification date in seconds since epoch
*/
time_t updated() const;
/**
* description of this source object for debugging purposes
*
* @return debug string
*/
QString debugInfo() const;
};
} // namespace Atom
} // namespace Syndication
#endif // SYNDICATION_ATOM_SOURCE_H
|