diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-10-18 19:50:26 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-10-18 19:51:40 +0100 |
commit | 6f2a127989c4284720b0970c93964b131ff0f7c4 (patch) | |
tree | 43be9796f2dd36666451ea53727e6055cbed00dc /android | |
parent | 5fdcc517b5b8a5865d5a1d88d930436461246d89 (diff) |
Add LibreOffice licence headers where currently missing.
Diffstat (limited to 'android')
16 files changed, 105 insertions, 13 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/AboutDialogBuilder.java b/android/sdremote/src/org/libreoffice/impressremote/AboutDialogBuilder.java index 7b6a31bcd7e6..3f1cd3a163ae 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/AboutDialogBuilder.java +++ b/android/sdremote/src/org/libreoffice/impressremote/AboutDialogBuilder.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import java.text.MessageFormat; @@ -49,3 +57,4 @@ public class AboutDialogBuilder extends AlertDialog.Builder { } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/ActivityChangeBroadcastProcessor.java b/android/sdremote/src/org/libreoffice/impressremote/ActivityChangeBroadcastProcessor.java index 3df8874984b8..2c70e173b3ef 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/ActivityChangeBroadcastProcessor.java +++ b/android/sdremote/src/org/libreoffice/impressremote/ActivityChangeBroadcastProcessor.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import org.libreoffice.impressremote.communication.CommunicationService; @@ -54,3 +62,4 @@ public class ActivityChangeBroadcastProcessor { } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java b/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java index 3760b22cb9d6..1bb2aa4803be 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java +++ b/android/sdremote/src/org/libreoffice/impressremote/BlankScreenFragment.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import org.libreoffice.impressremote.communication.CommunicationService; @@ -77,3 +85,4 @@ public class BlankScreenFragment extends SherlockFragment { mCommunicationService.getTransmitter().resume(); } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/PairingActivity.java b/android/sdremote/src/org/libreoffice/impressremote/PairingActivity.java index bf466f43cc9f..2ce2990e321d 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/PairingActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/PairingActivity.java @@ -64,3 +64,4 @@ public class PairingActivity extends SherlockActivity { }; } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java index a2765e40f344..bf04750ba49c 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import java.text.ParseException; @@ -534,3 +542,4 @@ public class PresentationActivity extends SherlockFragmentActivity { } }; } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java index fe510db4f8f7..779e395e639a 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java +++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import org.libreoffice.impressremote.communication.CommunicationService; @@ -276,8 +284,6 @@ public class PresentationFragment extends SherlockFragment { // ------------------------------------------------- THUMBNAIL ADAPTER ---- protected class ThumbnailAdapter extends AbstractCoverFlowImageAdapter { - private Context mContext; - private SlideShow mSlideShow; public ThumbnailAdapter(Context aContext, SlideShow aSlideShow) { @@ -313,3 +319,4 @@ public class PresentationFragment extends SherlockFragment { } } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java b/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java index f2930c0a5ead..21596c09fcff 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java @@ -381,4 +381,4 @@ public class SelectorActivity extends SherlockActivity { return super.onContextItemSelected(item); } } -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/SettingsActivity.java b/android/sdremote/src/org/libreoffice/impressremote/SettingsActivity.java index b11f789d020e..95ed9050bd26 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/SettingsActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/SettingsActivity.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import android.os.Bundle; @@ -8,7 +16,6 @@ public class SettingsActivity extends SherlockPreferenceActivity { // We use addPreferencesFromResource as we need sdk-9 compatibility // but build with sdk 15 - @SuppressWarnings("deprecation") @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub @@ -29,3 +36,4 @@ public class SettingsActivity extends SherlockPreferenceActivity { } } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/StartPresentationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/StartPresentationActivity.java index ab59946a6a96..0d89c843bef6 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/StartPresentationActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/StartPresentationActivity.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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; import org.libreoffice.impressremote.communication.CommunicationService; @@ -18,7 +26,6 @@ import com.actionbarsherlock.app.SherlockActivity; public class StartPresentationActivity extends SherlockActivity { private CommunicationService mCommunicationService = null; - private boolean mIsBound = false; private ActivityChangeBroadcastProcessor mBroadcastProcessor; /** Called when the activity is first created. */ @@ -29,7 +36,6 @@ public class StartPresentationActivity extends SherlockActivity { setContentView(R.layout.activity_startpresentation); bindService(new Intent(this, CommunicationService.class), mConnection, Context.BIND_IMPORTANT); - mIsBound = true; IntentFilter aFilter = new IntentFilter( CommunicationService.MSG_SLIDESHOW_STARTED); @@ -71,7 +77,6 @@ public class StartPresentationActivity extends SherlockActivity { @Override public void onServiceDisconnected(ComponentName aClassName) { mCommunicationService = null; - mIsBound = false; } }; @@ -93,3 +98,4 @@ public class StartPresentationActivity extends SherlockActivity { } }; } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java index f7846b01bfdd..a4fd1ef5345e 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java @@ -45,7 +45,6 @@ public class BluetoothClient extends Client { mSocket = aDevice.createRfcommSocketToServiceRecord(UUID .fromString("00001101-0000-1000-8000-00805F9B34FB")); mSocket.connect(); - // mSocket = aSocket; System.out.println("Connected"); mInputStream = mSocket.getInputStream(); @@ -74,7 +73,6 @@ public class BluetoothClient extends Client { if (mSocket != null) mSocket.close(); } catch (IOException e) { - // TODO Auto-generated catch block e.printStackTrace(); } } @@ -86,4 +84,4 @@ public class BluetoothClient extends Client { } } -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java index e55f2643cd47..c3a54afee066 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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.communication; import java.util.Collection; @@ -95,3 +103,4 @@ public class BluetoothFinder { }; } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java index aa1cd9d01d9b..b35e1e93de35 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java @@ -276,7 +276,8 @@ public class CommunicationService extends Service implements Runnable { SharedPreferences aPref = getSharedPreferences(SERVERSTORAGE_KEY, MODE_PRIVATE); - Map<String, String> aStoredMap = (Map<String, String>) aPref.getAll(); + @SuppressWarnings("unchecked") + Map<String, String> aStoredMap = (Map<String, String>) aPref.getAll(); for (Entry<String, String> aServerEntry : aStoredMap.entrySet()) { mManualServers.put(aServerEntry.getKey(), new Server( diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ReconnectionActivity.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ReconnectionActivity.java index ecc579ef468b..d519188364a9 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/ReconnectionActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/ReconnectionActivity.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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.communication; import org.libreoffice.impressremote.R; @@ -10,9 +18,9 @@ public class ReconnectionActivity extends SherlockActivity { @Override protected void onCreate(Bundle savedInstanceState) { - // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_reconnect); } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java index 08f973f87056..42d028bb1a05 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/Server.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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.communication; public class Server { @@ -46,3 +54,4 @@ public class Server { } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java index d9022ecb0738..70bfa60bebfd 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java @@ -1,3 +1,11 @@ +/* -*- Mode: C++; 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.communication; import java.io.IOException; @@ -177,3 +185,4 @@ public class ServerFinder { return mServerList.values(); } } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Transmitter.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Transmitter.java index 480324e64fb5..1c8ce9b9a4c1 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Transmitter.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/Transmitter.java @@ -66,4 +66,4 @@ public class Transmitter { mClient.sendCommand("presentation_stop\n\n"); } } -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |