Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsuiatoggleprovider.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSUIATOGGLEPROVIDER_H
6#define QWINDOWSUIATOGGLEPROVIDER_H
7
8#include <QtGui/qtguiglobal.h>
9#if QT_CONFIG(accessibility)
10
11#include "qwindowsuiabaseprovider.h"
12
13QT_BEGIN_NAMESPACE
14
15// Implements the Toggle control pattern provider. Used for checkboxes.
16class QWindowsUiaToggleProvider : public QWindowsUiaBaseProvider, public QComObject<IToggleProvider>
17{
18 Q_DISABLE_COPY_MOVE(QWindowsUiaToggleProvider)
19public:
20 explicit QWindowsUiaToggleProvider(QAccessible::Id id);
21 virtual ~QWindowsUiaToggleProvider();
22
23 // IToggleProvider
24 HRESULT STDMETHODCALLTYPE Toggle() override;
25 HRESULT STDMETHODCALLTYPE get_ToggleState(ToggleState *pRetVal) override;
26};
27
28QT_END_NAMESPACE
29
30#endif // QT_CONFIG(accessibility)
31
32#endif // QWINDOWSUIATOGGLEPROVIDER_H