[AFV] Ref T731, Ref T739 model/view for audio device info

This commit is contained in:
Klaus Basan
2019-10-30 01:41:24 +01:00
committed by Mat Sutcliffe
parent 8a89b8f261
commit 80725e96dc
8 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* Copyright (C) 2019
* 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. 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 "blackgui/models/audiodeviceinfolistmodel.h"
#include "blackgui/views/audiodeviceinfoview.h"
using namespace BlackMisc;
using namespace BlackGui::Models;
namespace BlackGui
{
namespace Views
{
CAudioDeviceInfoView::CAudioDeviceInfoView(QWidget *parent) : CViewBase(parent)
{
this->standardInit(new CAudioDeviceInfoListModel(this));
}
}
} // namespace

View File

@@ -0,0 +1,34 @@
/* Copyright (C) 2019
* 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. 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_VIEWS_AUDIODEVICEINFOVIEW_H
#define BLACKGUI_VIEWS_AUDIODEVICEINFOVIEW_H
#include "blackgui/models/audiodeviceinfolistmodel.h"
#include "blackgui/views/viewbase.h"
#include "blackgui/blackguiexport.h"
namespace BlackGui
{
namespace Views
{
//! Audio device view
class BLACKGUI_EXPORT CAudioDeviceInfoView : public CViewBase<Models::CAudioDeviceInfoListModel>
{
Q_OBJECT
public:
//! Constructor
explicit CAudioDeviceInfoView(QWidget *parent = nullptr);
};
}
} // ns
#endif // guard

View File

@@ -17,5 +17,8 @@ namespace BlackGui
template class CViewBase<BlackGui::Models::CStatusMessageListModel>;
template class CViewBase<BlackGui::Models::CIdentifierListModel>;
template class CViewBase<BlackGui::Models::CNameVariantPairModel>;
template class CViewBase<BlackGui::Models::CAudioDeviceInfoListModel>;
} // namespace
} // namespace