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

Nepomuk

filequery.h

Go to the documentation of this file.
00001 /*
00002    This file is part of the Nepomuk KDE project.
00003    Copyright (C) 2009-2010 Sebastian Trueg <trueg@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef _NEPOMUK_QUERY_FILE_QUERY_H_
00021 #define _NEPOMUK_QUERY_FILE_QUERY_H_
00022 
00023 #include "query.h"
00024 #include "nepomukquery_export.h"
00025 
00026 namespace Nepomuk {
00027     namespace Query {
00044         class NEPOMUKQUERY_EXPORT FileQuery : public Query
00045         {
00046         public:
00050             FileQuery();
00051 
00057             explicit FileQuery( const Term& term );
00058 
00062             FileQuery( const Query& query );
00063 
00067             ~FileQuery();
00068 
00072             FileQuery& operator=( const Query& );
00073 
00082             void addIncludeFolder( const KUrl& folder );
00083 
00095             void addIncludeFolder( const KUrl& folder, bool recursive );
00096 
00104             void setIncludeFolders( const KUrl::List& folders );
00105 
00114             void setIncludeFolders( const QHash<KUrl, bool>& folders );
00115 
00122             KUrl::List includeFolders() const;
00123 
00132             QHash<KUrl, bool> allIncludeFolders() const;
00133 
00142             void addExcludeFolder( const KUrl& folder );
00143 
00151             void setExcludeFolders( const KUrl::List& folders );
00152 
00159             KUrl::List excludeFolders() const;
00160 
00167             enum FileModeFlags {
00168                 QueryFiles = 0x1,
00169                 QueryFolders = 0x2,
00170                 QueryFilesAndFolders = QueryFiles|QueryFolders
00171             };
00172             Q_DECLARE_FLAGS( FileMode, FileModeFlags )
00173 
00174             
00183             void setFileMode( FileMode mode );
00184 
00190             FileMode fileMode() const;
00191         };
00192     }
00193 }
00194 
00195 Q_DECLARE_OPERATORS_FOR_FLAGS( Nepomuk::Query::FileQuery::FileMode )
00196 
00197 #endif

Nepomuk

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal