console/kabcclient
outputformat.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef OUTPUTFORMAT_H
00020 #define OUTPUTFORMAT_H
00021
00022
00023 #include <ostream>
00024
00025
00026 #include <QtCore/QString>
00027
00028
00029 namespace KABC
00030 {
00031 class Addressee;
00032 class AddresseeList;
00033 }
00034
00053 class OutputFormat
00054 {
00055 public:
00060 virtual ~OutputFormat() {}
00061
00062
00076 virtual QString description() const = 0;
00077
00092 virtual bool setOptions(const QByteArray& options) = 0;
00093
00114 virtual QString optionUsage() const { return QString(); }
00115
00130 virtual bool setCodec(QTextCodec* codec) = 0;
00131
00154 virtual bool writeAddressee(const KABC::Addressee& addressee, std::ostream& stream) = 0;
00155
00175 virtual bool writeAddresseeList(const KABC::AddresseeList& addresseeList,
00176 std::ostream& stream) = 0;
00177 };
00178
00179 #endif
00180
00181