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

Nepomuk

  • sources
  • kde-4.12
  • kdelibs
  • 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 
30 namespace 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 
203 Q_DECLARE_OPERATORS_FOR_FLAGS( Nepomuk::Query::QueryParser::ParserFlags )
204 
205 #endif
Nepomuk::Query::QueryParser
Parser for desktop user queries.
Definition: queryparser.h:90
Nepomuk::Property
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:316
Nepomuk::Query::Query
A Nepomuk desktop query.
Definition: query.h:76
query.h
Nepomuk::Query::parseQuery
Query parseQuery(const QString &s)
nepomukquery_export.h
Nepomuk::Query::QueryParser::ParserFlag
ParserFlag
Flags to change the behaviour of the parser.
Definition: queryparser.h:108
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 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 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