ModemManager::Sms

Search for usage in LXR

ModemManager::Sms Class Reference

#include <sms.h>

Inheritance diagram for ModemManager::Sms:

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< SmsPtr
 

Signals

void dataChanged (const QByteArray &data)
 
void deliveryReportRequestChanged (bool deliveryReportRequest)
 
void deliveryStateChanged (MMSmsDeliveryState newDeliveryState)
 
void dischargeTimestampChanged (const QDateTime &dischargeTimestamp)
 
void messageReferenceChanged (uint messageReference)
 
void numberChanged (const QString &number)
 
void pduTypeChanged (MMSmsPduType pduType)
 
void serviceCategoryChanged (MMSmsCdmaServiceCategory serviceCategory)
 
void SMSCChanged (const QString &smsc)
 
void smsClassChanged (int smsClass)
 
void stateChanged (MMSmsState newState)
 
void storageChanged (MMSmsStorage storage)
 
void teleserviceIdChanged (MMSmsCdmaTeleserviceId teleserviceId)
 
void textChanged (const QString &text)
 
void timestampChanged (const QDateTime &timestamp)
 
void validityChanged (const ModemManager::ValidityPair &validity)
 

Public Member Functions

 Sms (const QString &path, QObject *parent=nullptr)
 
QByteArray data () const
 
bool deliveryReportRequest () const
 
MMSmsDeliveryState deliveryState () const
 
QDateTime dischargeTimestamp () const
 
uint messageReference () const
 
QString number () const
 
MMSmsPduType pduType () const
 
QDBusPendingReply send ()
 
void setTimeout (int timeout)
 
QString SMSC () const
 
int smsClass () const
 
MMSmsState state () const
 
MMSmsStorage storage () const
 
QDBusPendingReply store (MMSmsStorage storage=MM_SMS_STORAGE_UNKNOWN)
 
QString text () const
 
int timeout () const
 
QDateTime timestamp () const
 
QString uni () const
 
ValidityPair validity () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

Provides an interface to manipulate and control an SMS.

Note: MMSmsStorage, MMSmsState, MMSmsPduType and MMSmsDeliveryState enums are defined in <ModemManager/ModemManager-enums.h> See http://www.freedesktop.org/software/ModemManager/api/1.0.0/ModemManager-Flags-and-Enumerations.html

Definition at line 30 of file sms.h.

Member Typedef Documentation

◆ List

Definition at line 37 of file sms.h.

◆ Ptr

Definition at line 36 of file sms.h.

Constructor & Destructor Documentation

◆ Sms()

Sms::Sms ( const QString & path,
QObject * parent = nullptr )
explicit

Definition at line 52 of file sms.cpp.

◆ ~Sms()

Sms::~Sms ( )
override

Definition at line 84 of file sms.cpp.

Member Function Documentation

◆ data()

QByteArray Sms::data ( ) const

This method returns the SMS message data.

text() and data() are not valid at the same time

Definition at line 137 of file sms.cpp.

◆ deliveryReportRequest()

bool Sms::deliveryReportRequest ( ) const
Returns
true if a delivery report is requested, false otherwise

Definition at line 155 of file sms.cpp.

◆ deliveryState()

MMSmsDeliveryState Sms::deliveryState ( ) const

This method returns the delivery state of the SMS.

Definition at line 179 of file sms.cpp.

◆ deliveryStateChanged

void ModemManager::Sms::deliveryStateChanged ( MMSmsDeliveryState newDeliveryState)
signal

This signal is emitted when the delivery state of the SMS has changed.

Parameters
newDeliveryStatethe new delivery state of the SMS

◆ dischargeTimestamp()

QDateTime Sms::dischargeTimestamp ( ) const

Time when the SMS left the SMSC.

Definition at line 173 of file sms.cpp.

◆ messageReference()

uint Sms::messageReference ( ) const

This method returns the message reference of the last PDU sent/received in the SMS.

The message reference is the number used to identify the SMS in the SMSC. If the PDU type is MM_SMS_PDU_TYPE_STATUS_REPORT, this field identifies the Message Reference of the PDU associated to the status report

Definition at line 161 of file sms.cpp.

◆ number()

QString Sms::number ( ) const

This method returns the phone number to which the SMS is addressed to.

Definition at line 119 of file sms.cpp.

◆ pduType()

MMSmsPduType Sms::pduType ( ) const

This method returns the Protocol Data Unit (PDU) type of the SMS.

Definition at line 113 of file sms.cpp.

◆ send()

QDBusPendingReply Sms::send ( )

Send the SMS.

Definition at line 95 of file sms.cpp.

◆ setTimeout()

void Sms::setTimeout ( int timeout)

Sets the timeout in milliseconds for all async method DBus calls.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 204 of file sms.cpp.

◆ SMSC()

QString Sms::SMSC ( ) const

This method returns the SMS service center number.

Definition at line 131 of file sms.cpp.

◆ smsClass()

int Sms::smsClass ( ) const

This method returns the 3GPP class of the SMS.

Definition at line 149 of file sms.cpp.

◆ state()

MMSmsState Sms::state ( ) const

This method returns the state of the SMS.

Definition at line 107 of file sms.cpp.

◆ stateChanged

void ModemManager::Sms::stateChanged ( MMSmsState newState)
signal

This signal is emitted when the state of the SMS has changed.

Parameters
newStatethe new state of the SMS

◆ storage()

MMSmsStorage Sms::storage ( ) const

This method returns the storage area/location of the SMS.

Definition at line 185 of file sms.cpp.

◆ store()

QDBusPendingReply Sms::store ( MMSmsStorage storage = MM_SMS_STORAGE_UNKNOWN)

Store the SMS.

Parameters
storagethe storage location of the SMS (empty for default storage)

Definition at line 101 of file sms.cpp.

◆ text()

QString Sms::text ( ) const

This method returns the text of the SMS.

text() and data() are not valid at the same time

Definition at line 125 of file sms.cpp.

◆ timeout()

int Sms::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 210 of file sms.cpp.

◆ timestamp()

QDateTime Sms::timestamp ( ) const

Time when the SMS arrived at the SMSC.

Definition at line 167 of file sms.cpp.

◆ uni()

QString Sms::uni ( ) const

Definition at line 89 of file sms.cpp.

◆ validity()

ModemManager::ValidityPair Sms::validity ( ) const

This method returns the validity of the SMS.

Returns
A ValidityPair struct composed of a MMSmsValidityType type and a value indicating the validity of the SMS

Definition at line 143 of file sms.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.