• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/kopete

ChatTextEditPart Class Reference

#include <chattexteditpart.h>

Inheritance diagram for ChatTextEditPart:

Inheritance graph
[legend]

List of all members.


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.

Author:
Richard Smith

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 (  ) 

Can we send messages now?

Definition at line 196 of file chattexteditpart.cpp.

void ChatTextEditPart::canSendChanged ( bool  canSend  )  [signal]

Our send-button-enabled flag might have changed.

Parameters:
canSend The return value of canSend().

void ChatTextEditPart::complete (  )  [slot]

Try to complete the word under the cursor.

Definition at line 99 of file chattexteditpart.cpp.

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]

Go down an entry in the message history.

Definition at line 337 of file chattexteditpart.cpp.

void ChatTextEditPart::historyUp (  )  [slot]

Go up an entry in the message history.

Definition at line 305 of file chattexteditpart.cpp.

bool ChatTextEditPart::isTyping (  ) 

Is the user typing right now?

Definition at line 275 of file chattexteditpart.cpp.

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 true if the user is typing, false otherwise


The documentation for this class was generated from the following files:
  • chattexteditpart.h
  • chattexteditpart.cpp

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal