kernel/qplatformnativeinterface.cpp

Source codeSwitch to Preprocessed file
LineSource CodeCoverage
1/**************************************************************************** -
2** -
3** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -
4** Contact: http://www.qt-project.org/legal -
5** -
6** This file is part of the QtGui module 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 Digia. For licensing terms and -
14** conditions see http://qt.digia.com/licensing. For further information -
15** use the contact form at http://qt.digia.com/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 2.1 as published by the Free Software -
20** Foundation and appearing in the file LICENSE.LGPL included in the -
21** packaging of this file. Please review the following information to -
22** ensure the GNU Lesser General Public License version 2.1 requirements -
23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -
24** -
25** In addition, as a special exception, Digia gives you certain additional -
26** rights. These rights are described in the Digia Qt LGPL Exception -
27** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -
28** -
29** GNU General Public License Usage -
30** Alternatively, this file may be used under the terms of the GNU -
31** General Public License version 3.0 as published by the Free Software -
32** Foundation and appearing in the file LICENSE.GPL included in the -
33** packaging of this file. Please review the following information to -
34** ensure the GNU General Public License version 3.0 requirements will be -
35** met: http://www.gnu.org/copyleft/gpl.html. -
36** -
37** -
38** $QT_END_LICENSE$ -
39** -
40****************************************************************************/ -
41 -
42#include "qplatformnativeinterface.h" -
43 -
44QT_BEGIN_NAMESPACE -
45 -
46/*! -
47 \class QPlatformNativeInterface -
48 \since 5.0 -
49 \internal -
50 \preliminary -
51 \ingroup qpa -
52 -
53 \brief The QPlatformNativeInterface class provides an abstraction for retrieving native -
54 resource handles. -
55 */ -
56 -
57void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource) -
58{ -
59 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
60 return 0;
never executed: return 0;
0
61} -
62 -
63void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen) -
64{ -
65 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
66 Q_UNUSED(screen);
never executed (the execution status of this line is deduced): (void)screen;;
-
67 return 0;
never executed: return 0;
0
68} -
69 -
70void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window) -
71{ -
72 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
73 Q_UNUSED(window);
never executed (the execution status of this line is deduced): (void)window;;
-
74 return 0;
never executed: return 0;
0
75} -
76 -
77void *QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) -
78{ -
79 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
80 Q_UNUSED(context);
never executed (the execution status of this line is deduced): (void)context;;
-
81 return 0;
never executed: return 0;
0
82} -
83 -
84void * QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore) -
85{ -
86 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
87 Q_UNUSED(backingStore);
never executed (the execution status of this line is deduced): (void)backingStore;;
-
88 return 0;
never executed: return 0;
0
89} -
90 -
91QPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource) -
92{ -
93 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
94 return 0;
never executed: return 0;
0
95} -
96 -
97QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource) -
98{ -
99 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
100 return 0;
never executed: return 0;
0
101} -
102 -
103QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource) -
104{ -
105 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
106 return 0;
never executed: return 0;
0
107} -
108 -
109QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource) -
110{ -
111 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
112 return 0;
never executed: return 0;
0
113} -
114 -
115QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource) -
116{ -
117 Q_UNUSED(resource);
never executed (the execution status of this line is deduced): (void)resource;;
-
118 return 0;
never executed: return 0;
0
119} -
120 -
121/*! -
122 Contains generic window properties that the platform may utilize. -
123*/ -
124QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const -
125{ -
126 Q_UNUSED(window)
never executed (the execution status of this line is deduced): (void)window;
-
127 return QVariantMap();
never executed: return QVariantMap();
0
128} -
129 -
130/*! -
131 Returns a window property with \a name. -
132 -
133 If the property does not exist, returns a default-constructed value. -
134*/ -
135QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name) const -
136{ -
137 Q_UNUSED(window);
never executed (the execution status of this line is deduced): (void)window;;
-
138 Q_UNUSED(name);
never executed (the execution status of this line is deduced): (void)name;;
-
139 return QVariant();
never executed: return QVariant();
0
140} -
141 -
142/*! -
143 Returns a window property with \a name. If the value does not exist, defaultValue is returned. -
144*/ -
145QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name, const QVariant &defaultValue) const -
146{ -
147 Q_UNUSED(window);
never executed (the execution status of this line is deduced): (void)window;;
-
148 Q_UNUSED(name);
never executed (the execution status of this line is deduced): (void)name;;
-
149 Q_UNUSED(defaultValue);
never executed (the execution status of this line is deduced): (void)defaultValue;;
-
150 return QVariant();
never executed: return QVariant();
0
151} -
152 -
153/*! -
154 Sets a window property with \a name to \a value. -
155*/ -
156void QPlatformNativeInterface::setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) -
157{ -
158 Q_UNUSED(window);
never executed (the execution status of this line is deduced): (void)window;;
-
159 Q_UNUSED(name);
never executed (the execution status of this line is deduced): (void)name;;
-
160 Q_UNUSED(value);
never executed (the execution status of this line is deduced): (void)value;;
-
161}
never executed: }
0
162 -
163QT_END_NAMESPACE -
164 -
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial