File indexing completed on 2024-05-12 15:48:09

0001 /*
0002  * This file was generated by qdbusxml2cpp version 0.7
0003  * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p siminterface \
0004  * /home/jgrulich/development/projects/libmm-qt/dbus/introspection/org.freedesktop.ModemManager1.Sim.xml
0005  *
0006  * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
0007  *
0008  * This is an auto-generated file.
0009  * Do not edit! All changes made to it will be lost.
0010  */
0011 
0012 #ifndef MODEMMANAGERQT_SIMINTERFACE_H
0013 #define MODEMMANAGERQT_SIMINTERFACE_H
0014 
0015 #include "generictypes.h"
0016 #include <QList>
0017 #include <QObject>
0018 #include <QString>
0019 #include <QVariant>
0020 
0021 /*
0022  * Proxy class for interface org.freedesktop.ModemManager1.Sim
0023  */
0024 class OrgFreedesktopModemManager1SimInterface : public QDBusAbstractInterface
0025 {
0026     Q_OBJECT
0027 public:
0028     static inline const char *staticInterfaceName()
0029 #ifdef MMQT_STATIC
0030     {
0031         return "org.kde.fakemodem.Sim";
0032     }
0033 #else
0034     {
0035         return "org.freedesktop.ModemManager1.Sim";
0036     }
0037 #endif
0038 public:
0039     OrgFreedesktopModemManager1SimInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
0040 
0041     ~OrgFreedesktopModemManager1SimInterface() override;
0042 
0043     Q_PROPERTY(QString Imsi READ imsi)
0044     inline QString imsi() const
0045     {
0046         return qvariant_cast<QString>(property("Imsi"));
0047     }
0048 
0049     Q_PROPERTY(QString OperatorIdentifier READ operatorIdentifier)
0050     inline QString operatorIdentifier() const
0051     {
0052         return qvariant_cast<QString>(property("OperatorIdentifier"));
0053     }
0054 
0055     Q_PROPERTY(QString OperatorName READ operatorName)
0056     inline QString operatorName() const
0057     {
0058         return qvariant_cast<QString>(property("OperatorName"));
0059     }
0060 
0061     Q_PROPERTY(QString SimIdentifier READ simIdentifier)
0062     inline QString simIdentifier() const
0063     {
0064         return qvariant_cast<QString>(property("SimIdentifier"));
0065     }
0066 
0067 public Q_SLOTS: // METHODS
0068     inline QDBusPendingReply<> ChangePin(const QString &old_pin, const QString &new_pin)
0069     {
0070         QList<QVariant> argumentList;
0071         argumentList << QVariant::fromValue(old_pin) << QVariant::fromValue(new_pin);
0072         return asyncCallWithArgumentList(QLatin1String("ChangePin"), argumentList);
0073     }
0074 
0075     inline QDBusPendingReply<> EnablePin(const QString &pin, bool enabled)
0076     {
0077         QList<QVariant> argumentList;
0078         argumentList << QVariant::fromValue(pin) << QVariant::fromValue(enabled);
0079         return asyncCallWithArgumentList(QLatin1String("EnablePin"), argumentList);
0080     }
0081 
0082     inline QDBusPendingReply<> SendPin(const QString &pin)
0083     {
0084         QList<QVariant> argumentList;
0085         argumentList << QVariant::fromValue(pin);
0086         return asyncCallWithArgumentList(QLatin1String("SendPin"), argumentList);
0087     }
0088 
0089     inline QDBusPendingReply<> SendPuk(const QString &puk, const QString &pin)
0090     {
0091         QList<QVariant> argumentList;
0092         argumentList << QVariant::fromValue(puk) << QVariant::fromValue(pin);
0093         return asyncCallWithArgumentList(QLatin1String("SendPuk"), argumentList);
0094     }
0095 
0096 Q_SIGNALS: // SIGNALS
0097 };
0098 
0099 #endif