Home · All Classes · All Namespaces · Modules · Functions · Files

TpSessionChannel Class Reference

#include <tpsessionchannel.h>

List of all members.

Public Slots

Signals

Public Member Functions

Public Attributes


Detailed Description

When you start chat session or call with your buddy, channel is established with your buddy. TpSessionChannel represents this connection. TpSession account makes automatically channel when you send message to your buddy's address. If you send successive messages to same buddy with TpSessionAccount, it automatically reuses existing connection.

Constructor & Destructor Documentation

TpSessionChannel ( Tp::TextChannelPtr  ch  ) 

Construct a new TpSessionChannel object. This constructor is called by TpSessionAccount class when new channel is created . It is not inended to be used stand alone This varient with connection only parameter is intented for receiving new connection from your peer

Parameters:
conn connection where this channel is created

TpSessionChannel ( Tp::ConnectionPtr  conn,
const Tp::ContactPtr &  contact 
)

Construct a new TpSessionChannel object. This constructor is called by TpSessionAccount class when new channel is created . It is not inended to be used stand alone This varient with connection and contact as parameter is intented for creationg new connection from origginator side to your peer

Parameters:
conn connection where this channel is created
contact Contacto to your peer to establish channel


Member Function Documentation

void sendMessage ( QString  message  ) 

Send message to to ths channel

Parameters:
message message to send

QString peerId (  ) 

Get id ( address of your peer )

Returns:
your peer id/address ir empty QString

void channelReady ( TpSessionChannel _t1  )  [signal]

Emitted when the channel becomes ready

Parameters:
TpSessionChannel pointer to channel become ready

void channelDestroyed ( TpSessionChannel _t1  )  [signal]

Emitted when the channel is destroyed

Parameters:
TpSessionChannel pointer to channel destroyed. The pointer is only for referenc to remove it from some possible places where it could be stored. It is not guaranteed to point any more valid TpSessionChannel object

void messageReceived ( const Tp::ReceivedMessage &  _t1,
TpSessionChannel _t2 
) [signal]

void messageSent ( const Tp::Message &  _t1,
Tp::MessageSendingFlags  _t2,
const QString &  _t3,
TpSessionChannel _t4 
) [signal]

Parameters:
Tp::Message message sent

void onChannelCreated ( Tp::PendingOperation *  op  )  [slot]

void onChannelReady ( Tp::PendingOperation *  op  )  [slot]

void onChannelDestroyed ( QObject *  obj  )  [slot]

void onMessageReceived ( const Tp::ReceivedMessage &  msg  )  [slot]

void onMessageSent ( const Tp::Message &  msg,
Tp::MessageSendingFlags  sflags,
const QString &  flags 
) [slot]


Member Data Documentation

Tp::ContactPtr peerContact

Tp::TextChannelPtr channel


Copyright © 2010 Nokia Corporation
TpSession