Home · All Classes · Annotated · Functions

QSMSRequest Class Reference

The QSMSRequest class accesses the SMS functionality of the phone. More...

#include <QSMSRequest>

Inherits QObject.

Public Types

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QSMSRequest class accesses the SMS functionality of the phone.

The QSMSRequest class provides access to SMS functionality on the phone device, to send and receive SMS and cell broadcast messages.

See also QSMSMessage.


Member Type Documentation

enum QSMSRequest::Disposition

The disposition of an SMS message that is being transmitted.

ConstantValueDescription
QSMSRequest::Send0Send the message, but do not store it locally.
QSMSRequest::SendAndStore1Send the message, and also store is locally.
QSMSRequest::Store2Store the message locally, but do not send it.


Member Function Documentation

QSMSRequest::~QSMSRequest ()

Destruct an QSMSRequest object.

void QSMSRequest::cellBroadcast ( const QPhoneLine & line, const QCBSMessage & m )   [signal]

Signal that is emitted when a cell broadcast message m is received on line.

void QSMSRequest::check ()

Fetch the total number of messages in the incoming SMS buffer. The number is returned via the QSMSRequest::messageCount signal.

void QSMSRequest::deleteMessage ( const QString & id )

Delete the message with the identifier id from the incoming SMS buffer.

void QSMSRequest::fetched ( const QPhoneLine & line, const QString & id, const QSMSMessage & m )   [signal]

Signal that is emitted when a message in the incoming SMS buffer of line is fetched. id will be zero-length if there are no remaining messages in the buffer to be fetched. Otherwise, the message content is in m.

void QSMSRequest::finished ( const QPhoneLine & line, const QString & id, bool success )   [signal]

Signal that is emitted when a message has finished being sent on line. The message's identifier is id, and success indicates whether the transmission was successful or not.

void QSMSRequest::firstMessage ()

Fetch the first message in the incoming SMS buffer. Note: only one application (usually qtmail) should ever call this method and QSMSRequest::nextMessage.

void QSMSRequest::messageCount ( const QPhoneLine & line, int total )   [signal]

Signal that is emitted when either a new message arrives on line, the total count is explicitly fetched using QSMSRequest::check, or a message is deleted using QSMSRequest::deleteMessage.

void QSMSRequest::nextMessage ()

Fetch the next message in the incoming SMS buffer.

QString QSMSRequest::send ( const QSMSMessage & m, QSMSRequest::Disposition disposition = Send, QString id = QString() )

Send the SMS message m with the specified disposition. The identifier id is associated with the message, which allows the caller to track its progress via the QSMSRequest::finished signal.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7