1 /* 2 * Copyright (C) 2002 - David W. Durham 3 * 4 * This file is part of ReZound, an audio editing application. 5 * 6 * ReZound is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published 8 * by the Free Software Foundation; either version 2 of the License, 9 * or (at your option) any later version. 10 * 11 * ReZound is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 */ 20 21 #ifndef __CBurnToCDAction_H__ 22 #define __CBurnToCDAction_H__ 23 24 25 #include "../../../config/common.h" 26 27 #include "../AAction.h" 28 #include <stdio.h> 29 30 class CBurnToCDAction : public AAction 31 { 32 public: 33 CBurnToCDAction(const AActionFactory *factory,const CActionSound *actionSound,const string tempSpaceDir,const string pathTo_cdrdao,const unsigned burnSpeed,const unsigned gapBetweenTracks,const string device,const string extra_cdrdao_options,const bool selectionOnly,const bool testOnly); 34 virtual ~CBurnToCDAction(); 35 36 static const string getExplanation(); 37 static const string detectDevice(const string pathTo_cdrdao); 38 39 protected: 40 bool doActionSizeSafe(CActionSound *actionSound,bool prepareForUndo); 41 void undoActionSizeSafe(const CActionSound *actionSound); 42 CanUndoResults canUndo(const CActionSound *actionSound) const; 43 44 bool doesWarrantSaving() const; 45 46 private: 47 const string tempSpaceDir; 48 const string pathTo_cdrdao; 49 const unsigned burnSpeed; 50 const unsigned gapBetweenTracks; 51 const string device; 52 const string extra_cdrdao_options; 53 const bool selectionOnly; 54 const bool testOnly; 55 56 void showStatus(FILE *p); 57 58 }; 59 60 class CBurnToCDActionFactory : public AActionFactory 61 { 62 public: 63 CBurnToCDActionFactory(AActionDialog *channelSelectDialog); 64 virtual ~CBurnToCDActionFactory(); 65 66 CBurnToCDAction *manufactureAction(const CActionSound *actionSound,const CActionParameters *actionParameters) const; 67 }; 68 69 #endif 70