• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

console/kabcclient

  • sources
  • kde-4.14
  • kdepim
  • console
  • kabcclient
  • src
formatfactory.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005 - 2006 Kevin Krammer <kevin.krammer@gmx.at>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 //
18 
19 #ifndef FORMATFACTORY_H
20 #define FORMATFACTORY_H
21 
22 // Qt includes
23 #include <QtCore/QByteArray>
24 #include <QtCore/QList>
25 
26 // forward declarations
27 class CSVTemplateFactory;
28 class InputFormat;
29 class OutputFormat;
30 
34 typedef QList<QByteArray> QByteArrayList;
35 
102 class FormatFactory
103 {
104 public:
108  FormatFactory();
109 
113  ~FormatFactory();
114 
128  inline QByteArrayList inputFormatList() const { return m_inputFormats; }
129 
143  inline QByteArrayList outputFormatList() const { return m_outputFormats; }
144 
159  InputFormat* inputFormat(const QByteArray& name);
160 
175  OutputFormat* outputFormat(const QByteArray& name);
176 
177 private:
181  QByteArrayList m_inputFormats;
182 
186  QByteArrayList m_outputFormats;
187 
194  CSVTemplateFactory* m_csvtemplateFactory;
195 
196 private:
197  FormatFactory(const FormatFactory&);
198  FormatFactory& operator=(const FormatFactory&);
199 };
200 
201 #endif
202 
203 // End of file
FormatFactory::~FormatFactory
~FormatFactory()
Destroys the factory and its internal data.
Definition: formatfactory.cpp:46
QByteArray
FormatFactory::inputFormatList
QByteArrayList inputFormatList() const
Returns a list of input parser names.
Definition: formatfactory.h:128
InputFormat
Interface for input format parsers.
Definition: inputformat.h:51
FormatFactory::outputFormatList
QByteArrayList outputFormatList() const
Returns a list of output formatter names.
Definition: formatfactory.h:143
OutputFormat
Interface for output formatters.
Definition: outputformat.h:53
FormatFactory::inputFormat
InputFormat * inputFormat(const QByteArray &name)
Creates an InputFormat instance for the given name.
Definition: formatfactory.cpp:53
FormatFactory::outputFormat
OutputFormat * outputFormat(const QByteArray &name)
Creates an OutputFormat instance for the given name.
Definition: formatfactory.cpp:81
QList< QByteArray >
FormatFactory::FormatFactory
FormatFactory()
Creates and initializes the factory.
Definition: formatfactory.cpp:27
FormatFactory
Factory for input parsers and output formatters.
Definition: formatfactory.h:102
QByteArrayList
QList< QByteArray > QByteArrayList
A list of strings for format names.
Definition: formatfactory.h:29
CSVTemplateFactory
Factory for creation CSV template handlers.
Definition: csvtemplatefactory.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

console/kabcclient

Skip menu "console/kabcclient"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



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