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,38 @@
/* Copyright (C) 2013
* 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.
*/
#include "dbstashcomponent.h"
#include "ui_dbstashcomponent.h"
namespace BlackGui
{
namespace Components
{
CDbStashComponent::CDbStashComponent(QWidget *parent) :
QFrame(parent),
ui(new Ui::CDbStashComponent)
{
ui->setupUi(this);
}
CDbStashComponent::~CDbStashComponent()
{ }
void CDbStashComponent::setProvider(BlackMisc::Network::IWebDataServicesProvider *provider)
{
CWebDataServicesAware::setProvider(provider);
}
void CDbStashComponent::gracefulShutdown()
{
}
} // ns
} // ns

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

View File

@@ -0,0 +1,23 @@
<?xml version='1.0'?>
<ui version="4.0">
<class>CDbStashComponent</class>
<widget class="QFrame" name="CDbStashComponent">
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="windowTitle">
<string>Frame</string>
</property>
</widget>
</ui>