#include <GCommunicationWidget.h>
Inheritance diagram for GCE::GCommunicationWidget:


Public Slots | |
| void | replaceInternalContactList (QStringList contacts) |
| void | replaceExternalContactList (QStringList contacts) |
| void | clearInternalContacts () |
| void | clearExternalContacts () |
| void | addInternalContact (QString contact) |
| void | addExternalContact (QString contact) |
| void | removeInternalContact (QString contact) |
| void | removeExternalContact (QString contact) |
| void | updateContactState (QString contact, bool available, bool internal) |
| void | receiveMessage (QString message, QString from, bool internal) |
| void | setDestination (const QString &destination) |
Signals | |
| void | contactSelected (QString contact) |
| void | sendMessage (QString message, QString destination) |
Public Member Functions | |
| GCommunicationWidget (QWidget *parent=0, Qt::WFlags f=0) | |
| virtual | ~GCommunicationWidget () |
Protected Slots | |
| void | prepareMessageForSending () |
Protected Member Functions | |
| void | removeContactFromList (QString contact, QListWidget *list) |
Protected Attributes | |
| QListWidget * | InternalServerList |
| QListWidget * | ExternalServerList |
| QTextEdit * | MessageHistory |
| QLineEdit * | MessageDestination |
| QLineEdit * | MessageText |
| GCE::GCommunicationWidget::GCommunicationWidget | ( | QWidget * | parent = 0, |
|
| Qt::WFlags | f = 0 | |||
| ) |
Constructor
| GCE::GCommunicationWidget::~GCommunicationWidget | ( | ) | [virtual] |
Destructor
| void GCE::GCommunicationWidget::prepareMessageForSending | ( | ) | [protected, slot] |
Puts a message together from destination and message edit lines. This message is then sent with the sendMessage signal.
| void GCE::GCommunicationWidget::removeContactFromList | ( | QString | contact, | |
| QListWidget * | list | |||
| ) | [protected] |
Removes given contact from given list. This is used for internal and external contact lists.
| void GCE::GCommunicationWidget::replaceInternalContactList | ( | QStringList | contacts | ) | [slot] |
Sets the list of known communication contacts inside the G Universe.
| void GCE::GCommunicationWidget::updateContactState | ( | QString | contact, | |
| bool | available, | |||
| bool | internal | |||
| ) | [slot] |
Updates contact states for internal and external lists.
QListWidget* GCE::GCommunicationWidget::ExternalServerList [protected] |
Lists all known servers external to the G Universe with their JID.
QListWidget* GCE::GCommunicationWidget::InternalServerList [protected] |
Lists all known servers part of the G Universe with their JID.
QLineEdit* GCE::GCommunicationWidget::MessageDestination [protected] |
The destination for sent messages.
QTextEdit* GCE::GCommunicationWidget::MessageHistory [protected] |
History of all communication.
QLineEdit* GCE::GCommunicationWidget::MessageText [protected] |
The actual message text to be sent.
1.4.7