/usr/include/KF5/ModemManagerQt/modem3gppussd.h is in modemmanager-qt-dev 5.44.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
Copyright 2008,2011 Will Stephenson <wstephenson@kde.org>
Copyright 2010 Lamarque Souza <lamarque@kde.org>
Copyright 2013 Lukas Tinkl <ltinkl@redhat.com>
Copyright 2013-2015 Jan Grulich <jgrulich@redhat.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MODEMMANAGERQT_MODEM3GPPUSSD_H
#define MODEMMANAGERQT_MODEM3GPPUSSD_H
#include <modemmanagerqt_export.h>
#include <QObject>
#include <QSharedPointer>
#include "generictypes.h"
#include "interface.h"
namespace ModemManager
{
class Modem3gppUssdPrivate;
/**
* @brief The Modem3gppUssd class
*
* This class provides access to actions based on the USSD protocol.
*/
class MODEMMANAGERQT_EXPORT Modem3gppUssd : public Interface
{
Q_OBJECT
Q_DECLARE_PRIVATE(Modem3gppUssd)
public:
typedef QSharedPointer<Modem3gppUssd> Ptr;
typedef QList<Ptr> List;
explicit Modem3gppUssd(const QString &path, QObject *parent = nullptr);
~Modem3gppUssd();
/**
* Sends a USSD @p command string to the network initiating a USSD session.
*
* When the request is handled by the network, the method returns the
* response or an appropriate error. The network may be awaiting further
* response from the ME after returning from this method and no new command
* can be initiated until this one is cancelled or ended.
*/
QDBusPendingReply<QString> initiate(const QString &command);
/**
* Respond to a USSD request that is either initiated by the mobile network,
* or that is awaiting further input after initiate() was called.
*/
QDBusPendingReply<QString> respond(const QString &response);
/**
* Cancel an ongoing USSD session, either mobile or network initiated.
*/
void cancel();
/**
* @return the state of any ongoing USSD session
*/
MMModem3gppUssdSessionState state() const;
/**
* @return any network-initiated request to which no USSD response is required
*
* When no USSD session is active, or when there is no network- initiated request, this property will be an empty string.
*/
QString networkNotification() const;
/**
* @return any pending network-initiated request for a response. Client
* should call respond() with the appropriate response to this request.
*
* When no USSD session is active, or when there is no pending
* network-initiated request, this property will be an empty string.
*/
QString networkRequest() const;
Q_SIGNALS:
void stateChanged(MMModem3gppUssdSessionState state);
void networkNotificationChanged(const QString &networkNotification);
void networkRequestChanged(const QString &networkRequest);
};
} // namespace ModemManager
#endif
|