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

tdeabc

  • tdeabc
formatfactory.h
1 /*
2  This file is part of libtdeabc.
3  Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_FORMATFACTORY_H
22 #define KABC_FORMATFACTORY_H
23 
24 #include <tqdict.h>
25 #include <tqstring.h>
26 
27 #include <tdeconfig.h>
28 #include <klibloader.h>
29 
30 #include "formatplugin.h"
31 
32 namespace TDEABC {
33 
34 struct FormatInfo
35 {
36  TQString library;
37  TQString nameLabel;
38  TQString descriptionLabel;
39 };
40 
57 class KABC_EXPORT FormatFactory
58 {
59  public:
60 
64  ~FormatFactory();
65 
69  static FormatFactory *self();
70 
77  FormatPlugin *format( const TQString &type );
78 
82  TQStringList formats();
83 
87  FormatInfo *info( const TQString &type );
88 
89  protected:
90  FormatFactory();
91 
92  private:
93  KLibrary *openLibrary( const TQString& libName );
94 
95  static FormatFactory *mSelf;
96 
97  TQDict<FormatInfo> mFormatList;
98 };
99 
100 }
101 #endif
KLibrary
TDEABC::FormatFactory
Class for loading format plugins.
Definition: formatfactory.h:58
TDEABC::FormatPlugin
Base class for address book formats.
Definition: formatplugin.h:43
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

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.1
This website is maintained by Timothy Pearson.