/usr/include/syndication/rdf/item.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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | /*
* 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_RDF_ITEM_H
#define SYNDICATION_RDF_ITEM_H
#include <syndication/rdf/document.h>
#include <syndication/rdf/resourcewrapper.h>
#include <syndication/specificitem.h>
class QString;
namespace Syndication {
class SpecificItemVisitor;
namespace RDF {
class DublinCore;
class Item;
/**
* An RSS 1.0 item.
* (It is a convenience wrapper for the
* underlying RDF resource, which can be accessed via resource()).
*
* @author Frank Osterfeld
*/
class SYNDICATION_EXPORT Item : public ResourceWrapper, public SpecificItem
{
public:
/**
* creates an item object wrapping a null resource, isNull() is
* @c true.
*/
Item();
/**
* Creates an item wrapping the given resource
* @param resource resource to wrap, should be of type
* of rss1:item, otherwise the wrapper will not return useful
* information.
* @param doc the document this item is part of. Used by Document
*/
explicit Item(ResourcePtr resource, DocumentPtr doc=DocumentPtr());
/**
* copies an item
*
* @param other item to copy
*/
Item(const Item& other);
/**
* virtual destructor
*/
virtual ~Item();
/**
* assigns another item
*
* @param other the item to assign
*/
Item& operator=(const Item& other);
/**
* compares two item instances. Two instances are equal,
* if the wrapped resources are equal. See ResourceWrapper::operator==()
* for details.
*
* @param other the item to compare this item to
*/
bool operator==(const Item& other) const;
/**
* interface for item visitors. See SpecificItemVisitor for
* more information.
*
* @param visitor a visitor visiting this object
*/
bool accept(SpecificItemVisitor* visitor);
/**
* The item's title (required).
*
* @return The item's title as HTML, or a null string if not specified
*/
QString title() const;
/**
* A brief description/abstract of the item.
* if encodedContent() is not provided, this can also contain the full
* content.
*
* @return description as HTML, or a null string if not specified
*/
QString description() const;
/**
* The item's URL, usually pointing to a website containing the
* full content (news article, blog entry etc.).
*
* @return the link
*/
QString link() const;
/**
* returns a dublin core description of this
* item (including metadata such as item author
* or subject)
*/
DublinCore dc() const;
/**
* returns content (@c content:encoded) as HTML.
*
* @return content as HTML, or a null string if not specified
*/
QString encodedContent() const;
//@cond PRIVATE
/**
* @internal
* returns the title unmodified
* used by Document
*/
QString originalTitle() const;
/**
* @internal
* returns the description unmodified
* used by Document
*/
QString originalDescription() const;
//@endcond
/**
* Returns a description of the item for debugging purposes.
*
* @return debug string
*/
QString debugInfo() const;
private:
class Private;
Private* const d;
};
} // namespace RDF
} // namespace Syndication
#endif // SYNDICATION_RDF_ITEM_H
|