KServiceTypeFactory Class Reference
Inheritance diagram for KServiceTypeFactory:

Public Member Functions | |
KServiceTypeFactory () | |
virtual | ~KServiceTypeFactory () |
virtual KSycocaEntry * | createEntry (const QString &, const char *) |
virtual KServiceType * | findServiceTypeByName (const QString &_name) |
QVariant::Type | findPropertyTypeByName (const QString &_name) |
KMimeType * | findFromPattern (const QString &_filename, QString *match=0) |
KMimeType::List | allMimeTypes () |
KServiceType::List | allServiceTypes () |
bool | checkMimeTypes () |
Static Public Member Functions | |
static KServiceTypeFactory * | self () |
Protected Member Functions | |
virtual KServiceType * | createEntry (int offset) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | m_fastPatternOffset |
int | m_otherPatternOffset |
QMap< QString, int > | m_propertyTypeDict |
Detailed Description
Definition at line 45 of file kservicetypefactory.h.
Constructor & Destructor Documentation
|
Create factory.
Definition at line 33 of file kservicetypefactory.cpp. References KSycoca::flagError(), QMap::insert(), m_fastPatternOffset, m_otherPatternOffset, m_propertyTypeDict, KSycocaFactory::m_str, and KSycocaEntry::read(). Referenced by self(). |
Member Function Documentation
|
Not meant to be called at this level.
Implements KSycocaFactory. Definition at line 59 of file kservicetypefactory.h. Referenced by findFromPattern(), and findServiceTypeByName(). |
|
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. References createEntry(), KSycocaDict::find_string(), KSycocaFactory::m_sycocaDict, KServiceType::name(), KSycocaFactory::offset(), and KSycoca::self(). Referenced by KMimeType::mimeType(), KServiceType::offers(), KServiceType::parentType(), and KServiceType::serviceType(). |
|
Find a the property type of a named property.
Definition at line 98 of file kservicetypefactory.cpp. References QMapConstIterator::data(), QMap::end(), QMap::find(), m_propertyTypeDict, KSycocaFactory::m_sycocaDict, and KSycoca::self(). Referenced by KService::property(). |
|
Find a mimetype from a filename (using the pattern list).
Definition at line 113 of file kservicetypefactory.cpp. References QValueVector::begin(), QString::compare(), createEntry(), QDataStream::device(), QString::findRev(), QString::isEmpty(), KSycocaEntry::isType(), QString::leftJustify(), QString::length(), m_fastPatternOffset, m_otherPatternOffset, KSycocaFactory::m_str, KStringHandler::matchFileName(), QValueVector::push_back(), KSycocaEntry::read(), QString::right(), and QValueVector::size(). Referenced by KMimeType::diagnoseFileName(), KMimeType::findByURL(), and KFilePropsPlugin::KFilePropsPlugin(). |
|
Definition at line 214 of file kservicetypefactory.cpp. References KSycocaFactory::allEntries(), QValueList::append(), QValueList::begin(), QValueList::end(), and QValueList< Ptr >::Iterator(). Referenced by KMimeType::allMimeTypes(). |
|
Definition at line 229 of file kservicetypefactory.cpp. References KSycocaFactory::allEntries(), QValueList::append(), QValueList::begin(), QValueList::end(), and QValueList< Ptr >::Iterator(). Referenced by KServiceType::allServiceTypes(). |
|
Definition at line 248 of file kservicetypefactory.cpp. References KSycocaFactory::factoryId(), KSycoca::findFactory(), KSycocaFactory::m_beginEntryOffset, KSycocaFactory::m_endEntryOffset, and KSycoca::self(). |
|
Definition at line 73 of file kservicetypefactory.cpp. References KServiceTypeFactory(). Referenced by KMimeType::allMimeTypes(), KServiceType::allServiceTypes(), KMimeType::buildDefaultType(), KMimeType::checkEssentialMimeTypes(), KMimeType::diagnoseFileName(), KMimeType::findByURL(), KFilePropsPlugin::KFilePropsPlugin(), KMimeType::mimeType(), KServiceType::offers(), KServiceType::parentType(), KService::property(), and KServiceType::serviceType(). |
The documentation for this class was generated from the following files: