lib

#include <KoQueryTrader.h>

Inherits TDEShared.

Public Types

typedef TDESharedPtr< KoFilterEntry > Ptr
 

Public Member Functions

 KoFilterEntry (KService::Ptr service)
 
KoFilter * createFilter (KoFilterChain *chain, TQObject *parent=0, const char *name=0)
 
bool imports (const TQString &_mimetype) const
 
bool exports (const TQString &_m) const
 
KService::Ptr service () const
 

Static Public Member Functions

static TQValueList< KoFilterEntry::Ptr > query (const TQString &_constr=TQString())
 

Public Attributes

TQStringList import
 
TQStringList export_
 
unsigned int weight
 
TQString available
 

Detailed Description

Represents an available filter.

Definition at line 119 of file KoQueryTrader.h.

Member Typedef Documentation

◆ Ptr

typedef TDESharedPtr<KoFilterEntry> KoFilterEntry::Ptr

Definition at line 123 of file KoQueryTrader.h.

Constructor & Destructor Documentation

◆ KoFilterEntry() [1/2]

KoFilterEntry::KoFilterEntry ( )
inline

Definition at line 125 of file KoQueryTrader.h.

◆ KoFilterEntry() [2/2]

KoFilterEntry::KoFilterEntry ( KService::Ptr  service)

Definition at line 162 of file KoQueryTrader.cpp.

◆ ~KoFilterEntry()

KoFilterEntry::~KoFilterEntry ( )
inline

Definition at line 127 of file KoQueryTrader.h.

Member Function Documentation

◆ createFilter()

KoFilter * KoFilterEntry::createFilter ( KoFilterChain *  chain,
TQObject *  parent = 0,
const char *  name = 0 
)

Definition at line 195 of file KoQueryTrader.cpp.

◆ exports()

bool KoFilterEntry::exports ( const TQString &  _m) const
inline
Returns
true if the filter can export the requested mimetype.

Definition at line 160 of file KoQueryTrader.h.

◆ imports()

bool KoFilterEntry::imports ( const TQString &  _mimetype) const
inline
Returns
true if the filter can import the requested mimetype.

Definition at line 154 of file KoQueryTrader.h.

◆ query()

TQValueList< KoFilterEntry::Ptr > KoFilterEntry::query ( const TQString &  _constr = TQString())
static

This function will query KDED to find all available filters.

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

Definition at line 172 of file KoQueryTrader.cpp.

◆ service()

KService::Ptr KoFilterEntry::service ( ) const
inline

Definition at line 172 of file KoQueryTrader.h.

Member Data Documentation

◆ available

TQString KoFilterEntry::available

Do we have to check during runtime?

Definition at line 149 of file KoQueryTrader.h.

◆ export_

TQStringList KoFilterEntry::export_

The exported mimetype(s).

Definition at line 139 of file KoQueryTrader.h.

◆ import

TQStringList KoFilterEntry::import

The imported mimetype(s).

Definition at line 134 of file KoQueryTrader.h.

◆ weight

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.


The documentation for this class was generated from the following files: