• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.5 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • FormatFactory
Public Member Functions | Static Public Member Functions
KABC::FormatFactory Class Reference

#include <formatfactory.h>

List of all members.

Public Member Functions

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

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
 }

Constructor & Destructor Documentation

FormatFactory::~FormatFactory ( )

Destructor.

Definition at line 113 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:
typeThe type of the format, returned by formats()
See also:
info()

Definition at line 145 of file formatfactory.cpp.

QStringList FormatFactory::formats ( )

Returns a list of all available format types.

Definition at line 118 of file formatfactory.cpp.

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

Returns the info structure for a special type.

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

Definition at line 136 of file formatfactory.cpp.

FormatFactory * FormatFactory::self ( ) [static]

Returns the global format factory.

Definition at line 68 of file formatfactory.cpp.


The documentation for this class was generated from the following files:
  • formatfactory.h
  • formatfactory.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:26:08 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal