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

Nepomuk

  • nepomuk
  • query
queryparser.h
Go to the documentation of this file.
1/*
2 This file is part of the Nepomuk KDE project.
3 Copyright (C) 2007-2010 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 Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18 */
19
20#ifndef _NEPOMUK_SEARCH_QUERY_PARSER_H_
21#define _NEPOMUK_SEARCH_QUERY_PARSER_H_
22
23#include "query.h"
24
25#include <QtCore/QString>
26
27#include "nepomukquery_export.h"
28
29
30namespace Nepomuk {
31 namespace Query {
90 class NEPOMUKQUERY_EXPORT QueryParser
91 {
92 public:
96 QueryParser();
97
101 ~QueryParser();
102
108 enum ParserFlag {
112 NoParserFlags = 0x0,
113
124 QueryTermGlobbing = 0x1,
125
134 DetectFilenamePattern = 0x2
135 };
136 Q_DECLARE_FLAGS( ParserFlags, ParserFlag )
137
138
144 Query parse( const QString& query ) const;
145
157 Query parse( const QString& query, ParserFlags flags ) const;
158
176 QList<Types::Property> matchProperty( const QString& fieldName ) const;
177
184 static Query parseQuery( const QString& query );
185
194 static Query parseQuery( const QString& query, ParserFlags flags );
195
196 private:
197 class Private;
198 Private* const d;
199 };
200 }
201}
202
203Q_DECLARE_OPERATORS_FOR_FLAGS( Nepomuk::Query::QueryParser::ParserFlags )
204
205#endif
Nepomuk::Property
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:317
Nepomuk::Query::QueryParser
Parser for desktop user queries.
Definition: queryparser.h:91
Nepomuk::Query::QueryParser::QueryParser
QueryParser()
Create a new query parser.
Nepomuk::Query::QueryParser::~QueryParser
~QueryParser()
Destructor.
Nepomuk::Query::QueryParser::ParserFlag
ParserFlag
Flags to change the behaviour of the parser.
Definition: queryparser.h:108
Nepomuk::Query::Query
A Nepomuk desktop query.
Definition: query.h:77
Nepomuk
nepomukquery_export.h
query.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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