/*************************************************************************** tmdmcopier.h ------------------- copyright : (C) 2013 CREALP Lucien Schreiber email : lucien.schreiber at crealp dot vs dot ch ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _TMDMCOPIER_H_ #define _TMDMCOPIER_H_ #include "wx/wxprec.h" #ifndef WX_PRECOMP #include #endif #include enum TMDMCOPIER_MODE { TMDMCOPIER_MODE_ERASE = 0, TMDMCOPIER_MODE_APPEND }; class TmDmCopier { private: TMDMCOPIER_MODE m_CopyMode; public: TmDmCopier(const wxFileName & destfile); virtual ~TmDmCopier(); void SetCopyMode(TMDMCOPIER_MODE value); bool CopyFrom(const wxFileName & filename); bool CopyFrom(const wxString & text); bool IsCopyAllowed(); }; #endif