• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

syndication/rss2

  • Syndication
  • RSS2
  • Enclosure
Public Member Functions
Syndication::RSS2::Enclosure Class Reference

#include <enclosure.h>

Inherits ElementWrapper.

List of all members.

Public Member Functions

 Enclosure ()
 Enclosure (const QDomElement &element)
QString debugInfo () const
int length () const
QString type () const
QString url () const

Detailed Description

Describes a media object that is "attached" to the item.

The most common use case for enclosures are podcasts: An audio file is attached to the feed and can be automatically downloaded by a podcast client.

Author:
Frank Osterfeld

Constructor & Destructor Documentation

Syndication::RSS2::Enclosure::Enclosure ( )

Default constructor, creates a null object, for which isNull() is true.

Definition at line 31 of file enclosure.cpp.

Syndication::RSS2::Enclosure::Enclosure ( const QDomElement &  element) [explicit]

Creates an Enclosure object wrapping an <enclosure> XML element.

Parameters:
elementThe <enclosure> element to wrap

Definition at line 35 of file enclosure.cpp.


Member Function Documentation

QString Syndication::RSS2::Enclosure::debugInfo ( ) const

Returns a description of the object for debugging purposes.

Returns:
debug string

Definition at line 62 of file enclosure.cpp.

int Syndication::RSS2::Enclosure::length ( ) const

returns the size of the enclosure in bytes

Definition at line 44 of file enclosure.cpp.

QString Syndication::RSS2::Enclosure::type ( ) const

returns the mime type of the enclosure (e.g.

"audio/mpeg")

Definition at line 57 of file enclosure.cpp.

QString Syndication::RSS2::Enclosure::url ( ) const

returns the URL of the enclosure

Definition at line 39 of file enclosure.cpp.


The documentation for this class was generated from the following files:
  • enclosure.h
  • enclosure.cpp

syndication/rss2

Skip menu "syndication/rss2"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal