• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • FormatFactory
Public Member Functions | Static Public Member Functions | List of all members
TDEABC::FormatFactory Class Reference

#include <formatfactory.h>

Public Member Functions

 ~FormatFactory ()
 
FormatPlugin * format (const TQString &type)
 
TQStringList formats ()
 
FormatInfo * info (const TQString &type)
 

Static Public Member Functions

static FormatFactory * self ()
 

Detailed Description

Class for loading format plugins.

Example:

TDEABC::FormatFactory *factory = TDEABC::FormatFactory::self();
TQStringList list = factory->formats();
TQStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
TDEABC::FormatPlugin *format = factory->format( (*it) );
// do something with format
}
TDEABC::FormatFactory
Class for loading format plugins.
Definition: formatfactory.h:58
TDEABC::FormatFactory::formats
TQStringList formats()
Returns a list of all available format types.
Definition: formatfactory.cpp:86
TDEABC::FormatFactory::self
static FormatFactory * self()
Returns the global format factory.
Definition: formatfactory.cpp:38
TDEABC::FormatFactory::format
FormatPlugin * format(const TQString &type)
Returns a pointer to a format object or a null pointer if format type doesn't exist.
Definition: formatfactory.cpp:109
TDEABC::FormatPlugin
Base class for address book formats.
Definition: formatplugin.h:43

Definition at line 57 of file formatfactory.h.

Constructor & Destructor Documentation

◆ ~FormatFactory()

FormatFactory::~FormatFactory ( )

Destructor.

Definition at line 81 of file formatfactory.cpp.

◆ FormatFactory()

FormatFactory::FormatFactory ( )
protected

Definition at line 48 of file formatfactory.cpp.

Member Function Documentation

◆ format()

FormatPlugin * FormatFactory::format ( const TQString &  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()

Definition at line 109 of file formatfactory.cpp.

◆ formats()

TQStringList FormatFactory::formats ( )

Returns a list of all available format types.

Definition at line 86 of file formatfactory.cpp.

◆ info()

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

Returns the info structure for a special type.

Definition at line 101 of file formatfactory.cpp.

◆ self()

FormatFactory * FormatFactory::self ( )
static

Returns the global format factory.

Definition at line 38 of file formatfactory.cpp.


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

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.