1 /*************************************************************************** 2 documentsaverdb - save documents to the database 3 ------------------- 4 begin : 2006-02-21 5 copyright : (C) 2005 by Klaas Freitag 6 email : freitag@kde.org 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef _DOCUMENTSAVERDB_H 19 #define _DOCUMENTSAVERDB_H 20 21 #include "documentsaverbase.h" 22 23 class KraftDoc; 24 class QSqlRecord; 25 class dbID; 26 class QString; 27 28 class DocumentSaverDB : public DocumentSaverBase 29 { 30 Q_OBJECT 31 32 public: 33 DocumentSaverDB(); 34 virtual ~DocumentSaverDB(); 35 36 virtual bool saveDocument( KraftDoc* ); 37 virtual void load( const QString& , KraftDoc * ); 38 protected: 39 virtual void loadPositions( const QString&, KraftDoc* ); 40 virtual void saveDocumentPositions( KraftDoc* ); 41 private: 42 const QString PosTypePosition; 43 const QString PosTypeExtraDiscount; 44 const QString PosTypeHeader; 45 }; 46 47 #endif 48 49 /* END */ 50 51