"
34 | macro.beginfloatright.HTML = "
"
35 | macro.endfloat.HTML = "
"
36 | macro.clearfloat.HTML = "
"
37 | macro.emptyspan.HTML = "
"
38 |
--------------------------------------------------------------------------------
/doc/config/publishsubscribe/macros.qdocconf:
--------------------------------------------------------------------------------
1 | macro.aacute.HTML = "á"
2 | macro.Aring.HTML = "Å"
3 | macro.aring.HTML = "å"
4 | macro.Auml.HTML = "Ä"
5 | macro.author = "\\b{Author:}"
6 | macro.br.HTML = "
"
7 | macro.BR.HTML = "
"
8 | macro.copyright.HTML = "©"
9 | macro.eacute.HTML = "é"
10 | macro.gui = "\\b"
11 | macro.hr.HTML = "
"
12 | macro.iacute.HTML = "í"
13 | macro.key = "\\b"
14 | macro.menu = "\\b"
15 | macro.note = "\\b{Note:}"
16 | macro.oslash.HTML = "ø"
17 | macro.ouml.HTML = "ö"
18 | macro.QA = "\\e{Qt Assistant}"
19 | macro.QD = "\\e{Qt Designer}"
20 | macro.QL = "\\e{Qt Linguist}"
21 | macro.QQV = "\\e{Qt QML Viewer}"
22 | macro.param = "\\e"
23 | macro.raisedaster.HTML = "
*"
24 | macro.rarrow.HTML = "→"
25 | macro.reg.HTML = "
®"
26 | macro.return = "Returns"
27 | macro.starslash = "\\c{*/}"
28 | macro.begincomment = "\\c{/*}"
29 | macro.endcomment = "\\c{*/}"
30 | macro.uuml.HTML = "ü"
31 | macro.mdash.HTML = "—"
32 |
33 | macro.beginfloatleft.HTML = "
"
34 | macro.beginfloatright.HTML = "
"
35 | macro.endfloat.HTML = "
"
36 | macro.clearfloat.HTML = "
"
37 | macro.emptyspan.HTML = "
"
38 |
--------------------------------------------------------------------------------
/doc/config/serviceframework/macros.qdocconf:
--------------------------------------------------------------------------------
1 | macro.aacute.HTML = "á"
2 | macro.Aring.HTML = "Å"
3 | macro.aring.HTML = "å"
4 | macro.Auml.HTML = "Ä"
5 | macro.author = "\\b{Author:}"
6 | macro.br.HTML = "
"
7 | macro.BR.HTML = "
"
8 | macro.copyright.HTML = "©"
9 | macro.eacute.HTML = "é"
10 | macro.gui = "\\b"
11 | macro.hr.HTML = "
"
12 | macro.iacute.HTML = "í"
13 | macro.key = "\\b"
14 | macro.menu = "\\b"
15 | macro.note = "\\b{Note:}"
16 | macro.oslash.HTML = "ø"
17 | macro.ouml.HTML = "ö"
18 | macro.QA = "\\e{Qt Assistant}"
19 | macro.QD = "\\e{Qt Designer}"
20 | macro.QL = "\\e{Qt Linguist}"
21 | macro.QQV = "\\e{Qt QML Viewer}"
22 | macro.param = "\\e"
23 | macro.raisedaster.HTML = "
*"
24 | macro.rarrow.HTML = "→"
25 | macro.reg.HTML = "
®"
26 | macro.return = "Returns"
27 | macro.starslash = "\\c{*/}"
28 | macro.begincomment = "\\c{/*}"
29 | macro.endcomment = "\\c{*/}"
30 | macro.uuml.HTML = "ü"
31 | macro.mdash.HTML = "—"
32 |
33 | macro.beginfloatleft.HTML = "
"
34 | macro.beginfloatright.HTML = "
"
35 | macro.endfloat.HTML = "
"
36 | macro.clearfloat.HTML = "
"
37 | macro.emptyspan.HTML = "
"
38 |
--------------------------------------------------------------------------------
/config.tests/mir/main.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 |
29 | #include
30 | #include
31 |
32 | int main()
33 | {
34 | MirInputConfig* (*function_is_available)(MirConnection *connection);
35 | function_is_available = &mir_connection_create_input_config;
36 | return 0;
37 | }
38 |
--------------------------------------------------------------------------------
/doc/src/publishsubscribe/examples/examples-publishsubscribe.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the documentation of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:FDL$
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 Free Documentation License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU Free
19 | ** Documentation License version 1.3 as published by the Free Software
20 | ** Foundation and appearing in the file included in the packaging of
21 | ** this file. Please review the following information to ensure
22 | ** the GNU Free Documentation License version 1.3 requirements
23 | ** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
24 | ** $QT_END_LICENSE$
25 | **
26 | ****************************************************************************/
27 |
28 | /*!
29 | \group publishsubscribe-examples
30 | \title PublishSubscribe Examples
31 | \brief Examples for the QtSystems - Publish Subscribe sub-module
32 | \ingroup qtsystems
33 |
34 | These are the Publish and Subscribe examples.
35 |
36 | \generatelist related
37 | */
38 |
39 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager/sampleservice2/sampleserviceplugin2.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #include "sampleserviceplugin2.h"
29 |
30 | #include
31 |
32 |
33 | QObject* SampleServicePlugin2::createInstance(const QServiceInterfaceDescriptor& descriptor)
34 | {
35 | Q_UNUSED(descriptor);
36 | return new SampleServicePluginClass2;
37 | }
38 |
--------------------------------------------------------------------------------
/doc/src/serviceframework/examples/serviceframework-examples.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the documentation of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:FDL$
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 Free Documentation License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU Free
19 | ** Documentation License version 1.3 as published by the Free Software
20 | ** Foundation and appearing in the file included in the packaging of
21 | ** this file. Please review the following information to ensure
22 | ** the GNU Free Documentation License version 1.3 requirements
23 | ** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
24 | ** $QT_END_LICENSE$
25 | **
26 | ****************************************************************************/
27 |
28 | /*!
29 | \group serviceframework-examples
30 | \title ServiceFramework Examples
31 | \brief Examples for the QtSystems - Service Framework sub-module
32 | \ingroup qtsystems
33 |
34 | These are the Service Framework examples.
35 |
36 | \generatelist related
37 | */
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/cmake/test_modules/main.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the test suite of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 |
29 | #include
30 | #include
31 |
32 | int main(int argc, char **argv)
33 | {
34 | QValueSpaceSubscriber valueSpaceSubscriber;
35 |
36 | QServiceInterfaceDescriptor serviceInterfaceDescriptor;
37 |
38 | return 0;
39 | }
40 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/WrongOrder.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | com.nokia.service.mail
5 | 5.0
6 | ReadUserData,WriteUserData
7 | Mail management service
8 |
9 |
10 | com.nokia.service.contacts
11 | 2.0
12 | ReadUserData,WriteUserData
13 | Contacts management service
14 |
15 |
16 | com.nokia.service.contacts
17 | 1.7
18 | ReadUserData,WriteUserData
19 | Contacts management service
20 |
21 |
22 | com.nokia.service.contacts
23 | 2.1
24 | ReadUserData,WriteUserData
25 | Contacts management service
26 |
27 |
28 | com.nokia.service.contacts
29 | 1.6
30 | ReadUserData,WriteUserData
31 | Contacts management service
32 |
33 |
34 | com.nokia.service.contacts
35 | 3.0
36 | ReadUserData,WriteUserData
37 | Contacts management service
38 |
39 | ovi
40 | C:/Nokia/ovi.dll
41 | Ovi Services
42 |
43 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/latestVersion.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.contacts
8 | 2.0
9 | ReadUserData,WriteUserData
10 | Contacts management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 1.7
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.mail
20 | 2.1
21 | ReadUserData,WriteUserData
22 | Mail management service
23 |
24 |
25 | com.nokia.service.CONTACTS
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.6
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 |
36 |
37 | com.nokia.service.contacts
38 | 1.2
39 | ReadUserData,WriteUserData
40 | Contacts management service
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/latestVersion2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.6
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 |
36 |
37 | com.nokia.service.contacts
38 | 3.0
39 | ReadUserData,WriteUserData
40 | Contacts management service
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/latestVersion3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.contacts
8 | 5.7
9 | ReadUserData,WriteUserData
10 | Contacts management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 1.7
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 2.1
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 1.6
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.2
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 |
36 |
37 | com.nokia.service.mail
38 | 1.2
39 | ReadUserData,WriteUserData
40 | Mail management service
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/ServiceTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TestService
5 | C:/TestData/testservice.dll
6 | Test service description
7 |
8 | com.nokia.qt.tests.IDownloader
9 | 1.4
10 | Interface that provides download support
11 |
12 |
13 | com.nokia.qt.tests.ILocation
14 | 1.4
15 |
16 | Interface that provides location support
17 |
18 |
19 | com.nokia.qt.tests.ISysInfo
20 | ReadUserData
21 | 2.3
22 | Interface that provides system information support
23 |
24 |
25 | com.nokia.qt.tests.ISendMessage
26 | ReadUserData,WriteUserData
27 | 3.0
28 | Interface that provides message sending support
29 |
30 |
31 | com.nokia.qt.tests.IReceiveMessage
32 | 1.1
33 | ReadUserData,WriteUserData,ExecUserData
34 | Interface that provides message receiving support
35 | value1
36 | value2
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test23.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 |
6 | com.nokia.service.mail
7 | 5.0
8 | ReadUserData,WriteUserData
9 | Mail management service
10 |
11 |
12 | com.nokia.service.contacts
13 | 2.0
14 | ReadUserData,WriteUserData
15 | Contacts management service
16 |
17 | Ovi Services
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.6
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 |
36 |
37 | com.nokia.service.contacts
38 | 3.0
39 | ReadUserData,WriteUserData
40 | Contacts management service
41 |
42 | ovi1
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test27.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.6
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 | 1.7
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 |
14 | com.nokia.service.contacts
15 | 2.0
16 | ReadUserData,WriteUserData
17 | Contacts management service
18 |
19 |
20 | com.nokia.service.contacts
21 | 1.7
22 | ReadUserData,WriteUserData
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test25.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 | C:/Nokia/ovi2.dll
7 |
8 | com.nokia.service.mail
9 | 5.0
10 | ReadUserData,WriteUserData
11 | Mail management service
12 |
13 |
14 | com.nokia.service.contacts
15 | 2.0
16 | ReadUserData,WriteUserData
17 | Contacts management service
18 |
19 |
20 | com.nokia.service.contacts
21 | 1.7
22 | ReadUserData,WriteUserData
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test24.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 | Ovi2 Services
7 |
8 | com.nokia.service.mail
9 | 5.0
10 | ReadUserData,WriteUserData
11 | Mail management service
12 |
13 |
14 | com.nokia.service.contacts
15 | 2.0
16 | ReadUserData,WriteUserData
17 | Contacts management service
18 |
19 |
20 | com.nokia.service.contacts
21 | 1.7
22 | ReadUserData,WriteUserData
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test26.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | com.nokia.service.contacts
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test30.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 | value
18 |
19 |
20 | com.nokia.service.contacts
21 | 1.7
22 | ReadUserData,WriteUserData
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test31.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 | value
18 |
19 |
20 | com.nokia.service.contacts
21 | 1.7
22 | ReadUserData,WriteUserData
23 | Contacts management service
24 |
25 |
26 | com.nokia.service.contacts
27 | 2.1
28 | ReadUserData,WriteUserData
29 | Contacts management service
30 |
31 |
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test28.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | Contacts management service
32 | com.nokia.service.contacts
33 | 1.6
34 | ReadUserData,WriteUserData
35 | Contacts management service
36 |
37 |
38 | com.nokia.service.contacts
39 | 3.0
40 | ReadUserData,WriteUserData
41 | Contacts management service
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qremoteserviceregister/service.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #include
29 |
30 | class QRemoteServiceRegisterService : public QObject
31 | {
32 | Q_OBJECT
33 |
34 | public:
35 | QRemoteServiceRegisterService(QObject* parent = 0)
36 | : QObject(parent)
37 | {
38 | }
39 |
40 | Q_INVOKABLE void invokableFunction()
41 | {
42 | }
43 |
44 | Q_SIGNALS:
45 | void valueChanged();
46 |
47 | public slots:
48 | void testSlot()
49 | {
50 | }
51 | };
52 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/servicedatabase/testdata/ServiceAcme.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | acme
4 | C:/TestData/testservice.dll
5 | Acme services
6 |
7 | com.acme.service.downloader
8 | 1.0
9 | Interface that provides download support
10 |
11 |
12 | com.acme.service.location
13 | 1.0
14 |
15 | Interface that provides location support
16 | global
17 |
18 |
19 | com.acme.device.sysinfo
20 | ReadUserData
21 | 2.3
22 | Interface that provides system information support
23 |
24 |
25 |
26 | com.acme.device.sendMessage
27 | ReadUserData,WriteUserData
28 | 3.0
29 | Interface that provides message sending support
30 | smtp.mail.com
31 |
32 |
33 | com.acme.device.receiveMessage
34 | 1.1
35 | ReadUserData,WriteUserData,ExecUserData
36 | Interface that provides message receiving support
37 | imap.mail.com
38 | pop.mail.com
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/Test32.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 | value
18 | value1
19 |
20 |
21 | com.nokia.service.contacts
22 | 1.7
23 | ReadUserData,WriteUserData
24 | Contacts management service
25 |
26 |
27 | com.nokia.service.contacts
28 | 2.1
29 | ReadUserData,WriteUserData
30 | Contacts management service
31 |
32 |
33 | com.nokia.service.contacts
34 | 1.6
35 | ReadUserData,WriteUserData
36 | Contacts management service
37 |
38 |
39 | com.nokia.service.contacts
40 | 3.0
41 | ReadUserData,WriteUserData
42 | Contacts management service
43 |
44 |
45 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/servicedatabase/testdata/ServiceAutobot.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Autobot
4 | C:/Ark/matrix.dll
5 | Autobot Protection Services
6 |
7 | com.cybertron.transform
8 | 1.0
9 |
10 | Transformation interface
11 | manual
12 | laser
13 |
14 |
15 | com.cybertron.transform
16 | 2.0
17 |
18 | Transformation interface
19 | manual
20 |
21 |
22 | com.cybertron.transform
23 | 2.7
24 |
25 | Transformation interface
26 | automatic
27 | multidrive
28 |
29 |
30 | com.cybertron.transform
31 | 2.5
32 |
33 | Transformation interface
34 | automatic
35 |
36 |
37 | com.cybertron.transform
38 | 1.9
39 |
40 | Transformation interface
41 | automatic
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/examples/publishsubscribe/publish-subscribe/subscriberdialog.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | SubscriberDialog
4 |
5 |
6 |
7 | 0
8 | 0
9 | 232
10 | 346
11 |
12 |
13 |
14 | MainWindow
15 |
16 |
17 |
18 | -
19 |
20 |
-
21 |
22 |
23 | Base path:
24 |
25 |
26 |
27 | -
28 |
29 |
30 |
31 | 0
32 | 0
33 |
34 |
35 |
36 | /example
37 |
38 |
39 |
40 |
41 |
42 | -
43 |
44 |
45 | Connect
46 |
47 |
48 |
49 | -
50 |
51 |
52 | Qt::Horizontal
53 |
54 |
55 | QDialogButtonBox::Close
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager/testservice2/testserviceplugin.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #include
29 | #include "testserviceplugin.h"
30 | #include "testservice.h"
31 |
32 | /*!
33 | \class TestServicePlugin
34 |
35 | \brief Test Service Qt plugin Component
36 |
37 | Service Framework loads this Qt plugin and uses it to instantiate the
38 | Test Service service provider component.
39 | */
40 |
41 |
42 | QObject* TestServicePlugin::createInstance(const QServiceInterfaceDescriptor& descriptor)
43 | {
44 | Q_UNUSED(descriptor);
45 |
46 | return new TestService();
47 | }
48 |
--------------------------------------------------------------------------------
/tests/auto/systeminfo/qscreensaver/tst_qscreensaver.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 |
29 | #include
30 | #include
31 |
32 | #include "qscreensaver.h"
33 |
34 | QT_USE_NAMESPACE
35 |
36 | class tst_QScreenSaver : public QObject
37 | {
38 | Q_OBJECT
39 |
40 | private slots:
41 | void tst_screensaver();
42 | };
43 |
44 | void tst_QScreenSaver::tst_screensaver()
45 | {
46 | QScreenSaver screensaver;
47 |
48 | screensaver.setScreenSaverEnabled(true);
49 | screensaver.setScreenSaverEnabled(false);
50 | QVERIFY(screensaver.screenSaverEnabled() == false);
51 | }
52 |
53 | QTEST_MAIN(tst_QScreenSaver);
54 | #include "tst_qscreensaver.moc"
55 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qsfwtestutil.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #ifndef SFWTESTUTIL_H
29 | #define SFWTESTUTIL_H
30 |
31 | #include
32 |
33 | class QSfwTestUtil
34 | {
35 | public:
36 | static void setupTempUserDb();
37 | static void setupTempSystemDb();
38 |
39 | static void removeTempUserDb();
40 | static void removeTempSystemDb();
41 |
42 | static QString tempUserDbDir();
43 | static QString tempSystemDbDir();
44 |
45 | static QString tempSettingsPath(const char *path = "");
46 | static void removeDirectory(const QString &path);
47 |
48 | static QString userDirectory();
49 | static QString systemDirectory();
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/src/serviceframework/ipc/ipc.pri:
--------------------------------------------------------------------------------
1 | INCLUDEPATH += ipc
2 | win32 {
3 | INCLUDEPATH += .
4 | }
5 |
6 | QT += core-private
7 |
8 | isEmpty(SFW_BACKEND) {
9 | qtHaveModule(dbus) {
10 | SFW_BACKEND = dbus
11 | } else {
12 | linux {
13 | SFW_BACKEND = unix
14 | } else {
15 | SFW_BACKEND = localsocket
16 | }
17 | }
18 | }
19 |
20 | equals(SFW_BACKEND,unix) {
21 | DEFINES += SFW_USE_UNIX_BACKEND
22 | PRIVATE_HEADERS += ipc/qremoteserviceregister_unix_p.h \
23 | ipc/objectendpoint_p.h
24 | SOURCES += ipc/qremoteserviceregister_unix_p.cpp \
25 | ipc/objectendpoint.cpp
26 | } else:equals(SFW_BACKEND,dbus) {
27 | DEFINES += SFW_USE_DBUS_BACKEND
28 | QT_FOR_PRIVATE += dbus \
29 | network
30 | PRIVATE_HEADERS += ipc/qremoteserviceregister_dbus_p.h \
31 | ipc/objectendpoint_dbus_p.h \
32 | ipc/qservicemetaobject_dbus_p.h
33 | SOURCES += ipc/qremoteserviceregister_dbus_p.cpp \
34 | ipc/objectendpoint_dbus.cpp \
35 | ipc/qservicemetaobject_dbus.cpp
36 | } else:equals(SFW_BACKEND,localsocket) {
37 | DEFINES += SFW_USE_LOCALSOCKET_BACKEND
38 | QT_FOR_PRIVATE += network
39 | PRIVATE_HEADERS += ipc/qremoteserviceregister_ls_p.h \
40 | ipc/objectendpoint_p.h
41 | SOURCES += ipc/qremoteserviceregister_ls_p.cpp \
42 | ipc/objectendpoint.cpp
43 | } else {
44 | error("Unkown SFW_BACKEND $$SFW_BACKEND")
45 | }
46 |
47 | PRIVATE_HEADERS += ipc/qslotinvoker_p.h \
48 | ipc/qsignalintercepter_p.h \
49 | ipc/instancemanager_p.h \
50 | ipc/qservicepackage_p.h \
51 | ipc/proxyobject_p.h \
52 | ipc/ipcendpoint_p.h \
53 | ipc/qremoteserviceregister_p.h \
54 | ipc/qremoteserviceregisterentry_p.h
55 |
56 | SOURCES += ipc/qslotinvoker.cpp \
57 | ipc/qsignalintercepter.cpp \
58 | ipc/instancemanager.cpp \
59 | ipc/qservicepackage.cpp \
60 | ipc/proxyobject.cpp \
61 | ipc/ipcendpoint.cpp \
62 | ipc/qremoteserviceregister_p.cpp
63 |
64 | OTHER_FILES += \
65 | ipc/json-schema.txt
66 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager_ipc/client/xmldata/ipcexampleservice.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | IPCExampleService
5 | qt_sfw_example_ipc_unittest
6 | Example service demoing IPC based services
7 |
8 | com.nokia.qt.ipcunittest
9 | 3.10
10 | Security test case, test global object security
11 |
12 |
13 |
14 | com.nokia.qt.ipcunittest
15 | 3.9
16 | Security test case, reject all connections on a private object
17 |
18 |
19 |
20 | com.nokia.qt.ipcunittest
21 | 3.8
22 | Misc test code that tests failures and edge cases
23 |
24 |
25 |
26 | com.nokia.qt.ipcunittest
27 | 3.7
28 | Creation Failure Test Case Private
29 |
30 |
31 |
32 | com.nokia.qt.ipcunittest
33 | 3.6
34 | Creation Failure Test Case Global
35 |
36 |
37 |
38 | com.nokia.qt.ipcunittest
39 | 3.5
40 | Unspecified
41 |
42 |
43 |
44 | com.nokia.qt.ipcunittest
45 | 3.4
46 | Unspecified
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager/testservice2/testserviceplugin.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #ifndef TESTSERVICEPLUGIN_H
29 | #define TESTSERVICEPLUGIN_H
30 |
31 | #include
32 | #include
33 | #include
34 | #include
35 |
36 | QT_USE_NAMESPACE
37 |
38 | class TestServicePlugin : public QObject, public QServicePluginInterface
39 | {
40 | Q_OBJECT
41 | Q_INTERFACES(QServicePluginInterface)
42 | Q_PLUGIN_METADATA(IID "com.nokia.qt.QServicePluginInterface/1.0")
43 |
44 | public:
45 | QObject* createInstance(const QServiceInterfaceDescriptor& descriptor);
46 |
47 | };
48 |
49 | #endif //TESTSERVICEPLUGIN_H
50 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager/sampleservice2/sampleserviceplugin2.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #ifndef SAMPLESERVICEPLUGIN2_H
29 | #define SAMPLESERVICEPLUGIN2_H
30 |
31 | #include
32 | #include
33 | #include
34 |
35 | QT_USE_NAMESPACE
36 |
37 | class SampleServicePlugin2 : public QObject, public QServicePluginInterface
38 | {
39 | Q_OBJECT
40 | Q_INTERFACES(QServicePluginInterface)
41 | Q_PLUGIN_METADATA(IID "com.nokia.qt.QServicePluginInterface/1.0")
42 |
43 | public:
44 | QObject* createInstance(const QServiceInterfaceDescriptor& descriptor);
45 | };
46 |
47 |
48 | class SampleServicePluginClass2 : public QObject
49 | {
50 | Q_OBJECT
51 | public:
52 | SampleServicePluginClass2(QObject *parent = 0) : QObject(parent) {}
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemanager/testservice2/testserviceinterface.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems module of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 | #ifndef TESTSERVICEINTERFACE_H
29 | #define TESTSERVICEINTERFACE_H
30 |
31 | #include
32 |
33 | QT_BEGIN_NAMESPACE
34 | class ISimpleTypeTest
35 | {
36 | public:
37 | virtual ~ISimpleTypeTest() {}
38 | virtual void callSlotAndSetName(const QString &s) = 0;
39 | virtual QString callSlotAndReturnName() const = 0;
40 | };
41 |
42 | Q_DECLARE_INTERFACE(ISimpleTypeTest, "com.nokia.qt.test.ISimpleTypeTest/1");
43 |
44 |
45 | class IComplexTypeTest
46 | {
47 | public:
48 | virtual ~IComplexTypeTest() {}
49 | virtual QObject* embeddedTestService() = 0;
50 |
51 | };
52 |
53 | Q_DECLARE_INTERFACE(IComplexTypeTest, "com.nokia.qt.test.IComplexTypeTest/1");
54 |
55 | QT_END_NAMESPACE
56 |
57 | #endif //TESTSERVICEINTERFACE_H
58 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/qservicemetadata/testdata/DuplicatedServiceTag.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ovi
4 | C:/Nokia/ovi.dll
5 | Ovi Services
6 |
7 | com.nokia.service.mail
8 | 5.0
9 | ReadUserData,WriteUserData
10 | Mail management service
11 |
12 |
13 | com.nokia.service.contacts
14 | 2.0
15 | ReadUserData,WriteUserData
16 | Contacts management service
17 |
18 |
19 | com.nokia.service.contacts
20 | 1.7
21 | ReadUserData,WriteUserData
22 | Contacts management service
23 |
24 |
25 | com.nokia.service.contacts
26 | 2.1
27 | ReadUserData,WriteUserData
28 | Contacts management service
29 |
30 |
31 | com.nokia.service.contacts
32 | 1.6
33 | ReadUserData,WriteUserData
34 | Contacts management service
35 |
36 |
37 | com.nokia.service.contacts
38 | 3.0
39 | ReadUserData,WriteUserData
40 | Contacts management service
41 |
42 |
43 |
44 | ovi2
45 | C:/Nokia/ovi2.dll
46 | Ovi2 Services
47 |
48 | com.nokia.service.mail
49 | 7.0
50 | ReadUserData,WriteUserData
51 | Mail management service
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/src/systeminfo/qinputinfomanager.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 Canonical, Ltd. and/or its subsidiary(-ies).
4 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
5 | ** Contact: http://www.qt-project.org/legal
6 | **
7 | ** This file is part of the QtSystems module of the Qt Toolkit.
8 | **
9 | ** $QT_BEGIN_LICENSE:LGPL$
10 | ** Commercial License Usage
11 | ** Licensees holding valid commercial Qt licenses may use this file in
12 | ** accordance with the commercial license agreement provided with the
13 | ** Software or, alternatively, in accordance with the terms contained in
14 | ** a written agreement between you and The Qt Company. For licensing terms
15 | ** and conditions see https://www.qt.io/terms-conditions. For further
16 | ** information use the contact form at https://www.qt.io/contact-us.
17 | **
18 | ** GNU Lesser General Public License Usage
19 | ** Alternatively, this file may be used under the terms of the GNU Lesser
20 | ** General Public License version 3 as published by the Free Software
21 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the
22 | ** packaging of this file. Please review the following information to
23 | ** ensure the GNU Lesser General Public License version 3 requirements
24 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
25 | **
26 | ** GNU General Public License Usage
27 | ** Alternatively, this file may be used under the terms of the GNU
28 | ** General Public License version 2.0 or (at your option) the GNU General
29 | ** Public license version 3 or any later version approved by the KDE Free
30 | ** Qt Foundation. The licenses are as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
32 | ** included in the packaging of this file. Please review the following
33 | ** information to ensure the GNU General Public License requirements will
34 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
35 | ** https://www.gnu.org/licenses/gpl-3.0.html.
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #include "qinputinfomanager_p.h"
42 |
43 | QInputInfoManagerPrivate::QInputInfoManagerPrivate(QObject *parent) :
44 | QObject(parent)
45 | {
46 | }
47 |
--------------------------------------------------------------------------------
/tests/auto/serviceframework/serviceobject/serviceobject_target/serviceobject_target.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the examples of the Qt Mobility Components.
7 | **
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU
19 | ** General Public License version 3 as published by the Free Software
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21 | ** included in the packaging of this file. Please review the following
22 | ** information to ensure the GNU General Public License requirements will
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24 | **
25 | ** $QT_END_LICENSE$
26 | **
27 | ****************************************************************************/
28 |
29 | #ifndef SERVICEOBJECT_TARGET_H
30 | #define SERVICEOBJECT_TARGET_H
31 |
32 | #include
33 | #include
34 | #include
35 |
36 | QT_USE_NAMESPACE
37 |
38 | class ServiceObjectTarget : public QObject
39 | {
40 | Q_OBJECT
41 | public:
42 | ServiceObjectTarget(QObject *parent = 0);
43 | ~ServiceObjectTarget();
44 |
45 | Q_PROPERTY(int state READ state NOTIFY stateChanged)
46 | int state() const;
47 |
48 | public slots:
49 | void slotWithArg(const QString& number);
50 | void slotWithoutArg();
51 | bool slotWithOk();
52 | void closeClientSockets();
53 | bool closeClientSocketsBlocking();
54 |
55 | Q_SIGNALS:
56 | void stateChanged();
57 |
58 | protected:
59 | void timerEvent(QTimerEvent* event);
60 |
61 | private:
62 | friend class QRemoteServiceRegister;
63 | void setNewState();
64 | int timerId;
65 | int m_state;
66 | };
67 |
68 | #endif // SERVICEOBJECT_TARGET_H
69 |
--------------------------------------------------------------------------------
/src/serviceframework/qserviceframeworkglobal.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2018 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the QtSystems 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 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 | #ifndef QSERVICEFRAMEWORK_H
40 | #define QSERVICEFRAMEWORK_H
41 |
42 | #include
43 |
44 | #ifndef QT_STATIC
45 | # if defined(QT_BUILD_SERVICEFRAMEWORK_LIB)
46 | # define Q_SERVICEFW_EXPORT Q_DECL_EXPORT
47 | # else
48 | # define Q_SERVICEFW_EXPORT Q_DECL_IMPORT
49 | # endif
50 | #else
51 | # define Q_SERVICEFW_EXPORT
52 | #endif
53 |
54 | #endif // QSERVICEFRAMEWORK_H
55 |
56 |
--------------------------------------------------------------------------------
/doc/src/serviceframework/servicefwk-module.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the documentation of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:FDL$
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 Free Documentation License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU Free
19 | ** Documentation License version 1.3 as published by the Free Software
20 | ** Foundation and appearing in the file included in the packaging of
21 | ** this file. Please review the following information to ensure
22 | ** the GNU Free Documentation License version 1.3 requirements
23 | ** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
24 | ** $QT_END_LICENSE$
25 | **
26 | ****************************************************************************/
27 |
28 |
29 |
30 |
31 | /*!
32 | \module QtServiceFramework
33 | \title Qt Service Framework Module
34 | \ingroup modules
35 |
36 | \brief Service Framework is an Inter-Process Communications (IPC) and
37 | Remote Procedure Calling (RPC) machanism designed to operate very
38 | efficient, platform independent and be very easy to work with. It
39 | operates between Qt applications, and extends the well known Qt Signals
40 | and Slots mechanism to operate between different applications.
41 |
42 | To use the module in Qt Quick you will need to load it with the command
43 | \qml
44 | import QtServiceFramework 5.0
45 | \endqml
46 |
47 | For C++, to include the definitions of the module's classes, use the
48 | following directive:
49 |
50 | \code
51 | #include
52 | \endcode
53 |
54 | And for linking against the module add this to your qmake .pro file
55 |
56 | \code
57 | QT += serviceframework
58 | \endcode
59 |
60 |
61 | See more in the \l{Qt Service Framework}{Qt Service Framework Overview}.
62 |
63 | */
64 |
65 |
66 |
--------------------------------------------------------------------------------
/doc/src/systeminfo/systeminfo.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the documentation of the Qt Toolkit.
7 | **
8 | ** $QT_BEGIN_LICENSE:FDL$
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 Free Documentation License Usage
18 | ** Alternatively, this file may be used under the terms of the GNU Free
19 | ** Documentation License version 1.3 as published by the Free Software
20 | ** Foundation and appearing in the file included in the packaging of
21 | ** this file. Please review the following information to ensure
22 | ** the GNU Free Documentation License version 1.3 requirements
23 | ** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
24 | ** $QT_END_LICENSE$
25 | **
26 | ****************************************************************************/
27 |
28 | /*!
29 | \page systeminfo.html
30 |
31 | \title Qt System Info Module
32 | \brief A set of APIs to discover system related information and capabilities.
33 |
34 | \tableofcontents
35 |
36 | \ingroup technology-apis
37 |
38 | The Qt System Info module provides a set of APIs to discover system
39 | related information and capabilities, including the batteries being used,
40 | activated locks, different hardware features, network, screen saver, and
41 | storage, etc.
42 |
43 | \section1 Buildtime configuration
44 |
45 | Qt SystemInfo for Linux can use a number of technololgies based on dbus.
46 | These can be configured at build time through the CONFIG of qmake.
47 |
48 | * CONFIG+=upower (linux) will build the UPower dbus backend.
49 | * CONFIG+=ofono (linux) will build the Ofono dbus backend.
50 | * CONFIG+=nox11option (linux) Turns off the use of x11 in QScreenSaver (and screen blanking
51 | disabling and enabling will not work)
52 |
53 | \section1 C++ Classes
54 | \annotatedlist systeminfo
55 |
56 | \section1 QML Elements
57 | \annotatedlist qml-systeminfo
58 |
59 | \section1 Examples
60 | */
61 |
--------------------------------------------------------------------------------
/doc/config/systeminfo/qt-html-templates.qdocconf:
--------------------------------------------------------------------------------
1 | include(qt-html-default-styles.qdocconf)
2 |
3 | HTML.postheader = \
4 | "\n" \
17 | "\n"
18 |
19 | HTML.footer = \
20 | "
\n" \
21 | " \n" \
22 | "
\n" \
23 | "
\n" \
24 | "\n" \
42 |
43 | # Files not referenced in any qdoc file.
44 | # See also extraimages.HTML
45 | qhp.QtMobility.extraFiles = index.html \
46 | images/arrow_down.png \
47 | images/breadcrumb.png \
48 | images/bullet_gt.png \
49 | images/bullet_dn.png \
50 | images/bullet_sq.png \
51 | images/bullet_up.png \
52 | images/horBar.png \
53 | images/sprites-combined.png \
54 | style/offline.css
55 |
--------------------------------------------------------------------------------