• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kabc

KABC::FormatFactory

KABC::FormatFactory Class Reference

#include <formatfactory.h>

List of all members.


Detailed Description

Class for loading format plugins.

Example:

 KABC::FormatFactory *factory = KABC::FormatFactory::self();

 QStringList list = factory->formats();
 QStringList::Iterator it;
 for ( it = list.begin(); it != list.end(); ++it ) {
   KABC::FormatPlugin *format = factory->format( (*it) );
   // do something with format
 }

Definition at line 57 of file formatfactory.h.


Public Member Functions

 ~FormatFactory ()
FormatPlugin * format (const QString &type)
QStringList formats ()
FormatInfo * info (const QString &type)

Static Public Member Functions

static FormatFactory * self ()

Constructor & Destructor Documentation

FormatFactory::~FormatFactory (  ) 

Destructor.

Definition at line 81 of file formatfactory.cpp.


Member Function Documentation

FormatFactory * FormatFactory::self (  )  [static]

Returns the global format factory.

Definition at line 38 of file formatfactory.cpp.

FormatPlugin * FormatFactory::format ( const QString &  type  ) 

Returns a pointer to a format object or a null pointer if format type doesn't exist.

Parameters:
type The type of the format, returned by formats()

Definition at line 109 of file formatfactory.cpp.

QStringList FormatFactory::formats (  ) 

Returns a list of all available format types.

Definition at line 86 of file formatfactory.cpp.

FormatInfo * FormatFactory::info ( const QString &  type  ) 

Returns the info structure for a special type.

Definition at line 101 of file formatfactory.cpp.


The documentation for this class was generated from the following files:
  • formatfactory.h
  • formatfactory.cpp

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal