refs #452 stash component (preparation, not yet implemented)

stashed mappings will be written in one step to DB
This commit is contained in:
Klaus Basan
2015-09-24 01:14:15 +02:00
committed by Mathew Sutcliffe
parent 0a51c0a7b7
commit 89ed13276e
3 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
/* Copyright (C) 2015
* 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_COMPONENTS_DBSTASHCOMPONENT_H
#define BLACKGUI_COMPONENTS_DBSTASHCOMPONENT_H
#include "blackgui/components/enablefordockwidgetinfoarea.h"
#include "blackmisc/network/webdataservicesprovider.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class CDbStashComponent; }
namespace BlackGui
{
namespace Components
{
/*!
* Stashed objects
*/
class BLACKGUI_EXPORT CDbStashComponent :
public QFrame,
public CEnableForDockWidgetInfoArea,
public BlackMisc::Network::CWebDataServicesAware
{
Q_OBJECT
public:
//! Constructor
explicit CDbStashComponent(QWidget *parent = nullptr);
//! Destructor
~CDbStashComponent();
//! \copydoc CWebDataReaderAware::setProvider
virtual void setProvider(BlackMisc::Network::IWebDataServicesProvider *provider) override;
//! Graceful shutdown
void gracefulShutdown();
private:
QScopedPointer<Ui::CDbStashComponent> ui;
};
} // ns
} // ns
#endif // guard