/
qofonodeclarativeplugin.cpp
127 lines (93 loc) · 5.08 KB
/
qofonodeclarativeplugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/****************************************************************************
**
** Copyright (C) 2013-2022 Jolla Ltd.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
****************************************************************************/
#include "qofonodeclarativeplugin.h"
#include "qofonomanager.h"
#include "qofonomodem.h"
#include "qofonoconnectionmanager.h"
#include "qofonoconnectioncontext.h"
#include "qofononetworkregistration.h"
#include "qofononetworkoperator.h"
#include "qofonocellbroadcast.h"
#include "qofonocallbarring.h"
#include "qofonocallforwarding.h"
#include "qofonocallmeter.h"
#include "qofonocallsettings.h"
#include "qofonocallvolume.h"
#include "qofonoipmultimediasystem.h"
#include "qofonomessage.h"
#include "qofonomessagemanager.h"
#include "qofonomessagewaiting.h"
#include "qofonosimmanager.h"
#include "qofonophonebook.h"
#include "qofonosmartmessaging.h"
#include "qofonosmartmessagingagent.h"
#include "qofonovoicecall.h"
#include "qofonovoicecallmanager.h"
#include "qofonoradiosettings.h"
#include "qofonosupplementaryservices.h"
#include "qofonophonebook.h"
#include "qofonotexttelephony.h"
#include "qofonohandsfree.h"
#include "qofonohandsfreeaudioagent.h"
#include "qofonohandsfreeaudiocard.h"
#include "qofonohandsfreeaudiomanager.h"
#include "qofonoassistedsatellitenavigation.h"
#include "qofonopositioningrequestagent.h"
#include "qofonolocationreporting.h"
#include "qofononetworkoperatorlistmodel.h"
#include "qofonosimlistmodel.h"
void QOfonoDeclarativePlugin::registerTypes(const char *uri, int major, int minor)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("MeeGo.QOfono") || QLatin1String(uri) == QLatin1String("QOfono"));
if (QLatin1String(uri) == QLatin1String("MeeGo.QOfono")) {
qWarning() << "MeeGo.QOfono QML module name is deprecated and subject for removal. Please adapt code to \"import QOfono\".";
}
qmlRegisterType<QOfonoManager>(uri,major,minor,"OfonoManager");
qmlRegisterType<QOfonoModem>(uri,major,minor,"OfonoModem");
qmlRegisterType<QOfonoConnectionManager>(uri,major,minor,"OfonoConnMan");
qmlRegisterType<QOfonoConnectionContext>(uri,major,minor,"OfonoContextConnection");
qmlRegisterType<QOfonoNetworkRegistration>(uri,major,minor,"OfonoNetworkRegistration");
qmlRegisterType<QOfonoNetworkOperator>(uri,major,minor,"OfonoNetworkOperator");
qmlRegisterType<QOfonoCellBroadcast>(uri,major,minor,"OfonoCellBroadcast");
qmlRegisterType<QOfonoCallBarring>(uri,major,minor,"OfonoCallBarring");
qmlRegisterType<QOfonoCallForwarding>(uri,major,minor,"OfonoCallForwarding");
qmlRegisterType<QOfonoCallSettings>(uri,major,minor,"OfonoCallSettings");
qmlRegisterType<QOfonoCallMeter>(uri,major,minor,"OfonoCallMeter");
qmlRegisterType<QOfonoIpMultimediaSystem>(uri,major,minor,"OfonoIpMultimediaSystem");
qmlRegisterType<QOfonoMessage>(uri,major,minor,"OfonoMessage");
qmlRegisterType<QOfonoMessageManager>(uri,major,minor,"OfonoMessageManager");
qmlRegisterType<QOfonoMessageWaiting>(uri,major,minor,"OfonoMessageWaiting");
qmlRegisterType<QOfonoSimManager>(uri,major,minor,"OfonoSimManager");
qmlRegisterType<QOfonoSmartMessaging>(uri,major,minor,"OfonoSmartMessaging");
qmlRegisterType<QOfonoSmartMessagingAgent>(uri,major,minor,"OfonoSmartMessagingAgent");
qmlRegisterType<QOfonoVoiceCall>(uri,major,minor,"OfonoVoiceCall");
qmlRegisterType<QOfonoVoiceCallManager>(uri,major,minor,"OfonoVoiceCallManager");
qmlRegisterType<QOfonoRadioSettings>(uri,major,minor,"OfonoRadioSettings");
qmlRegisterType<QOfonoSupplementaryServices>(uri,major,minor,"OfonoSupplementaryServices");
qmlRegisterType<QOfonoPhonebook>(uri,major,minor,"OfonoPhonebook");
qmlRegisterType<QOfonoTextTelephony>(uri,major,minor,"OfonoTextTelephony");
qmlRegisterType<QOfonoHandsfree>(uri,major,minor,"OfonoHandsfree");
qmlRegisterType<QOfonoHandsfreeAudioAgent>(uri,major,minor,"OfonoHandsfreeAudioAgent");
qmlRegisterType<QOfonoHandsfreeAudioCard>(uri,major,minor,"OfonoHandsfreeAudioCard");
qmlRegisterType<QOfonoHandsfreeAudioManager>(uri,major,minor,"OfonoHandsfreeAudioManager");
qmlRegisterType<QOfonoAssistedSatelliteNavigation>(uri,major,minor,"OfonoAssistedSatelliteNavigation");
qmlRegisterType<QOfonoPositioningRequestAgent>(uri,major,minor,"OfonoPositioningRequestAgent");
qmlRegisterType<QOfonoLocationReporting>(uri,major,minor,"OfonoLocationReporting");
qmlRegisterType<QOfonoNetworkOperatorListModel>(uri,major,minor,"OfonoNetworkOperatorListModel");
qmlRegisterType<QOfonoSimListModel>(uri,major,minor,"OfonoSimListModel");
}
void QOfonoDeclarativePlugin::registerTypes(const char *uri)
{
registerTypes(uri, 0, 2);
}