summaryrefslogtreecommitdiffstats
path: root/src/activeqt/container/qaxselect.h
blob: 5146d5e575864cd74699d4cf62b75955cd695de6 (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
32
33
34
35
36
37
38
39
40
41
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef QAXSELECT_H
#define QAXSELECT_H
#include <QtWidgets/qdialog.h>

QT_BEGIN_NAMESPACE

class QAxSelectPrivate;
class QModelIndex;

class QAxSelect : public QDialog
{
    Q_OBJECT
public:
    enum SandboxingLevel {
        SandboxingNone = 0,
        SandboxingProcess,
        SandboxingLowIntegrity,
        SandboxingAppContainer,
    };

    explicit QAxSelect(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
    ~QAxSelect() override;

    QString clsid() const;
    SandboxingLevel sandboxingLevel() const;

private Q_SLOTS:
    void onActiveXListCurrentChanged(const QModelIndex &);
    void onActiveXListActivated();
    void onFilterLineEditChanged(const QString &);

private:
    QScopedPointer<QAxSelectPrivate> d;
};

QT_END_NAMESPACE

#endif // QAXSELECT_H