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

Nepomuk

facetwidget.h

Go to the documentation of this file.
00001 /*
00002    Copyright (c) 2010 Oszkar Ambrus <aoszkar@gmail.com>
00003    Copyright (C) 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 Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) version 3, or any
00009    later version accepted by the membership of KDE e.V. (or its
00010    successor approved by the membership of KDE e.V.), which shall
00011    act as a proxy defined in Section 6 of version 3 of the license.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Lesser General Public License for more details.
00017 
00018    You should have received a copy of the GNU Lesser General Public
00019    License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 #ifndef FACETSWIDGET_H
00023 #define FACETSWIDGET_H
00024 
00025 #include <QtGui/QWidget>
00026 #include <QtCore/QList>
00027 
00028 #include "facet.h"
00029 #include "nepomukutils_export.h"
00030 
00031 namespace Nepomuk {
00032     namespace Query {
00033         class Query;
00034         class Term;
00035     }
00036 
00037     namespace Utils {
00057         class NEPOMUKUTILS_EXPORT FacetWidget : public QWidget
00058         {
00059             Q_OBJECT
00060 
00061         public:
00065             FacetWidget( QWidget *parent = 0 );
00066 
00070             ~FacetWidget();
00071 
00075             QList<Facet*> facets() const;
00076 
00088             Nepomuk::Query::Query extractFacetsFromQuery( const Nepomuk::Query::Query& query );
00089 
00093             Nepomuk::Query::Term queryTerm() const;
00094 
00102             void setClientQuery( const Nepomuk::Query::Query& query );
00103 
00104         public Q_SLOTS:
00109             void addFacet( Nepomuk::Utils::Facet* facet );
00110 
00115             void setFacets( const QList<Nepomuk::Utils::Facet*>& facets );
00116 
00120             void clear();
00121 
00122         Q_SIGNALS:
00127             void queryTermChanged( const Nepomuk::Query::Term& term );
00128 
00129         private:
00130             class Private;
00131             Private * const d;
00132         };
00133     }
00134 }
00135 
00136 #endif // FACETSWIDGET_H

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