binaryformat.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KABC_BINARYFORMAT_H
00021 #define KABC_BINARYFORMAT_H
00022
00023 #include "formatplugin.h"
00024
00025 namespace KABC {
00026
00027 class AddressBook;
00028 class Addressee;
00029
00033 class BinaryFormat : public FormatPlugin
00034 {
00035 public:
00039 bool load( Addressee &, QFile *file );
00040
00044 bool loadAll( AddressBook *, Resource *, QFile *file );
00045
00049 void save( const Addressee &, QFile *file );
00050
00054 void saveAll( AddressBook *, Resource *, QFile *file );
00055
00059 bool checkFormat( QFile *file ) const;
00060
00061 private:
00062 void loadAddressee( Addressee &, QDataStream & );
00063 void saveAddressee( const Addressee &, QDataStream & );
00064 bool checkHeader( QDataStream & ) const;
00065 void writeHeader( QDataStream & );
00066 };
00067
00068 }
00069 #endif
This file is part of the documentation for kabc Library Version 3.4.0.