• 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
inputformat.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 INPUTFORMAT_H
20 #define INPUTFORMAT_H
21 
22 // standard includes
23 #include <istream>
24 
25 // Qt includes
26 #include <QtCore/QString>
27 
28 // forward declarations
29 class QTextCodec;
30 
31 namespace KABC
32 {
33  class Addressee;
34 }
35 
51 class InputFormat
52 {
53 public:
58  virtual ~InputFormat() {}
59 
73  virtual QString description() const = 0;
74 
97  virtual KABC::Addressee readAddressee(std::istream& stream) = 0;
98 
113  virtual bool setOptions(const QByteArray& options) = 0;
114 
135  virtual QString optionUsage() const { return QString(); }
136 
151  virtual bool setCodec(QTextCodec* codec) = 0;
152 };
153 
154 #endif
155 
156 // End of file
QByteArray
InputFormat::optionUsage
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: inputformat.h:135
InputFormat
Interface for input format parsers.
Definition: inputformat.h:51
InputFormat::readAddressee
virtual KABC::Addressee readAddressee(std::istream &stream)=0
Reads one addressee from the input stream.
InputFormat::setOptions
virtual bool setOptions(const QByteArray &options)=0
Configures the input format.
QString
QTextCodec
InputFormat::~InputFormat
virtual ~InputFormat()
Destroys the instance Defined here because the class contains virtual methods.
Definition: inputformat.h:58
InputFormat::setCodec
virtual bool setCodec(QTextCodec *codec)=0
Sets the text codec to use.
InputFormat::description
virtual QString description() const =0
Returns a translate description of the input format.
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