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

Nepomuk-Core

  • Nepomuk2
  • ResourceIdentifier
Public Member Functions | Protected Member Functions | List of all members
Nepomuk2::ResourceIdentifier Class Reference

#include <resourceidentifier.h>

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

Public Member Functions

 ResourceIdentifier (Nepomuk2::StoreIdentificationMode mode, Soprano::Model *model)
 
- Public Member Functions inherited from Nepomuk2::Sync::ResourceIdentifier
 ResourceIdentifier (Soprano::Model *model)
 
virtual ~ResourceIdentifier ()
 
void addSyncResource (const SyncResource &res)
 
bool identify (const KUrl &uri)
 
void identify (const KUrl::List &uriList)
 
void identifyAll ()
 
QHash< QUrl, QUrl > mappings () const
 
ResourceHash resourceHash () const
 
SyncResource simpleResource (const KUrl &uri)
 

Protected Member Functions

virtual KUrl duplicateMatch (const KUrl &uri, const QSet< KUrl > &matchedUris)
 
virtual bool runIdentification (const KUrl &uri)
 
- Protected Member Functions inherited from Nepomuk2::Sync::ResourceIdentifier
void manualIdentification (const KUrl &oldUri, const KUrl &newUri)
 

Additional Inherited Members

- Protected Attributes inherited from Nepomuk2::Sync::ResourceIdentifier
QSet< KUrl > m_beingIdentified
 
QHash< QUrl, QUrl > m_hash
 
Soprano::Model * m_model
 
QSet< KUrl > m_notIdentified
 
ResourceHash m_resourceHash
 

Detailed Description

Definition at line 31 of file resourceidentifier.h.

Constructor & Destructor Documentation

Nepomuk2::ResourceIdentifier::ResourceIdentifier ( Nepomuk2::StoreIdentificationMode  mode,
Soprano::Model *  model 
)

Definition at line 55 of file resourceidentifier.cpp.

Member Function Documentation

KUrl Nepomuk2::ResourceIdentifier::duplicateMatch ( const KUrl &  uri,
const QSet< KUrl > &  matchedUris 
)
protectedvirtual

Called during identification if there is more than one match for one resource.

The default behavior is to return an empty uri, which depicts identification failure

Reimplemented from Nepomuk2::Sync::ResourceIdentifier.

Definition at line 77 of file resourceidentifier.cpp.

bool Nepomuk2::ResourceIdentifier::runIdentification ( const KUrl &  uri)
protectedvirtual

This function returns true if identification was successful, and false if it was not.

If you need to customize the identification process, you will need to overload this function.

Reimplemented from Nepomuk2::Sync::ResourceIdentifier.

Definition at line 122 of file resourceidentifier.cpp.


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