Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QSMSReader class provides access to the incoming SMS message store on the modem device. More...
#include <QSMSReader>
Inherits QCommInterface.
Inherited by QModemSMSReader.
The QSMSReader class provides access to the incoming SMS message store on the modem device.
The modem scans for new messages at start up and whenever a new message indication is received from the modem. It will then update unreadCount(), unreadList(), usedMessages(), and totalMessages() to indicate the current state of the incoming SMS message store.
The messageCount() signal is emitted when these values change, especially for new messages. The unreadCountChanged() signal will be emitted whenever the number of unread messages changes, which could be when a new message arrives, or when the count is reset with setUnreadCount().
SMS reading applications, such as qtmail, access the message store by calling check(). The QSMSReader class will respond with a messageCount() signal once the store is ready to be read. The SMS reading application then calls firstMessage() to fetch the first message in the store. The QSMSReader class will respond with a fetched() signal containing the message. If the id parameter of fetched() is empty, then the list has terminated. Otherwise, the SMS reading application can call nextMessage() to read the next message; and so on.
The deleteMessage() function can be used to delete a message from the incoming SMS message store.
The setUnreadCount() function is used by the qpe server to reset unreadCount() after power up to the state it had before shutdown. It is also used by SMS reading applications like qtmail to reset the count to zero once all new messages have been processed.
Some special SMS messages are not delivered via QSMSReader. These are WAP push messages and SMS datagrams that are dispatched as soon as they arrive. See QSMSMessage::destinationPort() for more information on how these types of messages are dispatched.
See also QSMSMessage.
Construct a new SMS request object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.
If service is empty, this class will use the first available service that supports SMS requests. If there is more than one service that supports network registration, the caller should enumerate them with QCommServiceManager::supports() and create separate QSMSReader objects for each.
See also QCommServiceManager::supports().
Destroy this SMS request object.
Fetch the total number of messages in the incoming SMS buffer. The number is returned via the messageCount() signal.
See also messageCount() and firstMessage().
Delete the message with the identifier id from the incoming SMS buffer.
Signal that is emitted when a message in the incoming SMS buffer of 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.
See also firstMessage() and nextMessage().
Fetch the first message in the incoming SMS buffer. Note: only one application (usually the mail application) should ever call this method and nextMessage().
See also nextMessage().
Signal that is emitted when either a new SMS message arrives, the total count is explicitly fetched using check(), or a message is deleted using deleteMessage().
See also check() and deleteMessage().
Fetch the next message in the incoming SMS buffer.
See also firstMessage().
Returns true if the SMS reader is ready to access the SIM; otherwise returns false.
See also setReady() and readyChanged().
Signal that is emitted whenever ready() changes state.
See also ready() and setReady().
Sets the ready() state to value and emit the readyChanged() signal.
See also ready() and readyChanged().
Sets the number of unread messages to value.
See also unreadCount(), unreadList(), and unreadCountChanged().
Returns the total number of messages that could be stored on the SIM if all slots were in use. If usedMessages() and totalMessages() are the same, then the SIM is full. Returns -1 if the value is not currently known because the incoming message store has not yet been scanned.
See also usedMessages() and messageCount().
Returns the number of messages that have not yet been read by the user. This value will gradually increase as new messages arrive until reset by a call to setUnreadCount().
See also unreadList(), setUnreadCount(), and unreadCountChanged().
Signal that is emitted when unreadCount() changes.
See also unreadCount(), unreadList(), and setUnreadCount().
Returns a list of message identifiers for messages that are new and unread since the last time firstMessage() was called. This list will reset to empty when firstMessage() is called. The list will be ordered roughly in the order in which the messages arrived.
See also unreadCount(), setUnreadCount(), and unreadCountChanged().
Returns the number of messages that are currently stored on the SIM. Note that this may be greater than the value returned by the messageCount() signal. The messageCount() signal reports the value after multi-part messages have been combined. The unreadMessages() function returns the value before multi-part messages have been combined. Returns -1 if the value is not currently known because the incoming message store has not yet been scanned.
See also totalMessages() and messageCount().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |