mymoneystoragedump.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                            mymoneystoragedump.h  -  description
00003                              -------------------
00004     begin                : Sun May 5 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 MYMONEYSTORAGEDUMP_H
00024 #define MYMONEYSTORAGEDUMP_H
00025 
00026 // ----------------------------------------------------------------------------
00027 // QT Includes
00028 
00029 #include <qdatastream.h>
00030 
00031 // ----------------------------------------------------------------------------
00032 // Project Includes
00033 
00034 #include "imymoneyserialize.h"
00035 #include "../mymoneysecurity.h"
00036 
00041 class MyMoneyStorageDump
00042 {
00043 public:
00044   MyMoneyStorageDump();
00045   ~MyMoneyStorageDump();
00046 
00047   void readStream(QDataStream& s, IMyMoneySerialize* storage);
00048   void writeStream(QDataStream& s, IMyMoneySerialize* storage);
00049 
00050 private:
00051   void dumpTransaction(QTextStream& s, IMyMoneyStorage* storage, const MyMoneyTransaction& it_t);
00052   void dumpKVP(const QString& headline, QTextStream& s, const MyMoneyKeyValueContainer &kvp, int indent = 0);
00053   const QString reconcileToString(MyMoneySplit::reconcileFlagE flag) const;
00054 };
00055 
00056 #endif

Generated on Wed Jan 26 13:03:18 2011 for KMyMoney by  doxygen 1.5.6