1/* 2 * Copyright 2006, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan A��mus <superstippi@gmx.de> 7 */ 8 9#ifndef FILE_SAVER_H 10#define FILE_SAVER_H 11 12#include <Entry.h> 13 14#include "DocumentSaver.h" 15 16/*! Interface for saving to a file */ 17class FileSaver : public DocumentSaver { 18 public: 19 FileSaver(const entry_ref& ref); 20 virtual ~FileSaver(); 21 22 void SetRef(const entry_ref& ref); 23 const entry_ref* Ref() const 24 { return &fRef; } 25 26 protected: 27 entry_ref fRef; 28}; 29 30#endif // FILE_SAVER_H 31