KServiceTypeFactory Class Reference

List of all members.

Detailed Description

Definition at line 45 of file kservicetypefactory.h.


Public Member Functions

 KServiceTypeFactory ()
virtual ~KServiceTypeFactory ()
virtual KSycocaEntry * createEntry (const QString &, const char *)
virtual KServiceTypefindServiceTypeByName (const QString &_name)
QVariant::Type findPropertyTypeByName (const QString &_name)
KMimeTypefindFromPattern (const QString &_filename, QString *match=0)
KMimeType::List allMimeTypes ()
KServiceType::List allServiceTypes ()
bool checkMimeTypes ()

Static Public Member Functions

static KServiceTypeFactoryself ()

Protected Member Functions

virtual KServiceTypecreateEntry (int offset)
virtual void virtual_hook (int id, void *data)

Protected Attributes

int m_fastPatternOffset
int m_otherPatternOffset
QMap< QString, int > m_propertyTypeDict

Constructor & Destructor Documentation

KServiceTypeFactory::KServiceTypeFactory (  ) 

Create factory.

Definition at line 33 of file kservicetypefactory.cpp.


Member Function Documentation

KMimeType::List KServiceTypeFactory::allMimeTypes (  ) 

Returns:
all mimetypes Slow and memory consuming, avoid using

Definition at line 214 of file kservicetypefactory.cpp.

KServiceType::List KServiceTypeFactory::allServiceTypes (  ) 

Returns:
all servicetypes Slow and memory consuming, avoid using

Definition at line 229 of file kservicetypefactory.cpp.

bool KServiceTypeFactory::checkMimeTypes (  ) 

Returns:
true if at least one mimetype is present Safety test

Definition at line 248 of file kservicetypefactory.cpp.

virtual KSycocaEntry* KServiceTypeFactory::createEntry ( const QString ,
const char *   
) [inline, virtual]

Not meant to be called at this level.

Definition at line 59 of file kservicetypefactory.h.

KMimeType * KServiceTypeFactory::findFromPattern ( const QString _filename,
QString match = 0 
)

Find a mimetype from a filename (using the pattern list).

Parameters:
_filename filename to check.
match if provided, returns the pattern that matched.

Definition at line 113 of file kservicetypefactory.cpp.

QVariant::Type KServiceTypeFactory::findPropertyTypeByName ( const QString _name  ) 

Find a the property type of a named property.

Definition at line 98 of file kservicetypefactory.cpp.

KServiceType * KServiceTypeFactory::findServiceTypeByName ( const QString _name  )  [virtual]

Find a service type in the database file (allocates it) Overloaded by KBuildServiceTypeFactory to return a memory one.

Definition at line 80 of file kservicetypefactory.cpp.

KServiceTypeFactory * KServiceTypeFactory::self (  )  [static]

Returns:
the unique servicetype factory, creating it if necessary

Definition at line 73 of file kservicetypefactory.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys