9#ifndef MODEMMANAGERQT_GENERIC_TYPES_H
10#define MODEMMANAGERQT_GENERIC_TYPES_H
12#include <ModemManager/ModemManager.h>
13#include <modemmanagerqt_export.h>
15#include <QDBusArgument>
16#include <QDBusObjectPath>
21#if !MM_CHECK_VERSION(1, 2, 0)
23 MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN = 0,
24 MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNPROVISIONED = 1,
25 MM_MODEM_3GPP_SUBSCRIPTION_STATE_PROVISIONED = 2,
26 MM_MODEM_3GPP_SUBSCRIPTION_STATE_OUT_OF_DATA = 3,
27} MMModem3gppSubscriptionState;
30 MM_SMS_CDMA_SERVICE_CATEGORY_UNKNOWN = 0x0000,
31 MM_SMS_CDMA_SERVICE_CATEGORY_EMERGENCY_BROADCAST = 0x0001,
32 MM_SMS_CDMA_SERVICE_CATEGORY_ADMINISTRATIVE = 0x0002,
33 MM_SMS_CDMA_SERVICE_CATEGORY_MAINTENANCE = 0x0003,
34 MM_SMS_CDMA_SERVICE_CATEGORY_GENERAL_NEWS_LOCAL = 0x0004,
35 MM_SMS_CDMA_SERVICE_CATEGORY_GENERAL_NEWS_REGIONAL = 0x0005,
36 MM_SMS_CDMA_SERVICE_CATEGORY_GENERAL_NEWS_NATIONAL = 0x0006,
37 MM_SMS_CDMA_SERVICE_CATEGORY_GENERAL_NEWS_INTERNATIONAL = 0x0007,
38 MM_SMS_CDMA_SERVICE_CATEGORY_BUSINESS_NEWS_LOCAL = 0x0008,
39 MM_SMS_CDMA_SERVICE_CATEGORY_BUSINESS_NEWS_REGIONAL = 0x0009,
40 MM_SMS_CDMA_SERVICE_CATEGORY_BUSINESS_NEWS_NATIONAL = 0x000A,
41 MM_SMS_CDMA_SERVICE_CATEGORY_BUSINESS_NEWS_INTERNATIONAL = 0x000B,
42 MM_SMS_CDMA_SERVICE_CATEGORY_SPORTS_NEWS_LOCAL = 0x000C,
43 MM_SMS_CDMA_SERVICE_CATEGORY_SPORTS_NEWS_REGIONAL = 0x000D,
44 MM_SMS_CDMA_SERVICE_CATEGORY_SPORTS_NEWS_NATIONAL = 0x000E,
45 MM_SMS_CDMA_SERVICE_CATEGORY_SPORTS_NEWS_INTERNATIONAL = 0x000F,
46 MM_SMS_CDMA_SERVICE_CATEGORY_ENTERTAINMENT_NEWS_LOCAL = 0x0010,
47 MM_SMS_CDMA_SERVICE_CATEGORY_ENTERTAINMENT_NEWS_REGIONAL = 0x0011,
48 MM_SMS_CDMA_SERVICE_CATEGORY_ENTERTAINMENT_NEWS_NATIONAL = 0x0012,
49 MM_SMS_CDMA_SERVICE_CATEGORY_ENTERTAINMENT_NEWS_INTERNATIONAL = 0x0013,
50 MM_SMS_CDMA_SERVICE_CATEGORY_LOCAL_WEATHER = 0x0014,
51 MM_SMS_CDMA_SERVICE_CATEGORY_TRAFFIC_REPORT = 0x0015,
52 MM_SMS_CDMA_SERVICE_CATEGORY_FLIGHT_SCHEDULES = 0x0016,
53 MM_SMS_CDMA_SERVICE_CATEGORY_RESTAURANTS = 0x0017,
54 MM_SMS_CDMA_SERVICE_CATEGORY_LODGINGS = 0x0018,
55 MM_SMS_CDMA_SERVICE_CATEGORY_RETAIL_DIRECTORY = 0x0019,
56 MM_SMS_CDMA_SERVICE_CATEGORY_ADVERTISEMENTS = 0x001A,
57 MM_SMS_CDMA_SERVICE_CATEGORY_STOCK_QUOTES = 0x001B,
58 MM_SMS_CDMA_SERVICE_CATEGORY_EMPLOYMENT = 0x001C,
59 MM_SMS_CDMA_SERVICE_CATEGORY_HOSPITALS = 0x001D,
60 MM_SMS_CDMA_SERVICE_CATEGORY_TECHNOLOGY_NEWS = 0x001E,
61 MM_SMS_CDMA_SERVICE_CATEGORY_MULTICATEGORY = 0x001F,
62 MM_SMS_CDMA_SERVICE_CATEGORY_CMAS_PRESIDENTIAL_ALERT = 0x1000,
63 MM_SMS_CDMA_SERVICE_CATEGORY_CMAS_EXTREME_THREAT = 0x1001,
64 MM_SMS_CDMA_SERVICE_CATEGORY_CMAS_SEVERE_THREAT = 0x1002,
65 MM_SMS_CDMA_SERVICE_CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY = 0x1003,
66 MM_SMS_CDMA_SERVICE_CATEGORY_CMAS_TEST = 0x1004,
67} MMSmsCdmaServiceCategory;
70 MM_SMS_CDMA_TELESERVICE_ID_UNKNOWN = 0x0000,
71 MM_SMS_CDMA_TELESERVICE_ID_CMT91 = 0x1000,
72 MM_SMS_CDMA_TELESERVICE_ID_WPT = 0x1001,
73 MM_SMS_CDMA_TELESERVICE_ID_WMT = 0x1002,
74 MM_SMS_CDMA_TELESERVICE_ID_VMN = 0x1003,
75 MM_SMS_CDMA_TELESERVICE_ID_WAP = 0x1004,
76 MM_SMS_CDMA_TELESERVICE_ID_WEMT = 0x1005,
77 MM_SMS_CDMA_TELESERVICE_ID_SCPT = 0x1006,
78 MM_SMS_CDMA_TELESERVICE_ID_CATPT = 0x1007,
79} MMSmsCdmaTeleserviceId;
84typedef QMap<QString, QVariantMap> MMVariantMapMap;
85typedef QMap<QDBusObjectPath, MMVariantMapMap> DBUSManagerStruct;
86typedef QList<uint> UIntList;
87typedef QList<QList<uint>> UIntListList;
93typedef QList<Port> PortList;
102 MMModemMode preferred;
104typedef QList<CurrentModesType> SupportedModesType;
106#if MM_CHECK_VERSION(1, 2, 0)
108 MMOmaSessionType
type;
111typedef QList<OmaSessionType> OmaSessionTypes;
113typedef QMap<MMModemLock, uint> UnlockRetriesMap;
114typedef QList<QVariantMap> QVariantMapList;
115typedef QMap<MMModemLocationSource, QVariant> LocationInformationMap;
117 MMSmsValidityType validity;
129#if MM_CHECK_VERSION(1, 2, 0)
136Q_DECLARE_METATYPE(MMModemLock)
137Q_DECLARE_METATYPE(MMModemPowerState)
138Q_DECLARE_METATYPE(MMModemState)
139Q_DECLARE_METATYPE(MMModemStateChangeReason)
140Q_DECLARE_METATYPE(MMModemStateFailedReason)
141Q_DECLARE_METATYPE(MMModem3gppRegistrationState)
142#if MM_CHECK_VERSION(1, 2, 0)
143Q_DECLARE_METATYPE(MMModem3gppSubscriptionState)
145Q_DECLARE_METATYPE(MMModem3gppUssdSessionState)
146Q_DECLARE_METATYPE(MMModemCdmaActivationState)
147Q_DECLARE_METATYPE(MMCdmaActivationError)
148Q_DECLARE_METATYPE(MMModemCdmaRegistrationState)
149Q_DECLARE_METATYPE(MMModemLocationSource)
150#if MM_CHECK_VERSION(1, 2, 0)
151Q_DECLARE_METATYPE(MMOmaSessionType)
152Q_DECLARE_METATYPE(MMOmaSessionState)
153Q_DECLARE_METATYPE(MMOmaSessionStateFailedReason)
155Q_DECLARE_METATYPE(MMSmsDeliveryState)
156Q_DECLARE_METATYPE(MMSmsPduType)
157Q_DECLARE_METATYPE(MMSmsState)
158Q_DECLARE_METATYPE(MMSmsStorage)
159#if MM_CHECK_VERSION(1, 2, 0)
160Q_DECLARE_METATYPE(MMSmsCdmaServiceCategory)
161Q_DECLARE_METATYPE(MMSmsCdmaTeleserviceId)
163#if MM_CHECK_VERSION(1, 6, 0)
164Q_DECLARE_METATYPE(MMCallState)
165Q_DECLARE_METATYPE(MMCallStateReason)
166Q_DECLARE_METATYPE(MMCallDirection)
168#if MM_CHECK_VERSION(1, 20, 0)
169Q_DECLARE_METATYPE(MMSimType)
170Q_DECLARE_METATYPE(MMSimEsimStatus)
171Q_DECLARE_METATYPE(MMSimRemovability)
175Q_DECLARE_METATYPE(ModemManager::DBUSManagerStruct)
176Q_DECLARE_METATYPE(ModemManager::Port)
177Q_DECLARE_METATYPE(ModemManager::PortList)
178Q_DECLARE_METATYPE(ModemManager::SignalQualityPair)
179Q_DECLARE_METATYPE(ModemManager::CurrentModesType)
180Q_DECLARE_METATYPE(ModemManager::SupportedModesType)
181#if MM_CHECK_VERSION(1, 2, 0)
182Q_DECLARE_METATYPE(ModemManager::OmaSessionType)
183Q_DECLARE_METATYPE(ModemManager::OmaSessionTypes)
185Q_DECLARE_METATYPE(ModemManager::UnlockRetriesMap)
186Q_DECLARE_METATYPE(ModemManager::LocationInformationMap)
187Q_DECLARE_METATYPE(ModemManager::ValidityPair)
205#if MM_CHECK_VERSION(1, 2, 0)
212MODEMMANAGERQT_EXPORT
QDBusArgument &operator<<(
QDBusArgument &argument,
const ModemManager::UnlockRetriesMap &unlockRetriesMap);
213MODEMMANAGERQT_EXPORT
const QDBusArgument &operator>>(
const QDBusArgument &argument, ModemManager::UnlockRetriesMap &unlockRetriesMap);
217MODEMMANAGERQT_EXPORT
const QDBusArgument &operator>>(
const QDBusArgument &argument, ModemManager::QVariantMapList &variantMapList);
220MODEMMANAGERQT_EXPORT
QDBusArgument &operator<<(
QDBusArgument &argument,
const ModemManager::LocationInformationMap &locationMap);
221MODEMMANAGERQT_EXPORT
const QDBusArgument &operator>>(
const QDBusArgument &argument, ModemManager::LocationInformationMap &locationMap);
223MODEMMANAGERQT_EXPORT
void registerModemManagerTypes();
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString name(StandardAction id)
This namespace allows to query the underlying system to discover the available modem interfaces respo...