Vers 0.1.3, extra qDebug printouts commented out
[tpsession] / tpsession-0.1 / tpsession / tpsessionchannel.cpp
index 36e1b85..759289c 100644 (file)
@@ -74,7 +74,7 @@
 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"),
@@ -100,7 +100,7 @@ TpSessionChannel::TpSessionChannel(Tp::ConnectionPtr conn,const Tp::ContactPtr &
 
 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 *)),
@@ -110,7 +110,7 @@ TpSessionChannel::TpSessionChannel(Tp::TextChannelPtr ch)
 
 void TpSessionChannel::onChannelCreated(Tp::PendingOperation *op)
 {
-   qDebug() << "TpSessionChannel::onOutgoingChannelCreated" ;
+  //   qDebug() << "TpSessionChannel::onOutgoingChannelCreated" ;
    if (op->isError()) {
      qWarning() << "Connection cannot become connected" ;
      return;
@@ -126,8 +126,8 @@ void TpSessionChannel::onChannelCreated(Tp::PendingOperation *op)
 
 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 &)),
@@ -140,7 +140,7 @@ void TpSessionChannel::onChannelReady(Tp::PendingOperation *op)
  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);
     }
 }
@@ -157,12 +157,12 @@ void TpSessionChannel::sendMessage(QString message)
 }
 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);
 };
 /**
@@ -178,7 +178,7 @@ QString TpSessionChannel::peerId()
 
 void TpSessionChannel::onChannelDestroyed(QObject *obj)
 {
-    qDebug() << "TpSessionChannel::onChannelDestroyed";
+  //    qDebug() << "TpSessionChannel::onChannelDestroyed";
     //TpSessionChannel *call = (TpSessionChannel *) obj;
      emit channelDestroyed(this);
 }