lib Library API Documentation

KoFilterEntry Class Reference

Represents an available filter. More...

#include <koQueryTrader.h>

Collaboration diagram for KoFilterEntry:

Collaboration graph
[legend]
List of all members.

Public Types

typedef KSharedPtr< KoFilterEntryPtr

Public Member Functions

 KoFilterEntry (KService::Ptr service)
KoFiltercreateFilter (KoFilterChain *chain, QObject *parent=0, const char *name=0)
bool imports (const QString &_mimetype) const
bool exports (const QString &_m) const
KService::Ptr service () const

Static Public Member Functions

static QValueList< KoFilterEntry::Ptr > query (const QString &_constr=QString::null)

Public Attributes

QStringList import
QStringList export_
unsigned int weight
QString available

Detailed Description

Represents an available filter.

Definition at line 119 of file koQueryTrader.h.


Member Function Documentation

bool KoFilterEntry::imports const QString _mimetype  )  const [inline]
 

Returns:
TRUE if the filter can import the requested mimetype.

Definition at line 154 of file koQueryTrader.h.

bool KoFilterEntry::exports const QString _m  )  const [inline]
 

Returns:
TRUE if the filter can export the requested mimetype.

Definition at line 160 of file koQueryTrader.h.

References export_.

QValueList< KoFilterEntry::Ptr > KoFilterEntry::query const QString _constr = QString::null  )  [static]
 

This function will query KDED to find all available filters.

Parameters:
_constr is a constraint expression as used by KDEDs trader interface. You can use it to set additional restrictions on the available components.

Definition at line 173 of file koQueryTrader.cc.


Member Data Documentation

QStringList KoFilterEntry::import
 

The imported mimetype(s).

Definition at line 134 of file koQueryTrader.h.

QStringList KoFilterEntry::export_
 

The exported mimetype(s).

Definition at line 139 of file koQueryTrader.h.

Referenced by exports().

unsigned int KoFilterEntry::weight
 

The "weight" of this filter path.

Has to be > 0 to be valid.

Definition at line 144 of file koQueryTrader.h.

QString KoFilterEntry::available
 

Do we have to check during runtime?

Definition at line 149 of file koQueryTrader.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:56 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003