Documentation
[yamf.git] / yamf / model / command / removescene.h
blob2239f83353c10eaa4f1dcd00021a2b638e73749f
1 /***************************************************************************
2 * Copyright (C) 2007 David Cuadrado *
3 * krawek@gmail.com *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Lesser General Public *
7 * License as published by the Free Software Foundation; either *
8 * version 2.1 of the License, or (at your option) any later version. *
9 * *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
23 #ifndef YAMF_COMMANDREMOVESCENE_H
24 #define YAMF_COMMANDREMOVESCENE_H
26 #include <yamf/model/command/base.h>
28 #include <yamf/common/inthash.h>
29 #include <yamf/common/yamf_exports.h>
31 namespace YAMF {
33 namespace Model {
34 class Scene;
37 namespace Command {
39 /**
40 * @ingroup model
41 * @~spanish
42 * @brief Esta clase provee de un comando para remover una escena de la colección que la contiene.
43 * @author David Cuadrado <krawek@gmail.com>
45 class YAMF_EXPORT RemoveScene : public YAMF::Command::Base
47 public:
48 RemoveScene(Model::Scene *scene, Common::IntHash<Model::Scene *> *scenes);
49 ~RemoveScene();
51 QString toXml() const;
53 protected:
54 virtual void execute();
55 virtual void unexecute();
57 private:
58 struct Private;
59 Private *const d;
66 #endif