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

Nepomuk-Core

  • Nepomuk2
  • ResourceWatcherManager
Public Slots | Signals | Public Member Functions | List of all members
Nepomuk2::ResourceWatcherManager Class Reference

#include <resourcewatchermanager.h>

Inheritance diagram for Nepomuk2::ResourceWatcherManager:
Inheritance graph
[legend]

Public Slots

ResourceWatcherConnection * createConnection (const QList< QUrl > &resources, const QList< QUrl > &properties, const QList< QUrl > &types)
 
Q_SCRIPTABLE QDBusObjectPath watch (const QStringList &resources, const QStringList &properties, const QStringList &types)
 

Signals

Q_SCRIPTABLE void somethingChanged ()
 

Public Member Functions

 ResourceWatcherManager (DataManagementModel *parent=0)
 
 ~ResourceWatcherManager ()
 
void changeProperty (const QUrl &res, const QUrl &property, const QList< Soprano::Node > &addedValues, const QList< Soprano::Node > &removedValues)
 
void changeProperty (const QMultiHash< QUrl, Soprano::Node > &oldValues, const QUrl &property, const QList< Soprano::Node > &nodes)
 
void changeSomething ()
 
void createResource (const QUrl &uri, const QSet< QUrl > &types)
 
void removeResource (const QUrl &uri, const QList< QUrl > &types)
 

Detailed Description

Definition at line 38 of file resourcewatchermanager.h.

Constructor & Destructor Documentation

Nepomuk2::ResourceWatcherManager::ResourceWatcherManager ( DataManagementModel *  parent = 0)

Definition at line 101 of file resourcewatchermanager.cpp.

Nepomuk2::ResourceWatcherManager::~ResourceWatcherManager ( )

Definition at line 111 of file resourcewatchermanager.cpp.

Member Function Documentation

void Nepomuk2::ResourceWatcherManager::changeProperty ( const QUrl &  res,
const QUrl &  property,
const QList< Soprano::Node > &  addedValues,
const QList< Soprano::Node > &  removedValues 
)

Definition at line 125 of file resourcewatchermanager.cpp.

void Nepomuk2::ResourceWatcherManager::changeProperty ( const QMultiHash< QUrl, Soprano::Node > &  oldValues,
const QUrl &  property,
const QList< Soprano::Node > &  nodes 
)

Definition at line 221 of file resourcewatchermanager.cpp.

void Nepomuk2::ResourceWatcherManager::changeSomething ( )

to be called whenever something changes (preferably after calling any of the above)

Definition at line 279 of file resourcewatchermanager.cpp.

Nepomuk2::ResourceWatcherConnection * Nepomuk2::ResourceWatcherManager::createConnection ( const QList< QUrl > &  resources,
const QList< QUrl > &  properties,
const QList< QUrl > &  types 
)
slot

Used internally by watch() and by the unit tests to create watcher connections.

Definition at line 286 of file resourcewatchermanager.cpp.

void Nepomuk2::ResourceWatcherManager::createResource ( const QUrl &  uri,
const QSet< QUrl > &  types 
)

Definition at line 233 of file resourcewatchermanager.cpp.

void Nepomuk2::ResourceWatcherManager::removeResource ( const QUrl &  uri,
const QList< QUrl > &  types 
)

Definition at line 252 of file resourcewatchermanager.cpp.

Q_SCRIPTABLE void Nepomuk2::ResourceWatcherManager::somethingChanged ( )
signal

A special signal which is emitted whenever something changes in the store.

Normally specifying in detail what to watch for by creating a connection is recommended. However, if one really wants to watch for any changes at all this signal is more efficient than a connection since it wraps several changes done with one command into one notification.

QDBusObjectPath Nepomuk2::ResourceWatcherManager::watch ( const QStringList &  resources,
const QStringList &  properties,
const QStringList &  types 
)
slot

The main DBus methods exposed by the ResourceWatcher.

Definition at line 313 of file resourcewatchermanager.cpp.


The documentation for this class was generated from the following files:
  • resourcewatchermanager.h
  • resourcewatchermanager.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