kio Library API Documentation

KServiceGroupFactory Class Reference

Inheritance diagram for KServiceGroupFactory:

Inheritance graph
[legend]
Collaboration diagram for KServiceGroupFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KServiceGroupFactory ()
virtual ~KServiceGroupFactory ()
virtual KSycocaEntrycreateEntry (const QString &, const char *)
KServiceGroupfindGroupByDesktopPath (const QString &_name, bool deep=true)
KServiceGroupfindBaseGroup (const QString &_baseGroupName, bool deep=true)

Static Public Member Functions

static KServiceGroupFactoryself ()

Protected Member Functions

KServiceGroupcreateGroup (int offset, bool deep)
KServiceGroupcreateEntry (int offset)
virtual void virtual_hook (int id, void *data)

Protected Attributes

KSycocaDictm_baseGroupDict
int m_baseGroupDictOffset

Detailed Description

Definition at line 36 of file kservicegroupfactory.h.


Constructor & Destructor Documentation

KServiceGroupFactory::KServiceGroupFactory  ) 
 

Create factory.

Definition at line 32 of file kservicegroupfactory.cpp.

References QDataStream::device(), m_baseGroupDict, m_baseGroupDictOffset, and KSycocaFactory::m_str.

Referenced by self().


Member Function Documentation

virtual KSycocaEntry* KServiceGroupFactory::createEntry const QString ,
const char * 
[inline, virtual]
 

Construct a KServiceGroup from a config file.

Implements KSycocaFactory.

Definition at line 49 of file kservicegroupfactory.h.

KServiceGroup * KServiceGroupFactory::findGroupByDesktopPath const QString _name,
bool  deep = true
 

Find a group ( by desktop path, e.g.

"Applications/Editors")

Definition at line 69 of file kservicegroupfactory.cpp.

References createGroup(), KSycocaDict::find_string(), KSycocaFactory::m_sycocaDict, KSycocaFactory::offset(), and KServiceGroup::relPath().

Referenced by KServiceGroup::childGroup(), KServiceGroup::entries(), KServiceGroup::group(), KServiceGroup::load(), and KServiceGroup::root().

KServiceGroup * KServiceGroupFactory::findBaseGroup const QString _baseGroupName,
bool  deep = true
 

Find a base group by name, e.g.

"settings"

Definition at line 92 of file kservicegroupfactory.cpp.

References KServiceGroup::baseGroupName(), createGroup(), KSycocaDict::find_string(), m_baseGroupDict, and KSycocaFactory::offset().

Referenced by KServiceGroup::baseGroup().

KServiceGroupFactory * KServiceGroupFactory::self  )  [static]
 

Returns:
the unique service group factory, creating it if necessary

Definition at line 62 of file kservicegroupfactory.cpp.

References KServiceGroupFactory().

Referenced by KServiceGroup::baseGroup(), KServiceGroup::childGroup(), KServiceGroup::entries(), KServiceGroup::group(), KServiceGroup::load(), and KServiceGroup::root().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 16 06:59:04 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003