2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-05 00:25:09 +00:00

Rename NetworkPackage -> NetworkPacket

Summary: KDE Connect, now with correct naming!

Test Plan: It still builds.

Reviewers: #kde_connect, apol, nicolasfella

Reviewed By: #kde_connect, apol, nicolasfella

Subscribers: nicolasfella, apol

Differential Revision: https://phabricator.kde.org/D11035
This commit is contained in:
Albert Vaca
2018-03-04 11:31:37 +01:00
parent fbeb5523b4
commit 9b70e1e61f
39 changed files with 492 additions and 491 deletions

View File

@@ -35,7 +35,7 @@ import android.view.View;
import android.widget.Button;
import org.kde.kdeconnect.Device;
import org.kde.kdeconnect.NetworkPackage;
import org.kde.kdeconnect.NetworkPacket;
import org.kde.kdeconnect.UserInterface.PluginSettingsActivity;
import org.kde.kdeconnect.UserInterface.SettingsActivity;
import org.kde.kdeconnect_tp.R;
@@ -56,12 +56,12 @@ public abstract class Plugin {
* To receive the network package from the unpaired device, override
* listensToUnpairedDevices to return true and this method.
*/
public boolean onUnpairedDevicePackageReceived(NetworkPackage np) {
public boolean onUnpairedDevicePacketReceived(NetworkPacket np) {
return false;
}
/**
* Returns whether this plugin should be loaded or not, to listen to NetworkPackages
* Returns whether this plugin should be loaded or not, to listen to NetworkPackets
* from the unpaired devices. By default, returns false.
*/
public boolean listensToUnpairedDevices() {
@@ -177,19 +177,19 @@ public abstract class Plugin {
* when we have done something in response to the package or false
* otherwise, even though that value is unused as of now.
*/
public boolean onPackageReceived(NetworkPackage np) {
public boolean onPacketReceived(NetworkPacket np) {
return false;
}
/**
* Should return the list of NetworkPackage types that this plugin can handle
* Should return the list of NetworkPacket types that this plugin can handle
*/
public abstract String[] getSupportedPackageTypes();
public abstract String[] getSupportedPacketTypes();
/**
* Should return the list of NetworkPackage types that this plugin can send
* Should return the list of NetworkPacket types that this plugin can send
*/
public abstract String[] getOutgoingPackageTypes();
public abstract String[] getOutgoingPacketTypes();
/**
* Creates a button that will be displayed in the user interface