1 /****************************************************************************
2 **
3 ** Copyright (C) 2018 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the plugins of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39 
40 #ifndef QWINRTUIAEMPTYPROPERTYVALUE_H
41 #define QWINRTUIAEMPTYPROPERTYVALUE_H
42 
43 #include <QtGui/qtguiglobal.h>
44 #if QT_CONFIG(accessibility)
45 
46 #include <wrl.h>
47 #include <windows.ui.xaml.h>
48 
49 QT_BEGIN_NAMESPACE
50 
51 // Implements an empty property value.
52 class QWinRTUiaEmptyPropertyValue :
53         public Microsoft::WRL::RuntimeClass<ABI::Windows::Foundation::IPropertyValue>
54 {
55     InspectableClass(L"QWinRTUiaEmptyPropertyValue", BaseTrust);
56 public:
57 
get_Type(ABI::Windows::Foundation::PropertyType * value)58     HRESULT STDMETHODCALLTYPE get_Type(ABI::Windows::Foundation::PropertyType *value)
59     {
60         *value = ABI::Windows::Foundation::PropertyType_Empty;
61         return S_OK;
62     }
63 
get_IsNumericScalar(boolean *)64     HRESULT STDMETHODCALLTYPE get_IsNumericScalar(boolean*) { return E_FAIL; }
GetUInt8(BYTE *)65     HRESULT STDMETHODCALLTYPE GetUInt8(BYTE*) { return E_FAIL; }
GetInt16(INT16 *)66     HRESULT STDMETHODCALLTYPE GetInt16(INT16*) { return E_FAIL; }
GetUInt16(UINT16 *)67     HRESULT STDMETHODCALLTYPE GetUInt16(UINT16*) { return E_FAIL; }
GetInt32(INT32 *)68     HRESULT STDMETHODCALLTYPE GetInt32(INT32*) { return E_FAIL; }
GetUInt32(UINT32 *)69     HRESULT STDMETHODCALLTYPE GetUInt32(UINT32*) { return E_FAIL; }
GetInt64(INT64 *)70     HRESULT STDMETHODCALLTYPE GetInt64(INT64*) { return E_FAIL; }
GetUInt64(UINT64 *)71     HRESULT STDMETHODCALLTYPE GetUInt64(UINT64*) { return E_FAIL; }
GetSingle(FLOAT *)72     HRESULT STDMETHODCALLTYPE GetSingle(FLOAT*) { return E_FAIL; }
GetDouble(DOUBLE *)73     HRESULT STDMETHODCALLTYPE GetDouble(DOUBLE*) { return E_FAIL; }
GetChar16(WCHAR *)74     HRESULT STDMETHODCALLTYPE GetChar16(WCHAR*) { return E_FAIL; }
GetBoolean(boolean *)75     HRESULT STDMETHODCALLTYPE GetBoolean(boolean*) { return E_FAIL; }
GetString(HSTRING *)76     HRESULT STDMETHODCALLTYPE GetString(HSTRING*) { return E_FAIL; }
GetGuid(GUID *)77     HRESULT STDMETHODCALLTYPE GetGuid(GUID*) { return E_FAIL; }
GetDateTime(ABI::Windows::Foundation::DateTime *)78     HRESULT STDMETHODCALLTYPE GetDateTime(ABI::Windows::Foundation::DateTime*) { return E_FAIL; }
GetTimeSpan(ABI::Windows::Foundation::TimeSpan *)79     HRESULT STDMETHODCALLTYPE GetTimeSpan(ABI::Windows::Foundation::TimeSpan*) { return E_FAIL; }
GetPoint(ABI::Windows::Foundation::Point *)80     HRESULT STDMETHODCALLTYPE GetPoint(ABI::Windows::Foundation::Point*) { return E_FAIL; }
GetSize(ABI::Windows::Foundation::Size *)81     HRESULT STDMETHODCALLTYPE GetSize(ABI::Windows::Foundation::Size*) { return E_FAIL; }
GetRect(ABI::Windows::Foundation::Rect *)82     HRESULT STDMETHODCALLTYPE GetRect(ABI::Windows::Foundation::Rect*) { return E_FAIL; }
GetUInt8Array(UINT32 *,BYTE **)83     HRESULT STDMETHODCALLTYPE GetUInt8Array(UINT32*, BYTE**) { return E_FAIL; }
GetInt16Array(UINT32 *,INT16 **)84     HRESULT STDMETHODCALLTYPE GetInt16Array(UINT32*, INT16**) { return E_FAIL; }
GetUInt16Array(UINT32 *,UINT16 **)85     HRESULT STDMETHODCALLTYPE GetUInt16Array(UINT32*, UINT16**) { return E_FAIL; }
GetInt32Array(UINT32 *,INT32 **)86     HRESULT STDMETHODCALLTYPE GetInt32Array(UINT32*, INT32**) { return E_FAIL; }
GetUInt32Array(UINT32 *,UINT32 **)87     HRESULT STDMETHODCALLTYPE GetUInt32Array(UINT32*, UINT32**) { return E_FAIL; }
GetInt64Array(UINT32 *,INT64 **)88     HRESULT STDMETHODCALLTYPE GetInt64Array(UINT32*, INT64**) { return E_FAIL; }
GetUInt64Array(UINT32 *,UINT64 **)89     HRESULT STDMETHODCALLTYPE GetUInt64Array(UINT32*, UINT64**) { return E_FAIL; }
GetSingleArray(UINT32 *,FLOAT **)90     HRESULT STDMETHODCALLTYPE GetSingleArray(UINT32*, FLOAT**) { return E_FAIL; }
GetDoubleArray(UINT32 *,DOUBLE **)91     HRESULT STDMETHODCALLTYPE GetDoubleArray(UINT32*, DOUBLE**) { return E_FAIL; }
GetChar16Array(UINT32 *,WCHAR **)92     HRESULT STDMETHODCALLTYPE GetChar16Array(UINT32*, WCHAR**) { return E_FAIL; }
GetBooleanArray(UINT32 *,boolean **)93     HRESULT STDMETHODCALLTYPE GetBooleanArray(UINT32*, boolean**) { return E_FAIL; }
GetStringArray(UINT32 *,HSTRING **)94     HRESULT STDMETHODCALLTYPE GetStringArray(UINT32*, HSTRING**) { return E_FAIL; }
GetInspectableArray(UINT32 *,IInspectable ***)95     HRESULT STDMETHODCALLTYPE GetInspectableArray(UINT32*, IInspectable***) { return E_FAIL; }
GetGuidArray(UINT32 *,GUID **)96     HRESULT STDMETHODCALLTYPE GetGuidArray(UINT32*, GUID**) { return E_FAIL; }
GetDateTimeArray(UINT32 *,ABI::Windows::Foundation::DateTime **)97     HRESULT STDMETHODCALLTYPE GetDateTimeArray(UINT32*, ABI::Windows::Foundation::DateTime**) { return E_FAIL; }
GetTimeSpanArray(UINT32 *,ABI::Windows::Foundation::TimeSpan **)98     HRESULT STDMETHODCALLTYPE GetTimeSpanArray(UINT32*, ABI::Windows::Foundation::TimeSpan**) { return E_FAIL; }
GetPointArray(UINT32 *,ABI::Windows::Foundation::Point **)99     HRESULT STDMETHODCALLTYPE GetPointArray(UINT32*, ABI::Windows::Foundation::Point**) { return E_FAIL; }
GetSizeArray(UINT32 *,ABI::Windows::Foundation::Size **)100     HRESULT STDMETHODCALLTYPE GetSizeArray(UINT32*, ABI::Windows::Foundation::Size**) { return E_FAIL; }
GetRectArray(UINT32 *,ABI::Windows::Foundation::Rect **)101     HRESULT STDMETHODCALLTYPE GetRectArray(UINT32*, ABI::Windows::Foundation::Rect**) { return E_FAIL; }
102 };
103 
104 QT_END_NAMESPACE
105 
106 #endif // QT_CONFIG(accessibility)
107 
108 #endif // QWINRTUIAEMPTYPROPERTYVALUE_H
109