Skip to content

Commit

Permalink
Renamed Connect classes to Get Info classes.
Browse files Browse the repository at this point in the history
The "connect" term was misleading
  • Loading branch information
ltrudu committed Feb 29, 2024
1 parent bde1209 commit 14708ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package com.zebra.printwrapper;

import android.content.Context;
import android.os.AsyncTask;

import com.zebra.sdk.printer.discovery.DiscoveredPrinter;

import java.util.Map;

public class ConnectToBluetoothPrinterTask extends ExecutorTask<Void, Boolean, Map<String, String>> {
public class GetBluetoothPrinterInfoTask extends ExecutorTask<Void, Boolean, Map<String, String>> {

private static final String TAG = "CONNECT_BT_TASK";

private Context context;
private SelectedPrinterTaskCallbacks callback;
private DiscoveredPrinter selectedPrinter = null;

public ConnectToBluetoothPrinterTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
public GetBluetoothPrinterInfoTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
this.context = aContext;
this.callback = aCallback;
this.selectedPrinter = selectedPrinter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package com.zebra.printwrapper;

import android.content.Context;
import android.os.AsyncTask;

import com.zebra.sdk.printer.discovery.DiscoveredPrinter;

import java.util.Map;

public class ConnectToTCPPrinterTask extends ExecutorTask<Void, Boolean, Map<String,String>> {
public class GetTCPPrinterInfoTask extends ExecutorTask<Void, Boolean, Map<String,String>> {

private static final String TAG = "CONNECT_TCP_TASK";

private Context context;
private SelectedPrinterTaskCallbacks callback;
private DiscoveredPrinter selectedPrinter = null;

public ConnectToTCPPrinterTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
public GetTCPPrinterInfoTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
this.context = aContext;
this.callback = aCallback;
this.selectedPrinter = selectedPrinter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package com.zebra.printwrapper;

import android.content.Context;
import android.os.AsyncTask;

import com.zebra.sdk.printer.discovery.DiscoveredPrinter;

import java.util.Map;

public class ConnectToUSBPrinterTask extends ExecutorTask<Void, Boolean, Map<String, String>> {
public class GetUSBPrinterInfoTask extends ExecutorTask<Void, Boolean, Map<String, String>> {

private static final String TAG = "CONNECT_USB_TASK";

private Context context;
private SelectedPrinterTaskCallbacks callback;
private DiscoveredPrinter selectedPrinter = null;

public ConnectToUSBPrinterTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
public GetUSBPrinterInfoTask(DiscoveredPrinter selectedPrinter, SelectedPrinterTaskCallbacks aCallback, Context aContext) {
this.context = aContext;
this.callback = aCallback;
this.selectedPrinter = selectedPrinter;
Expand Down

0 comments on commit 14708ad

Please sign in to comment.