Files
pilotclient/src/blackgui/models/selectionmodel.h
2017-01-10 23:45:08 +00:00

35 lines
1.0 KiB
C++

/* Copyright (C) 2016
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_SELECTIONMODEL_H
#define BLACKGUI_SELECTIONMODEL_H
namespace BlackGui
{
namespace Models
{
//! Allow to get and select objects
template <typename ContainerType> class ISelectionModel
{
public:
//! Destructor
virtual ~ISelectionModel() {}
//! Selected objects
virtual ContainerType selectedObjects() const = 0;
//! Select
virtual void selectObjects(const ContainerType &selectedObjects) = 0;
};
} // namespace
} // namespace
#endif // guard