• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

soprano

Soprano::Util::ReadOnlyModel

Soprano::Util::ReadOnlyModel Class Reference

#include <Soprano/Util/ReadOnlyModel>

Inheritance diagram for Soprano::Util::ReadOnlyModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

Simple filter model preventing any write operations.

Stacking a ReadOnlyModel on top of another model will prevent any write operation to be performed. All calls to non-const methods are terminated by Error::ErrorPermissionDenied.

Author:
Sebastian Trueg <trueg@kde.org>
Since:
2.1

Definition at line 42 of file readonlymodel.h.


Public Member Functions

Error::ErrorCode addStatement (const Statement &statement)
bool containsAnyStatement (const Statement &statement) const
bool containsStatement (const Statement &statement) const
Node createBlankNode ()
QueryResultIterator executeQuery (const QString &query, Query::QueryLanguage language, const QString &userQueryLanguage=QString()) const
bool isEmpty () const
NodeIterator listContexts () const
StatementIterator listStatements (const Statement &partial) const
 ReadOnlyModel (Model *parentModel=0)
Error::ErrorCode removeAllStatements (const Statement &statement)
Error::ErrorCode removeStatement (const Statement &statement)
void setParentModel (Model *model)
int statementCount () const
 ~ReadOnlyModel ()

Constructor & Destructor Documentation

Soprano::Util::ReadOnlyModel::ReadOnlyModel ( Model *  parentModel = 0  ) 

Create a new read-only-model.

Parameters:
parentModel The parent Model.

Soprano::Util::ReadOnlyModel::~ReadOnlyModel (  ) 

Destructor.


Member Function Documentation

Error::ErrorCode Soprano::Util::ReadOnlyModel::addStatement ( const Statement &  statement  )  [virtual]

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::containsAnyStatement ( const Statement &  statement  )  const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::containsStatement ( const Statement &  statement  )  const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

Node Soprano::Util::ReadOnlyModel::createBlankNode (  )  [virtual]

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

QueryResultIterator Soprano::Util::ReadOnlyModel::executeQuery ( const QString &  query,
Query::QueryLanguage  language,
const QString &  userQueryLanguage = QString() 
) const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

bool Soprano::Util::ReadOnlyModel::isEmpty (  )  const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

NodeIterator Soprano::Util::ReadOnlyModel::listContexts (  )  const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.

StatementIterator Soprano::Util::ReadOnlyModel::listStatements ( const Statement &  partial  )  const [virtual]

Default implementation simply pipes the call through to the parent model.

Implements Soprano::Model.

Error::ErrorCode Soprano::Util::ReadOnlyModel::removeAllStatements ( const Statement &  statement  )  [virtual]

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

Error::ErrorCode Soprano::Util::ReadOnlyModel::removeStatement ( const Statement &  statement  )  [virtual]

Will do nothing but set an Error::ErrorPermissionDenied error.

Implements Soprano::Model.

void Soprano::Util::ReadOnlyModel::setParentModel ( Model *  model  ) 

Set the parent Model.

Parameters:
model The Model that this filter will forward any commands to.

int Soprano::Util::ReadOnlyModel::statementCount (  )  const [virtual]

Simply pipes the call through to the parent model.

Implements Soprano::Model.


The documentation for this class was generated from the following file:
  • readonlymodel.h

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  •   server
  • Decibel
  • eigen
  • kdewin32
  •   Phonon
  •     Backend
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for API Reference by doxygen 1.5.4
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