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
qwindowsuiavalueprovider.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 QWINDOWSUIAVALUEPROVIDER_H
6#define QWINDOWSUIAVALUEPROVIDER_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 Value control pattern provider.
16// Supported for all controls that can return text(QAccessible::Value).
17class QWindowsUiaValueProvider : public QWindowsUiaBaseProvider, public QComObject<IValueProvider>
18{
19 Q_DISABLE_COPY_MOVE(QWindowsUiaValueProvider)
20public:
21 explicit QWindowsUiaValueProvider(QAccessible::Id id);
22 virtual ~QWindowsUiaValueProvider();
23
24 // IValueProvider
25 HRESULT STDMETHODCALLTYPE SetValue(LPCWSTR val) override;
26 HRESULT STDMETHODCALLTYPE get_IsReadOnly(BOOL *pRetVal) override;
27 HRESULT STDMETHODCALLTYPE get_Value(BSTR *pRetVal) override;
28};
29
30QT_END_NAMESPACE
31
32#endif // QT_CONFIG(accessibility)
33
34#endif // QWINDOWSUIAVALUEPROVIDER_H