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

syndication/rdf

  • Syndication
  • RDF
  • ResourceWrapper
Public Member Functions
Syndication::RDF::ResourceWrapper Class Reference

#include <resourcewrapper.h>

Inheritance diagram for Syndication::RDF::ResourceWrapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ResourceWrapper ()
 ResourceWrapper (const ResourceWrapper &other)
 ResourceWrapper (ResourcePtr resource)
virtual ~ResourceWrapper ()
bool isNull () const
ResourceWrapper & operator= (const ResourceWrapper &other)
bool operator== (const ResourceWrapper &other) const
ResourcePtr resource () const

Detailed Description

A wrapper for RDF resources.

Base class for convenience wrappers such as Document, Item etc.

Author:
Frank Osterfeld

Definition at line 40 of file resourcewrapper.h.


Constructor & Destructor Documentation

Syndication::RDF::ResourceWrapper::ResourceWrapper ( )

creates a wrapper wrapping a null resource, isNull() will be true.

Definition at line 38 of file resourcewrapper.cpp.

Syndication::RDF::ResourceWrapper::ResourceWrapper ( const ResourceWrapper &  other)

Copy constructor.

Due to the shared d pointer, this is a cheap operation.

Parameters:
otherresource wrapper to copy

Definition at line 43 of file resourcewrapper.cpp.

Syndication::RDF::ResourceWrapper::ResourceWrapper ( ResourcePtr  resource) [explicit]

creates a resource wrapper for a given resource.

If a null pointer is passed, a null resource is created internally (resource() will _not_ return a null pointer!)

Parameters:
resourcea resource wrapper instance

Definition at line 48 of file resourcewrapper.cpp.

Syndication::RDF::ResourceWrapper::~ResourceWrapper ( ) [virtual]

destructor

Definition at line 55 of file resourcewrapper.cpp.


Member Function Documentation

bool Syndication::RDF::ResourceWrapper::isNull ( ) const

returns whether the wrapped resource is a null resource

Returns:
true if isNull() is true for the wrapped resource, false otherwise

Definition at line 70 of file resourcewrapper.cpp.

ResourceWrapper & Syndication::RDF::ResourceWrapper::operator= ( const ResourceWrapper &  other)

Assignment oeprator Due to the shared d pointer, this is a cheap operation.

Parameters:
otherresource wrapper to assign.

Definition at line 59 of file resourcewrapper.cpp.

bool Syndication::RDF::ResourceWrapper::operator== ( const ResourceWrapper &  other) const

compares two resource wrapper instances.

Two resource wrappers are equal when the wrapped resources are equal, i.e. they have the same URI.

See also:
Resource::uri()
Parameters:
otherresource wrapper instance to compare to

Definition at line 65 of file resourcewrapper.cpp.

ResourcePtr Syndication::RDF::ResourceWrapper::resource ( ) const

returns the wrapped resource.

Whether a null resource or not, the returned pointer itself is never a null _pointer_!

Definition at line 75 of file resourcewrapper.cpp.


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

syndication/rdf

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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.6.1
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