summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/devicesupport/idevicewidget.h
blob: 9fdd64abd94aad91988785d34fb65da8f54a74aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "idevicefwd.h"
#include <projectexplorer/projectexplorer_export.h>

#include <QWidget>

namespace ProjectExplorer {

class PROJECTEXPLORER_EXPORT IDeviceWidget : public QWidget
{
    Q_OBJECT
public:

    virtual void updateDeviceFromUi() = 0;

protected:
    explicit IDeviceWidget(const IDevicePtr &device) :
        m_device(device)
    { }

    IDevicePtr device() const { return m_device; }

private:
    IDevicePtr m_device;
};

} // namespace ProjectExplorer