Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /* |
---|---|
2 | This file is part of the Nepomuk KDE project. |
3 | Copyright (C) 2009 Sebastian Trueg <trueg@kde.org> |
4 | |
5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) version 3, or any |
9 | later version accepted by the membership of KDE e.V. (or its |
10 | successor approved by the membership of KDE e.V.), which shall |
11 | act as a proxy defined in Section 6 of version 3 of the license. |
12 | |
13 | This library is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | Lesser General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Lesser General Public |
19 | License along with this library. If not, see <http://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | #ifndef _NEPOMUK2_QUERY_RESOURCE_TYPE_TERM_H_ |
23 | #define _NEPOMUK2_QUERY_RESOURCE_TYPE_TERM_H_ |
24 | |
25 | #include "term.h" |
26 | #include "class.h" |
27 | |
28 | #include <QtCore/QUrl> |
29 | |
30 | #include "nepomuk_export.h" |
31 | |
32 | namespace Nepomuk2 { |
33 | namespace Query { |
34 | /** |
35 | * \class ResourceTypeTerm resourcetypeterm.h Nepomuk2/Query/ResourceTypeTerm |
36 | * |
37 | * \brief Matching resources by type. |
38 | * |
39 | * The %ResourceTypeTerm matches all resources of a specific type. The only |
40 | * difference to using a ComparisonTerm with property \p rdf:type and a ResourceTerm |
41 | * subterm is that %ResourceTypeTerm also matches resources which have a type |
42 | * derived from the requested one. |
43 | * |
44 | * \author Sebastian Trueg <trueg@kde.org> |
45 | * |
46 | * \since 4.4 |
47 | */ |
48 | class NEPOMUK_EXPORT ResourceTypeTerm : public Term |
49 | { |
50 | public: |
51 | /** |
52 | * Copy constructor. |
53 | */ |
54 | ResourceTypeTerm( const ResourceTypeTerm& term ); |
55 | |
56 | /** |
57 | * Default constructor. |
58 | * |
59 | * \param type The type to match. |
60 | */ |
61 | ResourceTypeTerm( const Nepomuk2::Types::Class& type = Nepomuk2::Types::Class() ); |
62 | |
63 | /** |
64 | * Destructor. |
65 | */ |
66 | ~ResourceTypeTerm(); |
67 | |
68 | /** |
69 | * Assignment operator. |
70 | */ |
71 | ResourceTypeTerm& operator=( const ResourceTypeTerm& term ); |
72 | |
73 | /** |
74 | * The type to match. |
75 | * |
76 | * \sa setType() |
77 | */ |
78 | Nepomuk2::Types::Class type() const; |
79 | |
80 | /** |
81 | * Set the type to match. |
82 | * |
83 | * \sa type() |
84 | */ |
85 | void setType( const Nepomuk2::Types::Class& type ); |
86 | }; |
87 | } |
88 | } |
89 | |
90 | #endif |
91 |
Warning: That file was not part of the compilation database. It may have many parsing errors.