/* Copyright 2006-2012 Xavier Guerrin This file is part of QElectroTech. QElectroTech 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. QElectroTech is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with QElectroTech. If not, see . */ #ifndef MOVE_ELEMENTS_DESCRIPTION_H #define MOVE_ELEMENTS_DESCRIPTION_H #include class ElementsCollectionItem; class ElementsCategory; class MoveElementsHandler; /** Cette classe represente la description d'un mouvement d'elements. Il peut s'agir d'un deplacement ou d'une copie. La source n'est pas mentionnee */ class MoveElementsDescription : public QObject { Q_OBJECT // constructeurs, destructeur public: MoveElementsDescription(QObject * = 0); virtual ~MoveElementsDescription(); private: MoveElementsDescription(const MoveElementsDescription &); // methodes public: bool isRecursive() const; void setRecursive(bool); MoveElementsHandler *handler() const; void setHandler(MoveElementsHandler *); ElementsCategory *destinationParentCategory() const; void setDestinationParentCategory(ElementsCategory *); QString originalDestinationInternalName() const; void setOriginalDestinationInternalName(const QString &); QString finalDestinationInternalName() const; void setFinalDestinationInternalName(const QString &); ElementsCollectionItem *createdItem() const; void setCreatedItem(ElementsCollectionItem *); bool sourceItemWasDeleted() const; void setSourceItemDeleted(bool); bool mustAbort() const; void abort(); // attributs private: bool recursive_; MoveElementsHandler *handler_; ElementsCategory *destination_; QString dest_internal_name_orig_; QString dest_internal_name_final_; ElementsCollectionItem *created_item_; bool src_deleted_; bool abort_; }; #endif