kopete/kopete
ChatTextEditPart Class Reference
#include <chattexteditpart.h>

Detailed Description
An instant message composition part.This class provides an input part suitable for the composition of instant messages. It provides command history, nickname completion and typing notifications. It is also able to determine whether the send button should be enabled.
Definition at line 53 of file chattexteditpart.h.
Public Slots | |
| void | complete () |
| void | historyDown () |
| void | historyUp () |
| void | sendMessage () |
Signals | |
| void | canSendChanged (bool canSend) |
| void | messageSent (Kopete::Message &message) |
| void | typing (bool typing) |
Public Member Functions | |
| void | addText (const QString &text) |
| bool | canSend () |
| ChatTextEditPart (Kopete::ChatSession *session, QWidget *parent) | |
| Kopete::Message | contents () |
| bool | isTyping () |
| void | setContents (const Kopete::Message &message) |
| ~ChatTextEditPart () | |
Constructor & Destructor Documentation
| ChatTextEditPart::ChatTextEditPart | ( | Kopete::ChatSession * | session, | |
| QWidget * | parent | |||
| ) |
Definition at line 34 of file chattexteditpart.cpp.
| ChatTextEditPart::~ChatTextEditPart | ( | ) |
Definition at line 79 of file chattexteditpart.cpp.
Member Function Documentation
| void ChatTextEditPart::addText | ( | const QString & | text | ) |
Adds text into the edit area.
Used when an emoticon is selected.
- Parameters:
-
text The text to be inserted
Definition at line 363 of file chattexteditpart.cpp.
| bool ChatTextEditPart::canSend | ( | ) |
| void ChatTextEditPart::canSendChanged | ( | bool | canSend | ) | [signal] |
| void ChatTextEditPart::complete | ( | ) | [slot] |
| Kopete::Message ChatTextEditPart::contents | ( | ) |
Returns the message currently in the edit area.
- Returns:
- The Kopete::Message object for the message
Definition at line 388 of file chattexteditpart.cpp.
| void ChatTextEditPart::historyDown | ( | ) | [slot] |
| void ChatTextEditPart::historyUp | ( | ) | [slot] |
| bool ChatTextEditPart::isTyping | ( | ) |
| void ChatTextEditPart::messageSent | ( | Kopete::Message & | message | ) | [signal] |
Emitted when a message is sent.
- Parameters:
-
message The message sent
| void ChatTextEditPart::sendMessage | ( | ) | [slot] |
Sends the text currently entered into the edit area.
Definition at line 241 of file chattexteditpart.cpp.
| void ChatTextEditPart::setContents | ( | const Kopete::Message & | message | ) |
Sets the message in the edit field.
- Parameters:
-
message The message to display
Definition at line 375 of file chattexteditpart.cpp.
| void ChatTextEditPart::typing | ( | bool | typing | ) | [signal] |
Emitted every 4 seconds while the user is typing.
- Parameters:
-
typing trueif the user is typing,falseotherwise
The documentation for this class was generated from the following files:
KDE 4.2 API Reference