Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMailNewSmsHandler Class Reference
[QtMessagingModule]

The QMailNewSmsHandler class provides a convenient interface for responding to new SMS arrival notifications emitted by the message server. More...

    #include <QMailNewSmsHandler>

This class is under development and is subject to change.

Inherits QMailNewMessageHandler.

Public Functions

Additional Inherited Members


Detailed Description

The QMailNewSmsHandler class provides a convenient interface for responding to new SMS arrival notifications emitted by the message server.

When a new SMS is retrieved by the message server, the NewSmsArrival::arrived(QDSActionRequest) service request is emitted. If a process registers to handle this request and instantiates a QMailNewSmsHandler object, the handler object will process the service request and emit the newCountChanged() signal.

In response to the newCountChanged() signal, the handler process should invoke the setHandled() slot, to communicate whether or not they have handled the event to the message server. If any handler process reports the event as handled, then the count of new SMS messages will be reset, and those messages will have the QMailMessage::New status flag unset.

Note: if a process instantiates a QMailNewSmsHandler, it will not do anything unless the process is also registered to handle the NewSmsArrival service.


Member Function Documentation

QMailNewSmsHandler::QMailNewSmsHandler ( QObject * parent = 0 )

Constructs a new handler for the NewSmsArrival service, with the specified parent.

QMailMessage::MessageType QMailNewSmsHandler::messageType () const   [virtual]

Returns QMailMessage::Sms, the type of messages handled by QMailNewSmsHandler.

Reimplemented from QMailNewMessageHandler.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3