kDebug -> qCDebug

This commit is contained in:
Albert Vaca 2015-03-15 19:14:30 -07:00
parent 563233cac7
commit 856bd1e346

View file

@ -62,7 +62,7 @@ void NetworkPackage::createIdentityPackage(NetworkPackage* np)
np->set("SupportedIncomingInterfaces", PluginLoader::instance()->incomingInterfaces().join(",")); np->set("SupportedIncomingInterfaces", PluginLoader::instance()->incomingInterfaces().join(","));
np->set("SupportedOutgoingInterfaces", PluginLoader::instance()->outgoingInterfaces().join(",")); np->set("SupportedOutgoingInterfaces", PluginLoader::instance()->outgoingInterfaces().join(","));
//kDebug(kdeconnect_kded()) << "createIdentityPackage" << np->serialize(); //qCDebug(KDECONNECT_CORE) << "createIdentityPackage" << np->serialize();
} }
QVariantMap qobject2qvairant(const QObject* object) QVariantMap qobject2qvairant(const QObject* object)
@ -87,7 +87,7 @@ QByteArray NetworkPackage::serialize() const
QVariantMap variant = qobject2qvairant(this); QVariantMap variant = qobject2qvairant(this);
if (hasPayload()) { if (hasPayload()) {
//kDebug(kdeconnect_kded()) << "Serializing payloadTransferInfo"; //qCDebug(KDECONNECT_CORE) << "Serializing payloadTransferInfo";
variant["payloadSize"] = payloadSize(); variant["payloadSize"] = payloadSize();
variant["payloadTransferInfo"] = mPayloadTransferInfo; variant["payloadTransferInfo"] = mPayloadTransferInfo;
} }
@ -99,7 +99,7 @@ QByteArray NetworkPackage::serialize() const
qCDebug(KDECONNECT_CORE) << "Serialization error:"; qCDebug(KDECONNECT_CORE) << "Serialization error:";
} else { } else {
if (!isEncrypted()) { if (!isEncrypted()) {
//kDebug(kDebugArea) << "Serialized package:" << json; //qCDebug(KDECONNECT_CORE) << "Serialized package:" << json;
} }
json.append('\n'); json.append('\n');
} }
@ -141,7 +141,7 @@ bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
qvariant2qobject(variant, np); qvariant2qobject(variant, np);
if (!np->isEncrypted()) { if (!np->isEncrypted()) {
//kDebug(kDebugArea) << "Unserialized: " << a; //qCDebug(KDECONNECT_CORE) << "Unserialized: " << a;
} }
np->mPayloadSize = variant["payloadSize"].toInt(); //Will return 0 if was not present, which is ok np->mPayloadSize = variant["payloadSize"].toInt(); //Will return 0 if was not present, which is ok
@ -177,7 +177,7 @@ void NetworkPackage::encrypt(QCA::PublicKey& key)
chunks.append( encryptedChunk.toBase64() ); chunks.append( encryptedChunk.toBase64() );
} }
//kDebug(kdeconnect_kded()) << chunks.size() << "chunks"; //qCDebug(KDECONNECT_CORE) << chunks.size() << "chunks";
mId = QString::number(QDateTime::currentMSecsSinceEpoch()); mId = QString::number(QDateTime::currentMSecsSinceEpoch());
mType = PACKAGE_TYPE_ENCRYPTED; mType = PACKAGE_TYPE_ENCRYPTED;