Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / opengl / win / WinDeviceInfo.hxx
blob2f9a52596bb31ea9bd2f2006245d70d81bb945c3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_VCL_OPENGL_WIN_WINDEVICEINFO_HXX
11 #define INCLUDED_VCL_OPENGL_WIN_WINDEVICEINFO_HXX
13 #include <vcl/dllapi.h>
15 #include <rtl/ustring.hxx>
17 class VCL_DLLPUBLIC WinOpenGLDeviceInfo
19 private:
20 OUString maDriverVersion;
21 OUString maDriverVersion2;
23 OUString maDriverDate;
24 OUString maDriverDate2;
26 OUString maDeviceID;
27 OUString maDeviceID2;
29 OUString maAdapterVendorID;
30 OUString maAdapterDeviceID;
31 OUString maAdapterSubsysID;
33 OUString maAdapterVendorID2;
34 OUString maAdapterDeviceID2;
35 OUString maAdapterSubsysID2;
37 OUString maDeviceKey;
38 OUString maDeviceKey2;
40 OUString maDeviceString;
41 OUString maDeviceString2;
43 bool mbHasDualGPU;
44 bool mbRDP;
46 void GetData();
47 bool FindBlocklistedDeviceInList();
49 public:
50 WinOpenGLDeviceInfo();
52 bool isDeviceBlocked();
54 const OUString& GetDriverVersion() const
56 return maDriverVersion;
59 const OUString& GetDriverDate() const
61 return maDriverDate;
64 const OUString& GetDeviceID() const
66 return maDeviceID;
69 const OUString& GetAdapterVendorID() const
71 return maAdapterVendorID;
74 const OUString& GetAdapterDeviceID() const
76 return maAdapterDeviceID;
79 const OUString& GetAdapterSubsysID() const
81 return maAdapterSubsysID;
83 const OUString& GetDeviceKey() const
85 return maDeviceKey;
88 const OUString& GetDeviceString() const
90 return maDeviceString;
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */