Removed sendPackageEncrypted from DeviceLink

This commit is contained in:
Albert Vaca 2015-12-17 07:43:52 -08:00
parent d37830b429
commit dd7d4093ed
4 changed files with 1 additions and 18 deletions

View file

@ -49,7 +49,6 @@ public:
LinkProvider* provider() { return mLinkProvider; }
virtual bool sendPackage(NetworkPackage& np) = 0;
virtual bool sendPackageEncrypted(NetworkPackage& np) = 0;
//user actions
virtual void userRequestsPair() = 0;

View file

@ -71,7 +71,7 @@ QString LanDeviceLink::name()
return "LanLink"; // Should be same in both android and kde version
}
bool LanDeviceLink::sendPackageEncrypted(NetworkPackage& np)
bool LanDeviceLink::sendPackage(NetworkPackage& np)
{
if (np.hasPayload()) {
np.setPayloadTransferInfo(sendPayload(np)->transferInfo());
@ -85,16 +85,6 @@ bool LanDeviceLink::sendPackageEncrypted(NetworkPackage& np)
return (written != -1);
}
bool LanDeviceLink::sendPackage(NetworkPackage& np)
{
if (np.hasPayload()) {
np.setPayloadTransferInfo(sendPayload(np)->transferInfo());
}
int written = mSocketLineReader->write(np.serialize());
return (written != -1);
}
UploadJob* LanDeviceLink::sendPayload(NetworkPackage& np)
{
QVariantMap transferInfo;

View file

@ -34,11 +34,6 @@ QString LoopbackDeviceLink::name()
return "LoopbackLink"; // Should be similar to android
}
bool LoopbackDeviceLink::sendPackageEncrypted(NetworkPackage& input)
{
return sendPackage(input);
}
bool LoopbackDeviceLink::sendPackage(NetworkPackage& input)
{
NetworkPackage output(QString::null);

View file

@ -34,7 +34,6 @@ public:
virtual QString name() override;
virtual bool sendPackage(NetworkPackage& np) override;
virtual bool sendPackageEncrypted(NetworkPackage& np) override;
virtual void userRequestsPair() override { setPairStatus(Paired); }
virtual void userRequestsUnpair() override { setPairStatus(NotPaired); }