summaryrefslogtreecommitdiff
path: root/android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java b/android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java
deleted file mode 100644
index 95228388d501..000000000000
--- a/android/sdremote/src/org/libreoffice/impressremote/util/BluetoothOperator.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-package org.libreoffice.impressremote.util;
-
-import android.bluetooth.BluetoothAdapter;
-
-public final class BluetoothOperator {
- private BluetoothOperator() {
- }
-
- public static boolean isAvailable() {
- return getAdapter() != null;
- }
-
- public static BluetoothAdapter getAdapter() {
- // TODO: should be acquired other way on Jelly Bean MR2
- // Look at the BluetoothAdapter’s docs for details.
- // It will require to use the latest version of SDK to get needed constant.
-
- return BluetoothAdapter.getDefaultAdapter();
- }
-
- public static void enable() {
- if (!isAvailable()) {
- return;
- }
-
- getAdapter().enable();
- }
-
- public static void disable() {
- if (!isAvailable()) {
- return;
- }
-
- getAdapter().disable();
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */