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

QCollectiveSimpleMessage Class Reference
[QtBaseModule]

The QCollectiveSimpleMessage class holds a single message sent or received from a contact. More...

    #include <QCollectiveSimpleMessage>

Public Types

Public Functions


Detailed Description

The QCollectiveSimpleMessage class holds a single message sent or received from a contact.

This class holds a simple peer to peer message that was sent or received from a contact. This information will be provided by the QCollectiveMessenger class.

See also QCollectiveMessenger.


Member Type Documentation

enum QCollectiveSimpleMessage::Type

ConstantValueDescription
QCollectiveSimpleMessage::Normal0The message is a normal message.
QCollectiveSimpleMessage::AutoReply1Message is an auto reply.


Member Function Documentation

QCollectiveSimpleMessage::QCollectiveSimpleMessage ()

Constructs a QCollectiveSimpleMessage object.

See also QCollectivePresence.

QCollectiveSimpleMessage::QCollectiveSimpleMessage ( const QCollectiveSimpleMessage & other )

Constructs a QCollectiveSimpleMessage object from the contents of other object.

QCollectiveSimpleMessage::~QCollectiveSimpleMessage ()

Deconstructs a QCollectiveSimpleMessage object.

QString QCollectiveSimpleMessage::from () const

Returns the from URI for this message object.

See also setFrom().

void QCollectiveSimpleMessage::setFrom ( const QString & fromUri )

Sets the message's from URI to fromUri.

See also from().

void QCollectiveSimpleMessage::setText ( const QString & text )

Sets the text of this message.

See also text().

void QCollectiveSimpleMessage::setTimestamp ( const QDateTime & timestamp )

Sets the timestamp when this message was received or sent.

See also timestamp().

void QCollectiveSimpleMessage::setTo ( const QString & toUri )

Sets the message's to URI to toUri.

See also to() and from().

void QCollectiveSimpleMessage::setType ( QCollectiveSimpleMessage::Type type )

Sets the message type to type.

See also type().

QString QCollectiveSimpleMessage::text () const

Returns the text of this message.

See also setText().

QDateTime QCollectiveSimpleMessage::timestamp () const

Returns the timestamp when this message was received or sent.

See also setTimestamp().

QString QCollectiveSimpleMessage::to () const

Returns the to URI for this message object.

See also setTo() and setFrom().

QCollectiveSimpleMessage::Type QCollectiveSimpleMessage::type () const

Returns the message type.

See also setType().

bool QCollectiveSimpleMessage::operator!= ( const QCollectiveSimpleMessage & other ) const

Returns true if information in other is not equal to information contained in this object; otherwise returns false.

QCollectiveSimpleMessage & QCollectiveSimpleMessage::operator= ( const QCollectiveSimpleMessage & other )

Assigns the contents of other to this object.

bool QCollectiveSimpleMessage::operator== ( const QCollectiveSimpleMessage & other ) const

Returns true if information in other is equal to information contained in this object; otherwise returns false.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3