TpSessionChannel::TpSessionChannel(Tp::ConnectionPtr conn,const Tp::ContactPtr &contact)
{
QVariantMap request;
- qDebug() << "TpSessionChannel::TpSessionChannel" <<"contact.id() " << contact->id();
+ // qDebug() << "TpSessionChannel::TpSessionChannel" <<"contact.id() " << contact->id();
request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".ChannelType"),
TELEPATHY_INTERFACE_CHANNEL_TYPE_TEXT);
request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandleType"),
TpSessionChannel::TpSessionChannel(Tp::TextChannelPtr ch)
{
- qDebug() << "TpSessionChannel::TpSessionChannel" <<"path " << ch->objectPath();
+ // qDebug() << "TpSessionChannel::TpSessionChannel" <<"path " << ch->objectPath();
channel=ch;
connect(channel->becomeReady(Tp::TextChannel::FeatureMessageQueue|Tp::TextChannel::FeatureMessageSentSignal),
SIGNAL(finished(Tp::PendingOperation *)),
void TpSessionChannel::onChannelCreated(Tp::PendingOperation *op)
{
- qDebug() << "TpSessionChannel::onOutgoingChannelCreated" ;
+ // qDebug() << "TpSessionChannel::onOutgoingChannelCreated" ;
if (op->isError()) {
qWarning() << "Connection cannot become connected" ;
return;
void TpSessionChannel::onChannelReady(Tp::PendingOperation *op)
{
- qDebug() << "TpSessionChannel::onChannelReady type=" << channel->channelType() <<"path " << channel->objectPath() <<
- "initiatorContact=" << (channel->initiatorContact() ? channel->initiatorContact()->id():"NULL") ;
+ // qDebug() << "TpSessionChannel::onChannelReady type=" << channel->channelType() <<"path " << channel->objectPath() <<
+ // "initiatorContact=" << (channel->initiatorContact() ? channel->initiatorContact()->id():"NULL") ;
;
connect(channel.data(),
SIGNAL(messageReceived(const Tp::ReceivedMessage &)),
peerContact=channel->initiatorContact();
QList<Tp::ReceivedMessage> queuedMessages = channel->messageQueue();
foreach(Tp::ReceivedMessage message, queuedMessages) {
- qDebug() << "received " << message.text();
+ // qDebug() << "received " << message.text();
emit messageReceived(message,this);
}
}
}
void TpSessionChannel::onMessageReceived(const Tp::ReceivedMessage &msg)
{
- qDebug() << "TpSessionChannel::onMessageReceived " << msg.text();
+ // qDebug() << "TpSessionChannel::onMessageReceived " << msg.text();
emit messageReceived(msg,this);
};
void TpSessionChannel::onMessageSent(const Tp::Message &msg,Tp::MessageSendingFlags sflags, const QString &flags)
{
- qDebug() << "TpSessionChannel::onMessageSent";
+ // qDebug() << "TpSessionChannel::onMessageSent";
emit messageSent(msg,sflags,flags,this);
};
/**
void TpSessionChannel::onChannelDestroyed(QObject *obj)
{
- qDebug() << "TpSessionChannel::onChannelDestroyed";
+ // qDebug() << "TpSessionChannel::onChannelDestroyed";
//TpSessionChannel *call = (TpSessionChannel *) obj;
emit channelDestroyed(this);
}