• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::FormatFactory

KABC::FormatFactory Class Reference

Class for loading format plugins. More...

#include <formatfactory.h>

List of all members.


Public Member Functions

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

Static Public Member Functions

static FormatFactory * self ()

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::Format *format = factory->format( (*it) );
   // do something with format
 }

Definition at line 95 of file formatfactory.h.


Constructor & Destructor Documentation

FormatFactory::~FormatFactory (  ) 

Destructor.

Definition at line 112 of file formatfactory.cpp.


Member Function Documentation

Format * 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()
See also:
info()

Definition at line 144 of file formatfactory.cpp.

QStringList FormatFactory::formats (  ) 

Returns a list of all available format types.

Definition at line 117 of file formatfactory.cpp.

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

Returns the info structure for a special type.

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

Definition at line 135 of file formatfactory.cpp.

FormatFactory * FormatFactory::self (  )  [static]

Returns the global format factory.

Definition at line 67 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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
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