• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • Sync
  • SyncResource
Public Member Functions | Static Public Member Functions | List of all members
Nepomuk2::Sync::SyncResource Class Reference

#include <syncresource.h>

Inheritance diagram for Nepomuk2::Sync::SyncResource:
Inheritance graph
[legend]

Public Member Functions

 SyncResource ()
 
 SyncResource (const KUrl &uri)
 
 SyncResource (const SyncResource &rhs)
 
virtual ~SyncResource ()
 
bool isBlank () const
 
bool isFileDataObject () const
 
bool isFolder () const
 
bool isValid () const
 
KUrl nieUrl () const
 
SyncResource & operator= (const SyncResource &rhs)
 
bool operator== (const SyncResource &res) const
 
QList< Soprano::Node > property (const KUrl &url) const
 
void removeObject (const KUrl &uri)
 
void setUri (const Soprano::Node &node)
 
QList< Soprano::Statement > toStatementList () const
 
KUrl uri () const
 
Soprano::Node uriNode () const
 

Static Public Member Functions

static SyncResource fromStatementList (const QList< Soprano::Statement > &list)
 

Detailed Description

A SyncResource is a convenient way of storing a set of properties and objects for a common subject.

This class does not represent an actual resource present in the repository. It's just a collection of in-memory statements.

Interally it uses a multi-hash to store the properties and objects.

Author
Vishesh Handa handa.nosp@m..vis.nosp@m.h@gma.nosp@m.il.c.nosp@m.om

Definition at line 53 of file syncresource.h.

Constructor & Destructor Documentation

Nepomuk2::Sync::SyncResource::SyncResource ( )

Definition at line 42 of file syncresource.cpp.

Nepomuk2::Sync::SyncResource::SyncResource ( const KUrl &  uri)

Definition at line 47 of file syncresource.cpp.

Nepomuk2::Sync::SyncResource::SyncResource ( const SyncResource &  rhs)

Definition at line 53 of file syncresource.cpp.

Nepomuk2::Sync::SyncResource::~SyncResource ( )
virtual

Definition at line 59 of file syncresource.cpp.

Member Function Documentation

Nepomuk2::Sync::SyncResource Nepomuk2::Sync::SyncResource::fromStatementList ( const QList< Soprano::Statement > &  list)
static

It uses the the first element's subject as the uri and ignores all further subjects.

Please make sure all the subjects are the same cause no kind of checks are made.

Definition at line 164 of file syncresource.cpp.

bool Nepomuk2::Sync::SyncResource::isBlank ( ) const

Definition at line 244 of file syncresource.cpp.

bool Nepomuk2::Sync::SyncResource::isFileDataObject ( ) const

Definition at line 101 of file syncresource.cpp.

bool Nepomuk2::Sync::SyncResource::isFolder ( ) const

Definition at line 95 of file syncresource.cpp.

bool Nepomuk2::Sync::SyncResource::isValid ( ) const

Definition at line 239 of file syncresource.cpp.

KUrl Nepomuk2::Sync::SyncResource::nieUrl ( ) const

Definition at line 107 of file syncresource.cpp.

Nepomuk2::Sync::SyncResource & Nepomuk2::Sync::SyncResource::operator= ( const SyncResource &  rhs)

Definition at line 63 of file syncresource.cpp.

bool Nepomuk2::Sync::SyncResource::operator== ( const SyncResource &  res) const

Definition at line 69 of file syncresource.cpp.

QList< Soprano::Node > Nepomuk2::Sync::SyncResource::property ( const KUrl &  url) const

Definition at line 138 of file syncresource.cpp.

void Nepomuk2::Sync::SyncResource::removeObject ( const KUrl &  uri)

Removes all the statements whose object is uri.

Definition at line 143 of file syncresource.cpp.

void Nepomuk2::Sync::SyncResource::setUri ( const Soprano::Node &  node)

If node is resource node the uri is set to the node's uri Otherwise if node is a blank node then the uri is set to its identifier.

Definition at line 117 of file syncresource.cpp.

QList< Soprano::Statement > Nepomuk2::Sync::SyncResource::toStatementList ( ) const

Definition at line 75 of file syncresource.cpp.

KUrl Nepomuk2::Sync::SyncResource::uri ( ) const

Definition at line 127 of file syncresource.cpp.

Soprano::Node Nepomuk2::Sync::SyncResource::uriNode ( ) const

Definition at line 132 of file syncresource.cpp.


The documentation for this class was generated from the following files:
  • syncresource.h
  • syncresource.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal