Nepomuk-Core
#include <Nepomuk2/Query/ResourceTerm>
Additional Inherited Members | |
Public Types inherited from Nepomuk2::Query::Term | |
enum | Type { Invalid, Literal, Resource, And, Or, Comparison, ResourceType, Negation, Optional } |
Static Public Member Functions inherited from Nepomuk2::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Related Functions inherited from Nepomuk2::Query::Term | |
static Term | fromProperty (const Types::Property &property, const Variant &variant) |
Detailed Description
Matches exactly one resource.
The ResourceTerm does only make sense as a sub term to ComparisonTerm to match to a known resource. The typical example would be matching against a known tag:
- Since
- 4.4
Definition at line 52 of file resourceterm.h.
Constructor & Destructor Documentation
Nepomuk2::Query::ResourceTerm::ResourceTerm | ( | const ResourceTerm & | term | ) |
Copy constructor.
Definition at line 79 of file resourceterm.cpp.
Nepomuk2::Query::ResourceTerm::ResourceTerm | ( | const Nepomuk2::Resource & | resource = Nepomuk2::Resource() | ) |
Default constructor.
- Parameters
-
resource The resource this term should match against.
Definition at line 85 of file resourceterm.cpp.
Nepomuk2::Query::ResourceTerm::~ResourceTerm | ( | ) |
Desctructor.
Definition at line 92 of file resourceterm.cpp.
Member Function Documentation
Nepomuk2::Query::ResourceTerm & Nepomuk2::Query::ResourceTerm::operator= | ( | const ResourceTerm & | term | ) |
Assignment operator.
Definition at line 97 of file resourceterm.cpp.
Nepomuk2::Resource Nepomuk2::Query::ResourceTerm::resource | ( | ) | const |
The resource this term should match against.
- See also
- setResource()
Definition at line 104 of file resourceterm.cpp.
void Nepomuk2::Query::ResourceTerm::setResource | ( | const Nepomuk2::Resource & | resource | ) |
Set the resource this term should match against.
- See also
- resource()
Definition at line 111 of file resourceterm.cpp.
The documentation for this class was generated from the following files:
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.