00001 /*************************************************************************** 00002 filegroup.h - description 00003 ------------------- 00004 begin : March 2006 00005 copyright : (C) 2003 by Tim Sutton 00006 email : tim@linfiniti.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef OMGSERIALISABLE_H 00019 #define OMGSERIALISABLE_H 00020 00021 class QString; 00022 #include <QFile> 00028 class OMG_LIB_EXPORT OmgSerialisable 00029 { 00030 public: 00032 OmgSerialisable(); 00034 virtual ~OmgSerialisable(); 00036 virtual QString toXml() const =0; 00042 virtual bool toXml(QString theFileName) const; 00044 virtual bool fromXml(const QString theXml)=0; 00048 virtual bool fromXmlFile(const QString theFileName); 00049 }; 00050 00051 #endif //OMGSERIALISABLE_H 00052