• 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
outputformat.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 OUTPUTFORMAT_H
20 #define OUTPUTFORMAT_H
21 
22 // standard includes
23 #include <ostream>
24 
25 // Qt includes
26 #include <QtCore/QString>
27 
28 // forward declarations
29 namespace KABC
30 {
31  class Addressee;
32  class AddresseeList;
33 }
34 
53 class OutputFormat
54 {
55 public:
60  virtual ~OutputFormat() {}
61 
62 
76  virtual QString description() const = 0;
77 
92  virtual bool setOptions(const QByteArray& options) = 0;
93 
114  virtual QString optionUsage() const { return QString(); }
115 
130  virtual bool setCodec(QTextCodec* codec) = 0;
131 
154  virtual bool writeAddressee(const KABC::Addressee& addressee, std::ostream& stream) = 0;
155 
175  virtual bool writeAddresseeList(const KABC::AddresseeList& addresseeList,
176  std::ostream& stream) = 0;
177 };
178 
179 #endif
180 
181 // End of file
OutputFormat::description
virtual QString description() const =0
Returns a translate description of the output format.
QByteArray
OutputFormat::writeAddresseeList
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)=0
Writes the data from each addressee in the given list to the given output stream. ...
OutputFormat
Interface for output formatters.
Definition: outputformat.h:53
OutputFormat::~OutputFormat
virtual ~OutputFormat()
Destroys the instance Defined here because the class contains virtual methods.
Definition: outputformat.h:60
OutputFormat::writeAddressee
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)=0
Writes the data of a given addressee to the given output stream.
OutputFormat::setCodec
virtual bool setCodec(QTextCodec *codec)=0
Sets the text codec to use.
QString
QTextCodec
OutputFormat::setOptions
virtual bool setOptions(const QByteArray &options)=0
Configures the output format.
OutputFormat::optionUsage
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: outputformat.h:114
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