Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

imymoneystorageformat.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           imymoneystorageformat.h  -  description
00003                              -------------------
00004     begin                : Sun Oct 27 2002
00005     copyright            : (C) 2000-2002 by Michael Edwardes
00006     email                : mte@users.sourceforge.net
00007                            Javier Campos Morales <javi_c@users.sourceforge.net>
00008                            Felix Rodriguez <frodriguez@users.sourceforge.net>
00009                            John C <thetacoturtle@users.sourceforge.net>
00010                            Thomas Baumgart <ipwizard@users.sourceforge.net>
00011                            Kevin Tambascio <ktambascio@users.sourceforge.net>
00012  ***************************************************************************/
00013 
00014 /***************************************************************************
00015  *                                                                         *
00016  *   This program is free software; you can redistribute it and/or modify  *
00017  *   it under the terms of the GNU General Public License as published by  *
00018  *   the Free Software Foundation; either version 2 of the License, or     *
00019  *   (at your option) any later version.                                   *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 #ifndef IMYMONEYSTORAGEFORMAT_H
00024 #define IMYMONEYSTORAGEFORMAT_H
00025 
00026 
00031 // ----------------------------------------------------------------------------
00032 // QT Includes
00033 
00034 class QString;
00035 class QIODevice;
00036 class QProgressDialog;
00037 
00038 // ----------------------------------------------------------------------------
00039 // Project Includes
00040 
00041 class IMyMoneySerialize;
00042   
00043 
00044 class IMyMoneyStorageFormat
00045 {
00046 public: 
00047     IMyMoneyStorageFormat();
00048     virtual ~IMyMoneyStorageFormat();
00049 
00050     enum fileVersionDirectionType {
00051     Reading = 0,          
00052     Writing = 1           
00053   };
00054 
00055   virtual void readFile(QIODevice* qf, IMyMoneySerialize* storage) = 0;
00056   // virtual void readStream(QDataStream& s, IMyMoneySerialize* storage) = 0;
00057 
00058   virtual void writeFile(QIODevice* qf, IMyMoneySerialize* storage) = 0;
00059   //virtual void writeStream(QDataStream& s, IMyMoneySerialize* storage) = 0;
00060 
00061   virtual void setProgressCallback(void(*callback)(int, int, const QString&)) = 0;
00066   static unsigned int fileVersionRead;
00067 
00072   static unsigned int fileVersionWrite;
00073 };
00074 
00075 #endif

Generated on Sun Sep 7 03:57:34 2008 for KMyMoney by  doxygen 1.4.1