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

Nepomuk

  • Nepomuk
  • Utils
  • TypeFacet
Public Slots | Public Member Functions | List of all members
Nepomuk::Utils::TypeFacet Class Reference

#include <typefacet.h>

Inheritance diagram for Nepomuk::Utils::TypeFacet:
Nepomuk::Utils::Facet QObject

Public Slots

void clearSelection ()
 
bool selectFromTerm (const Nepomuk::Query::Term &queryTerm)
 
void setSelected (int index, bool selected=true)
 
- Public Slots inherited from Nepomuk::Utils::Facet
virtual void clearSelection ()=0
 
virtual bool selectFromTerm (const Nepomuk::Query::Term &queryTerm)=0
 
void setClientQuery (const Nepomuk::Query::Query &query)
 
virtual void setSelected (int index, bool selected=true)=0
 

Public Member Functions

 TypeFacet (QObject *parent=0)
 
 ~TypeFacet ()
 
int count () const
 
KGuiItem guiItem (int index) const
 
bool isSelected (int index) const
 
Query::Term queryTerm () const
 
SelectionMode selectionMode () const
 
- Public Member Functions inherited from Nepomuk::Utils::Facet
 Facet (QObject *parent=0)
 
virtual ~Facet ()
 
Query::Query clientQuery () const
 
virtual int count () const =0
 
virtual KGuiItem guiItem (int index) const
 
virtual bool isSelected (int index) const =0
 
virtual Query::Term queryTerm () const =0
 
virtual SelectionMode selectionMode () const =0
 
virtual QString text (int index) const
 

Additional Inherited Members

- Public Types inherited from Nepomuk::Utils::Facet
enum  SelectionMode { MatchAll , MatchAny , MatchOne }
 
- Signals inherited from Nepomuk::Utils::Facet
void layoutChanged (Nepomuk::Utils::Facet *facet)
 
void queryTermChanged (Nepomuk::Utils::Facet *facet, const Nepomuk::Query::Term &queryTerm)
 
void selectionChanged (Nepomuk::Utils::Facet *facet)
 
- Static Public Member Functions inherited from Nepomuk::Utils::Facet
static Facet * createDateFacet (QObject *parent=0)
 
static Facet * createFileTypeFacet (QObject *parent=0)
 
static Facet * createPriorityFacet (QObject *parent=0)
 
static Facet * createRatingFacet (QObject *parent=0)
 
static Facet * createTagFacet (QObject *parent=0)
 
static Facet * createTypeFacet (QObject *parent=0)
 
- Protected Slots inherited from Nepomuk::Utils::Facet
void setLayoutChanged ()
 
void setQueryTermChanged ()
 
void setSelectionChanged ()
 
- Protected Member Functions inherited from Nepomuk::Utils::Facet
virtual void handleClientQueryChange ()
 

Detailed Description

Definition at line 30 of file typefacet.h.

Constructor & Destructor Documentation

◆ TypeFacet()

Nepomuk::Utils::TypeFacet::TypeFacet ( QObject *  parent = 0)

◆ ~TypeFacet()

Nepomuk::Utils::TypeFacet::~TypeFacet ( )

Member Function Documentation

◆ clearSelection

void Nepomuk::Utils::TypeFacet::clearSelection ( )
slot

◆ count()

int Nepomuk::Utils::TypeFacet::count ( ) const
virtual

The number of choices this facet provides.

Implements Nepomuk::Utils::Facet.

◆ guiItem()

KGuiItem Nepomuk::Utils::TypeFacet::guiItem ( int  index) const
virtual

The parameters used to render the choice at index.

Reimplemented from Nepomuk::Utils::Facet.

◆ isSelected()

bool Nepomuk::Utils::TypeFacet::isSelected ( int  index) const
virtual
Returns
true if the choice at index is selected, false otherwise.

Implements Nepomuk::Utils::Facet.

◆ queryTerm()

Query::Term Nepomuk::Utils::TypeFacet::queryTerm ( ) const
virtual

The term currently produced by this facet.

This is dependant on the subclass implementation and the selectionMode(). The SimpleFacet for example uses an AndTerm or an OrTerm to combine all its terms in MatchAll or MatchAny mode while it returns the one selected term in MatchOne mode.

Implements Nepomuk::Utils::Facet.

◆ selectFromTerm

bool Nepomuk::Utils::TypeFacet::selectFromTerm ( const Nepomuk::Query::Term &  queryTerm)
slot

◆ selectionMode()

SelectionMode Nepomuk::Utils::TypeFacet::selectionMode ( ) const
virtual

The selection mode used by this facet.

The GUI client can make use of this value to adjust the GUI accordingly. A typical example would be using radio buttons for MatchOne facets.

Implements Nepomuk::Utils::Facet.

◆ setSelected

void Nepomuk::Utils::TypeFacet::setSelected ( int  index,
bool  selected = true 
)
slot

The documentation for this class was generated from the following file:
  • typefacet.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