From: masensio Date: Thu, 5 Mar 2015 11:36:30 +0000 (+0100) Subject: Add author's line in license X-Git-Tag: oc-android-1.7.1_signed^2~32^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/3d3046dc264792475c72987afc25beae23da4dc6 Add author's line in license --- diff --git a/owncloud-android-library b/owncloud-android-library index 942971a2..eca87d20 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit 942971a202f7404b135b26795c1b545c390a023f +Subproject commit eca87d20c74fee59eb9d27ec4a15d9fb2fa3c762 diff --git a/src/com/owncloud/android/MainApp.java b/src/com/owncloud/android/MainApp.java index 65e704be..f35e098a 100644 --- a/src/com/owncloud/android/MainApp.java +++ b/src/com/owncloud/android/MainApp.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -28,9 +31,6 @@ import com.owncloud.android.lib.common.utils.Log_OC; * * Contains methods to build the "static" strings. These strings were before constants in different * classes - * - * @author masensio - * @author David A. Velasco */ public class MainApp extends Application { diff --git a/src/com/owncloud/android/authentication/AccountAuthenticator.java b/src/com/owncloud/android/authentication/AccountAuthenticator.java index 1d52fd01..61f1e742 100644 --- a/src/com/owncloud/android/authentication/AccountAuthenticator.java +++ b/src/com/owncloud/android/authentication/AccountAuthenticator.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -38,9 +40,7 @@ import com.owncloud.android.lib.common.utils.Log_OC; * Controller class accessed from the system AccountManager, providing integration of ownCloud accounts with the Android system. * * TODO - better separation in operations for OAuth-capable and regular ownCloud accounts. - * TODO - review completeness - * - * @author David A. Velasco + * TODO - review completeness */ public class AccountAuthenticator extends AbstractAccountAuthenticator { @@ -122,39 +122,39 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator { return bundle; } - /** - * {@inheritDoc} - */ - @Override - public Bundle confirmCredentials(AccountAuthenticatorResponse response, - Account account, Bundle options) throws NetworkErrorException { - try { - validateAccountType(account.type); - } catch (AuthenticatorException e) { - Log_OC.e(TAG, "Failed to validate account type " + account.type + ": " - + e.getMessage()); - e.printStackTrace(); - return e.getFailureBundle(); - } - Intent intent = new Intent(mContext, AuthenticatorActivity.class); - intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, - response); - intent.putExtra(KEY_ACCOUNT, account); - intent.putExtra(KEY_LOGIN_OPTIONS, options); - - setIntentFlags(intent); - - Bundle resultBundle = new Bundle(); - resultBundle.putParcelable(AccountManager.KEY_INTENT, intent); - return resultBundle; - } - - @Override - public Bundle editProperties(AccountAuthenticatorResponse response, - String accountType) { - return null; - } - + /** + * {@inheritDoc} + */ + @Override + public Bundle confirmCredentials(AccountAuthenticatorResponse response, + Account account, Bundle options) throws NetworkErrorException { + try { + validateAccountType(account.type); + } catch (AuthenticatorException e) { + Log_OC.e(TAG, "Failed to validate account type " + account.type + ": " + + e.getMessage()); + e.printStackTrace(); + return e.getFailureBundle(); + } + Intent intent = new Intent(mContext, AuthenticatorActivity.class); + intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, + response); + intent.putExtra(KEY_ACCOUNT, account); + intent.putExtra(KEY_LOGIN_OPTIONS, options); + + setIntentFlags(intent); + + Bundle resultBundle = new Bundle(); + resultBundle.putParcelable(AccountManager.KEY_INTENT, intent); + return resultBundle; + } + + @Override + public Bundle editProperties(AccountAuthenticatorResponse response, + String accountType) { + return null; + } + /** * {@inheritDoc} */ @@ -253,69 +253,69 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator { } } - private void validateAuthTokenType(String authTokenType) - throws UnsupportedAuthTokenTypeException { - if (!authTokenType.equals(MainApp.getAuthTokenType()) && - !authTokenType.equals(AccountTypeUtils.getAuthTokenTypePass(MainApp.getAccountType())) && - !authTokenType.equals(AccountTypeUtils.getAuthTokenTypeAccessToken(MainApp.getAccountType())) && + private void validateAuthTokenType(String authTokenType) + throws UnsupportedAuthTokenTypeException { + if (!authTokenType.equals(MainApp.getAuthTokenType()) && + !authTokenType.equals(AccountTypeUtils.getAuthTokenTypePass(MainApp.getAccountType())) && + !authTokenType.equals(AccountTypeUtils.getAuthTokenTypeAccessToken(MainApp.getAccountType())) && !authTokenType.equals(AccountTypeUtils.getAuthTokenTypeRefreshToken(MainApp.getAccountType())) && - !authTokenType.equals(AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(MainApp.getAccountType()))) { - throw new UnsupportedAuthTokenTypeException(); - } - } - - public static class AuthenticatorException extends Exception { - private static final long serialVersionUID = 1L; - private Bundle mFailureBundle; - - public AuthenticatorException(int code, String errorMsg) { - mFailureBundle = new Bundle(); - mFailureBundle.putInt(AccountManager.KEY_ERROR_CODE, code); - mFailureBundle - .putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); - } - - public Bundle getFailureBundle() { - return mFailureBundle; - } - } - - public static class UnsupportedAccountTypeException extends - AuthenticatorException { - private static final long serialVersionUID = 1L; - - public UnsupportedAccountTypeException() { - super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, - "Unsupported account type"); - } - } - - public static class UnsupportedAuthTokenTypeException extends - AuthenticatorException { - private static final long serialVersionUID = 1L; - - public UnsupportedAuthTokenTypeException() { - super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, - "Unsupported auth token type"); - } - } - - public static class UnsupportedFeaturesException extends - AuthenticatorException { - public static final long serialVersionUID = 1L; - - public UnsupportedFeaturesException() { - super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, - "Unsupported features"); - } - } - - public static class AccessDeniedException extends AuthenticatorException { - public AccessDeniedException(int code, String errorMsg) { - super(AccountManager.ERROR_CODE_INVALID_RESPONSE, "Access Denied"); - } - - private static final long serialVersionUID = 1L; - - } -} + !authTokenType.equals(AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(MainApp.getAccountType()))) { + throw new UnsupportedAuthTokenTypeException(); + } + } + + public static class AuthenticatorException extends Exception { + private static final long serialVersionUID = 1L; + private Bundle mFailureBundle; + + public AuthenticatorException(int code, String errorMsg) { + mFailureBundle = new Bundle(); + mFailureBundle.putInt(AccountManager.KEY_ERROR_CODE, code); + mFailureBundle + .putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); + } + + public Bundle getFailureBundle() { + return mFailureBundle; + } + } + + public static class UnsupportedAccountTypeException extends + AuthenticatorException { + private static final long serialVersionUID = 1L; + + public UnsupportedAccountTypeException() { + super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, + "Unsupported account type"); + } + } + + public static class UnsupportedAuthTokenTypeException extends + AuthenticatorException { + private static final long serialVersionUID = 1L; + + public UnsupportedAuthTokenTypeException() { + super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, + "Unsupported auth token type"); + } + } + + public static class UnsupportedFeaturesException extends + AuthenticatorException { + public static final long serialVersionUID = 1L; + + public UnsupportedFeaturesException() { + super(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, + "Unsupported features"); + } + } + + public static class AccessDeniedException extends AuthenticatorException { + public AccessDeniedException(int code, String errorMsg) { + super(AccountManager.ERROR_CODE_INVALID_RESPONSE, "Access Denied"); + } + + private static final long serialVersionUID = 1L; + + } +} diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index d88d778b..a0c44337 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -1,4 +1,8 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco + * @author masensio * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -91,10 +95,6 @@ import com.owncloud.android.utils.DisplayUtils; /** * This Activity is used to add an ownCloud account to the App - * - * @author Bartek Przybylski - * @author David A. Velasco - * @author masensio */ public class AuthenticatorActivity extends AccountAuthenticatorActivity implements OnRemoteOperationListener, OnFocusChangeListener, OnEditorActionListener, diff --git a/src/com/owncloud/android/authentication/AuthenticatorAsyncTask.java b/src/com/owncloud/android/authentication/AuthenticatorAsyncTask.java index e995c006..526ead17 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorAsyncTask.java +++ b/src/com/owncloud/android/authentication/AuthenticatorAsyncTask.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio on 09/02/2015. * Copyright (C) 2012-2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -32,8 +34,6 @@ import java.lang.ref.WeakReference; /** * Async Task to verify the credentials of a user - * - * @author masensio on 09/02/2015. */ public class AuthenticatorAsyncTask extends AsyncTask { diff --git a/src/com/owncloud/android/authentication/OAuth2Constants.java b/src/com/owncloud/android/authentication/OAuth2Constants.java index f96b6278..e2128831 100644 --- a/src/com/owncloud/android/authentication/OAuth2Constants.java +++ b/src/com/owncloud/android/authentication/OAuth2Constants.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -21,8 +23,6 @@ package com.owncloud.android.authentication; * Constant values for OAuth 2 protocol. * * Includes required and optional parameter NAMES used in the 'authorization code' grant type. - * - * @author David A. Velasco */ public class OAuth2Constants { diff --git a/src/com/owncloud/android/authentication/SsoWebViewClient.java b/src/com/owncloud/android/authentication/SsoWebViewClient.java index 2aaecb43..53ddd986 100644 --- a/src/com/owncloud/android/authentication/SsoWebViewClient.java +++ b/src/com/owncloud/android/authentication/SsoWebViewClient.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -50,8 +52,6 @@ import android.webkit.WebViewClient; * * Assumes that the single-sign-on is kept thanks to a cookie set at the end of the * authentication process. - * - * @author David A. Velasco */ public class SsoWebViewClient extends WebViewClient { diff --git a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 3cd9b3f8..05d9fe99 100644 --- a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * @author Tobias Kaminsky + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -49,10 +51,7 @@ import com.owncloud.android.utils.BitmapUtils; import com.owncloud.android.utils.DisplayUtils; /** - * Manager for concurrent access to thumbnails cache. - * - * @author Tobias Kaminsky - * @author David A. Velasco + * Manager for concurrent access to thumbnails cache. */ public class ThumbnailsCacheManager { diff --git a/src/com/owncloud/android/db/DbHandler.java b/src/com/owncloud/android/db/DbHandler.java index 3682a7b2..7e2573c3 100644 --- a/src/com/owncloud/android/db/DbHandler.java +++ b/src/com/owncloud/android/db/DbHandler.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2011-2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -28,9 +30,6 @@ import android.database.sqlite.SQLiteOpenHelper; /** * Custom database helper for ownCloud - * - * @author Bartek Przybylski - * */ public class DbHandler { private SQLiteDatabase mDB; diff --git a/src/com/owncloud/android/db/ProviderMeta.java b/src/com/owncloud/android/db/ProviderMeta.java index b6bfe4a8..2f90317a 100644 --- a/src/com/owncloud/android/db/ProviderMeta.java +++ b/src/com/owncloud/android/db/ProviderMeta.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -24,9 +26,6 @@ import com.owncloud.android.MainApp; /** * Meta-Class that holds various static field information - * - * @author Bartek Przybylski - * */ public class ProviderMeta { diff --git a/src/com/owncloud/android/files/BootupBroadcastReceiver.java b/src/com/owncloud/android/files/BootupBroadcastReceiver.java index 4e139aeb..5548e2ea 100644 --- a/src/com/owncloud/android/files/BootupBroadcastReceiver.java +++ b/src/com/owncloud/android/files/BootupBroadcastReceiver.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -29,8 +31,6 @@ import android.content.Intent; /** * App-registered receiver catching the broadcast intent reporting that the system was * just boot up. - * - * @author David A. Velasco */ public class BootupBroadcastReceiver extends BroadcastReceiver { diff --git a/src/com/owncloud/android/files/FileMenuFilter.java b/src/com/owncloud/android/files/FileMenuFilter.java index 89b00dc6..78d5e4cd 100644 --- a/src/com/owncloud/android/files/FileMenuFilter.java +++ b/src/com/owncloud/android/files/FileMenuFilter.java @@ -1,4 +1,5 @@ /* ownCloud Android client application + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -38,8 +39,6 @@ import com.owncloud.android.ui.activity.ComponentsGetter; /** * Filters out the file actions available in a given {@link Menu} for a given {@link OCFile} * according to the current state of the latest. - * - * @author David A. Velasco */ public class FileMenuFilter { diff --git a/src/com/owncloud/android/files/FileOperationsHelper.java b/src/com/owncloud/android/files/FileOperationsHelper.java index cf9f4749..5ed2bb14 100644 --- a/src/com/owncloud/android/files/FileOperationsHelper.java +++ b/src/com/owncloud/android/files/FileOperationsHelper.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -41,9 +44,7 @@ import com.owncloud.android.ui.activity.FileActivity; import com.owncloud.android.ui.dialog.ShareLinkToDialog; /** - * - * @author masensio - * @author David A. Velasco + * */ public class FileOperationsHelper { diff --git a/src/com/owncloud/android/files/services/IndexedForest.java b/src/com/owncloud/android/files/services/IndexedForest.java index c40cece3..c0bd6e3f 100644 --- a/src/com/owncloud/android/files/services/IndexedForest.java +++ b/src/com/owncloud/android/files/services/IndexedForest.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -36,8 +38,6 @@ import java.util.concurrent.ConcurrentMap; * A map provides the indexation based in hashing. * * A tree is created per account. - * - * @author David A. Velasco */ public class IndexedForest { diff --git a/src/com/owncloud/android/media/MediaControlView.java b/src/com/owncloud/android/media/MediaControlView.java index b257bd37..0d3587fe 100644 --- a/src/com/owncloud/android/media/MediaControlView.java +++ b/src/com/owncloud/android/media/MediaControlView.java @@ -1,5 +1,6 @@ /* ownCloud Android client application - * + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -51,8 +52,6 @@ import com.owncloud.android.R; * * It synchronizes itself with the state of the * {@link MediaPlayer}. - * - * @author David A. Velasco */ public class MediaControlView extends FrameLayout /* implements OnLayoutChangeListener, OnTouchListener */ implements OnClickListener, OnSeekBarChangeListener { diff --git a/src/com/owncloud/android/media/MediaService.java b/src/com/owncloud/android/media/MediaService.java index 52daa04c..102968c7 100644 --- a/src/com/owncloud/android/media/MediaService.java +++ b/src/com/owncloud/android/media/MediaService.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -49,8 +51,6 @@ import com.owncloud.android.ui.activity.FileDisplayActivity; * * Waits for Intents which signal the service to perform specific operations: Play, Pause, * Rewind, etc. - * - * @author David A. Velasco */ public class MediaService extends Service implements OnCompletionListener, OnPreparedListener, OnErrorListener, AudioManager.OnAudioFocusChangeListener { diff --git a/src/com/owncloud/android/media/MediaServiceBinder.java b/src/com/owncloud/android/media/MediaServiceBinder.java index 1b56ec01..cf03838b 100644 --- a/src/com/owncloud/android/media/MediaServiceBinder.java +++ b/src/com/owncloud/android/media/MediaServiceBinder.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -34,8 +36,6 @@ import android.widget.MediaController; * * Provides the operations of {@link MediaController.MediaPlayerControl}, and an extra method to check if * an {@link OCFile} instance is handled by the MediaService. - * - * @author David A. Velasco */ public class MediaServiceBinder extends Binder implements MediaController.MediaPlayerControl { diff --git a/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java b/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java index 63ddf635..3aa30d0a 100644 --- a/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java +++ b/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -31,8 +33,6 @@ import android.widget.RemoteViews; * a progress bar is available in every Android version, because * {@link NotificationCompat.Builder#setProgress(int, int, boolean)} has no * real effect for Android < 4.0 - * - * @author David A. Velasco */ public class NotificationBuilderWithProgressBar extends NotificationCompat.Builder { diff --git a/src/com/owncloud/android/operations/CreateFolderOperation.java b/src/com/owncloud/android/operations/CreateFolderOperation.java index 4df8b3df..15f83b3f 100644 --- a/src/com/owncloud/android/operations/CreateFolderOperation.java +++ b/src/com/owncloud/android/operations/CreateFolderOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -31,9 +34,6 @@ import com.owncloud.android.utils.FileStorageUtils; /** * Access to remote operation performing the creation of a new folder in the ownCloud server. * Save the new folder in Database - * - * @author David A. Velasco - * @author masensio */ public class CreateFolderOperation extends SyncOperation implements OnRemoteOperationListener{ diff --git a/src/com/owncloud/android/operations/CreateShareOperation.java b/src/com/owncloud/android/operations/CreateShareOperation.java index 6d9a253c..4394b18d 100644 --- a/src/com/owncloud/android/operations/CreateShareOperation.java +++ b/src/com/owncloud/android/operations/CreateShareOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -19,9 +21,6 @@ package com.owncloud.android.operations; /** * Creates a new share from a given file - * - * @author masensio - * */ import android.content.Context; diff --git a/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java b/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java index 5afc4210..39881153 100644 --- a/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java +++ b/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java @@ -1,24 +1,19 @@ -/* ownCloud Android Library is available under MIT license +/* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * */ @@ -47,9 +42,7 @@ import android.net.Uri; * When successful, the instance of {@link RemoteOperationResult} passed * through {@link OnRemoteOperationListener#onRemoteOperationFinish(RemoteOperation, * RemoteOperationResult)} returns in {@link RemoteOperationResult#getData()} - * a value of {@link AuthenticationMethod}. - * - * @author David A. Velasco + * a value of {@link AuthenticationMethod}. */ public class DetectAuthenticationMethodOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/DownloadFileOperation.java b/src/com/owncloud/android/operations/DownloadFileOperation.java index f6bee5d4..8ac824a4 100644 --- a/src/com/owncloud/android/operations/DownloadFileOperation.java +++ b/src/com/owncloud/android/operations/DownloadFileOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -38,9 +41,6 @@ import android.webkit.MimeTypeMap; /** * Remote mDownloadOperation performing the download of a file to an ownCloud server - * - * @author David A. Velasco - * @author masensio */ public class DownloadFileOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/GetServerInfoOperation.java b/src/com/owncloud/android/operations/GetServerInfoOperation.java index 9b7cf872..9194c1fa 100644 --- a/src/com/owncloud/android/operations/GetServerInfoOperation.java +++ b/src/com/owncloud/android/operations/GetServerInfoOperation.java @@ -1,24 +1,20 @@ -/* ownCloud Android Library is available under MIT license +/* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2014 ownCloud Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * */ @@ -43,9 +39,6 @@ import android.content.Context; * * Checks the existence of a configured ownCloud server in the URL, gets its version * and finds out what authentication method is needed to access files in it. - * - * @author David A. Velasco - * @author masensio */ public class GetServerInfoOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/GetSharesForFileOperation.java b/src/com/owncloud/android/operations/GetSharesForFileOperation.java index 649437d2..6531dfca 100644 --- a/src/com/owncloud/android/operations/GetSharesForFileOperation.java +++ b/src/com/owncloud/android/operations/GetSharesForFileOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -28,10 +30,7 @@ import com.owncloud.android.lib.resources.shares.GetRemoteSharesForFileOperation import com.owncloud.android.operations.common.SyncOperation; /** - * Provide a list shares for a specific file. - * - * @author masensio - * + * Provide a list shares for a specific file. */ public class GetSharesForFileOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/GetSharesOperation.java b/src/com/owncloud/android/operations/GetSharesOperation.java index d096788a..7ca716b8 100644 --- a/src/com/owncloud/android/operations/GetSharesOperation.java +++ b/src/com/owncloud/android/operations/GetSharesOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -29,9 +32,6 @@ import com.owncloud.android.operations.common.SyncOperation; /** * Access to remote operation to get the share files/folders * Save the data in Database - * - * @author masensio - * @author David A. Velasco */ public class GetSharesOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/MoveFileOperation.java b/src/com/owncloud/android/operations/MoveFileOperation.java index 63856c37..d354454f 100644 --- a/src/com/owncloud/android/operations/MoveFileOperation.java +++ b/src/com/owncloud/android/operations/MoveFileOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -29,8 +31,6 @@ import android.accounts.Account; /** * Operation mmoving an {@link OCFile} to a different folder. - * - * @author David A. Velasco */ public class MoveFileOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/RefreshFolderOperation.java b/src/com/owncloud/android/operations/RefreshFolderOperation.java index 53717893..a690a939 100644 --- a/src/com/owncloud/android/operations/RefreshFolderOperation.java +++ b/src/com/owncloud/android/operations/RefreshFolderOperation.java @@ -1,4 +1,5 @@ /* ownCloud Android client application + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -64,8 +65,6 @@ import com.owncloud.android.utils.FileStorageUtils; * properties, and updates the local database with them. * * Does NOT enter in the child folders to synchronize their contents also. - * - * @author David A. Velasco */ public class RefreshFolderOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/RemoveFileOperation.java b/src/com/owncloud/android/operations/RemoveFileOperation.java index 6bd4e8a0..8173f256 100644 --- a/src/com/owncloud/android/operations/RemoveFileOperation.java +++ b/src/com/owncloud/android/operations/RemoveFileOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -27,9 +30,6 @@ import com.owncloud.android.operations.common.SyncOperation; /** * Remote operation performing the removal of a remote file or folder in the ownCloud server. - * - * @author David A. Velasco - * @author masensio */ public class RemoveFileOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/RenameFileOperation.java b/src/com/owncloud/android/operations/RenameFileOperation.java index aa986079..fa6323a9 100644 --- a/src/com/owncloud/android/operations/RenameFileOperation.java +++ b/src/com/owncloud/android/operations/RenameFileOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -32,9 +35,6 @@ import com.owncloud.android.utils.FileStorageUtils; /** * Remote operation performing the rename of a remote file (or folder?) in the ownCloud server. - * - * @author David A. Velasco - * @author masensio */ public class RenameFileOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/SynchronizeFileOperation.java b/src/com/owncloud/android/operations/SynchronizeFileOperation.java index 72cb22be..4bdf03a5 100644 --- a/src/com/owncloud/android/operations/SynchronizeFileOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFileOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2014 ownCloud Inc. * @@ -36,9 +39,6 @@ import android.content.Intent; /** * Remote operation performing the read of remote file in the ownCloud server. - * - * @author David A. Velasco - * @author masensio */ public class SynchronizeFileOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java index 06760e85..2ac6990c 100644 --- a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -56,8 +58,6 @@ import java.util.concurrent.atomic.AtomicBoolean; * properties, and updates the local database with them. * * Does NOT enter in the child folders to synchronize their contents also. - * - * @author David A. Velasco */ public class SynchronizeFolderOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/UnshareLinkOperation.java b/src/com/owncloud/android/operations/UnshareLinkOperation.java index c08c8e56..b8871587 100644 --- a/src/com/owncloud/android/operations/UnshareLinkOperation.java +++ b/src/com/owncloud/android/operations/UnshareLinkOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -35,8 +37,6 @@ import com.owncloud.android.operations.common.SyncOperation; /** * Unshare file/folder * Save the data in Database - * - * @author masensio */ public class UnshareLinkOperation extends SyncOperation { diff --git a/src/com/owncloud/android/operations/UpdateOCVersionOperation.java b/src/com/owncloud/android/operations/UpdateOCVersionOperation.java index ac73d966..278f7783 100644 --- a/src/com/owncloud/android/operations/UpdateOCVersionOperation.java +++ b/src/com/owncloud/android/operations/UpdateOCVersionOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -38,8 +40,6 @@ import android.content.Context; /** * Remote operation that checks the version of an ownCloud server and stores it locally - * - * @author David A. Velasco */ public class UpdateOCVersionOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/UploadFileOperation.java b/src/com/owncloud/android/operations/UploadFileOperation.java index bf0d0601..7a731182 100644 --- a/src/com/owncloud/android/operations/UploadFileOperation.java +++ b/src/com/owncloud/android/operations/UploadFileOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -56,8 +58,6 @@ import com.owncloud.android.utils.UriUtils; /** * Remote operation performing the upload of a file to an ownCloud server - * - * @author David A. Velasco */ public class UploadFileOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/operations/common/SyncOperation.java b/src/com/owncloud/android/operations/common/SyncOperation.java index 8c5678b1..a9f89d41 100644 --- a/src/com/owncloud/android/operations/common/SyncOperation.java +++ b/src/com/owncloud/android/operations/common/SyncOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -32,8 +34,6 @@ import android.os.Handler; * with local data in the device. * * Provides methods to execute the operation both synchronously or asynchronously. - * - * @author David A. Velasco */ public abstract class SyncOperation extends RemoteOperation { diff --git a/src/com/owncloud/android/providers/FileContentProvider.java b/src/com/owncloud/android/providers/FileContentProvider.java index 4ea4812c..18ab7eaf 100644 --- a/src/com/owncloud/android/providers/FileContentProvider.java +++ b/src/com/owncloud/android/providers/FileContentProvider.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -45,10 +48,6 @@ import android.text.TextUtils; /** * The ContentProvider for the ownCloud App. - * - * @author Bartek Przybylski - * @author David A. Velasco - * */ public class FileContentProvider extends ContentProvider { diff --git a/src/com/owncloud/android/services/observer/FileObserverService.java b/src/com/owncloud/android/services/observer/FileObserverService.java index 114f0e42..ed6af6f2 100644 --- a/src/com/owncloud/android/services/observer/FileObserverService.java +++ b/src/com/owncloud/android/services/observer/FileObserverService.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2014 ownCloud Inc. * @@ -54,8 +56,6 @@ import com.owncloud.android.utils.FileStorageUtils; * memory. To minimize the impact of this, the service always returns * Service.START_STICKY, and the later restart of the service is explicitly * considered in {@link FileObserverService#onStartCommand(Intent, int, int)}. - * - * @author David A. Velasco */ public class FileObserverService extends Service { diff --git a/src/com/owncloud/android/services/observer/FolderObserver.java b/src/com/owncloud/android/services/observer/FolderObserver.java index 67b41a13..686eb653 100644 --- a/src/com/owncloud/android/services/observer/FolderObserver.java +++ b/src/com/owncloud/android/services/observer/FolderObserver.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -46,8 +48,6 @@ import com.owncloud.android.ui.activity.ConflictsResolveActivity; * The second case requires to monitor the folder parent of the files, since a direct * {@link FileObserver} on it will not receive more events after the file is deleted to * be replaced. - * - * @author David A. Velasco */ public class FolderObserver extends FileObserver { diff --git a/src/com/owncloud/android/syncadapter/AbstractOwnCloudSyncAdapter.java b/src/com/owncloud/android/syncadapter/AbstractOwnCloudSyncAdapter.java index 28cfa54c..77a7c361 100644 --- a/src/com/owncloud/android/syncadapter/AbstractOwnCloudSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/AbstractOwnCloudSyncAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author sassman + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -44,9 +47,6 @@ import android.content.Context; * resource types, like FileSync, ConcatsSync, CalendarSync, etc.. * * Implements the standard {@link AbstractThreadedSyncAdapter}. - * - * @author sassman - * @author David A. Velasco */ public abstract class AbstractOwnCloudSyncAdapter extends AbstractThreadedSyncAdapter { diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index 46838969..5b7d0de8 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -55,9 +58,6 @@ import android.support.v4.app.NotificationCompat; * ownCloud files. * * Performs a full synchronization of the account recieved in {@link #onPerformSync(Account, Bundle, String, ContentProviderClient, SyncResult)}. - * - * @author Bartek Przybylski - * @author David A. Velasco */ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { diff --git a/src/com/owncloud/android/syncadapter/FileSyncService.java b/src/com/owncloud/android/syncadapter/FileSyncService.java index 5da8c24c..a3a779ad 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncService.java +++ b/src/com/owncloud/android/syncadapter/FileSyncService.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -24,10 +27,7 @@ import android.os.IBinder; /** * Background service for synchronizing remote files with their local state. * - * Serves as a connector to an instance of {@link FileSyncAdapter}, as required by standard Android APIs. - * - * @author Bartek Przybylski - * @author David A. Velasco + * Serves as a connector to an instance of {@link FileSyncAdapter}, as required by standard Android APIs. */ public class FileSyncService extends Service { diff --git a/src/com/owncloud/android/ui/ActionItem.java b/src/com/owncloud/android/ui/ActionItem.java index a65f3ad0..d1f74499 100644 --- a/src/com/owncloud/android/ui/ActionItem.java +++ b/src/com/owncloud/android/ui/ActionItem.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -22,9 +24,6 @@ import android.view.View.OnClickListener; /** * Represents an Item on the ActionBar. - * - * @author Bartek Przybylski - * */ public class ActionItem { private Drawable mIcon; diff --git a/src/com/owncloud/android/ui/CustomPopup.java b/src/com/owncloud/android/ui/CustomPopup.java index fccf56d2..d0382275 100644 --- a/src/com/owncloud/android/ui/CustomPopup.java +++ b/src/com/owncloud/android/ui/CustomPopup.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Lorensius. W. T * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -32,9 +34,6 @@ import android.widget.PopupWindow; /** * Represents a custom PopupWindows - * - * @author Lorensius. W. T - * */ public class CustomPopup { protected final View mAnchor; diff --git a/src/com/owncloud/android/ui/ExtendedListView.java b/src/com/owncloud/android/ui/ExtendedListView.java index 20bf66f2..72615619 100644 --- a/src/com/owncloud/android/ui/ExtendedListView.java +++ b/src/com/owncloud/android/ui/ExtendedListView.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -28,9 +30,7 @@ import com.owncloud.android.lib.common.utils.Log_OC; /** * ListView allowing to specify the position of an item that should be centered in the visible area, if possible. * - * The cleanest way I found to overcome the problem due to getHeight() returns 0 until the view is really drawn. - * - * @author David A. Velasco + * The cleanest way I found to overcome the problem due to getHeight() returns 0 until the view is really drawn. */ public class ExtendedListView extends ListView { diff --git a/src/com/owncloud/android/ui/QuickAction.java b/src/com/owncloud/android/ui/QuickAction.java index 86fe3fe3..80c624b3 100644 --- a/src/com/owncloud/android/ui/QuickAction.java +++ b/src/com/owncloud/android/ui/QuickAction.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Lorensius. W. T * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -42,8 +44,6 @@ import com.owncloud.android.R; /** * Popup window, shows action list as icon and text like the one in Gallery3D * app. - * - * @author Lorensius. W. T */ public class QuickAction extends CustomPopup { private final View root; diff --git a/src/com/owncloud/android/ui/activity/ConflictsResolveActivity.java b/src/com/owncloud/android/ui/activity/ConflictsResolveActivity.java index 509e5c79..33cfe3ec 100644 --- a/src/com/owncloud/android/ui/activity/ConflictsResolveActivity.java +++ b/src/com/owncloud/android/ui/activity/ConflictsResolveActivity.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -32,10 +35,7 @@ import android.os.Bundle; /** * Wrapper activity which will be launched if keep-in-sync file will be modified by external - * application. - * - * @author Bartek Przybylski - * @author David A. Velasco + * application. */ public class ConflictsResolveActivity extends FileActivity implements OnConflictDecisionMadeListener { diff --git a/src/com/owncloud/android/ui/activity/CopyToClipboardActivity.java b/src/com/owncloud/android/ui/activity/CopyToClipboardActivity.java index b503c379..80d9c967 100644 --- a/src/com/owncloud/android/ui/activity/CopyToClipboardActivity.java +++ b/src/com/owncloud/android/ui/activity/CopyToClipboardActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -28,8 +30,6 @@ import android.widget.Toast; /** * Activity copying the text of the received Intent into the system clibpoard. - * - * @author David A. Velasco */ @SuppressWarnings("deprecation") public class CopyToClipboardActivity extends Activity { diff --git a/src/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java b/src/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java index bffec8b4..7f2df8c7 100644 --- a/src/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java +++ b/src/com/owncloud/android/ui/activity/ErrorsWhileCopyingHandlerActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -57,8 +59,6 @@ import com.owncloud.android.utils.FileStorageUtils; * files. * * Shown when the error notification summarizing the list of errors is clicked by the user. - * - * @author David A. Velasco */ public class ErrorsWhileCopyingHandlerActivity extends SherlockFragmentActivity implements OnClickListener { @@ -129,9 +129,7 @@ public class ErrorsWhileCopyingHandlerActivity extends SherlockFragmentActivity /** * Customized adapter, showing the local files as main text in two-lines list item and the remote files - * as the secondary text. - * - * @author David A. Velasco + * as the secondary text. */ public class ErrorsWhileCopyingListAdapter extends ArrayAdapter { @@ -200,8 +198,6 @@ public class ErrorsWhileCopyingHandlerActivity extends SherlockFragmentActivity /** * Asynchronous task performing the move of all the local files to the ownCloud folder. - * - * @author David A. Velasco */ private class MoveFilesTask extends AsyncTask { diff --git a/src/com/owncloud/android/ui/activity/FileActivity.java b/src/com/owncloud/android/ui/activity/FileActivity.java index 97c5606e..823a410a 100644 --- a/src/com/owncloud/android/ui/activity/FileActivity.java +++ b/src/com/owncloud/android/ui/activity/FileActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -64,8 +66,6 @@ import com.owncloud.android.utils.ErrorMessageAdapter; /** * Activity with common behaviour for activities handling {@link OCFile}s in ownCloud {@link Account}s . - * - * @author David A. Velasco */ public class FileActivity extends SherlockFragmentActivity implements OnRemoteOperationListener, ComponentsGetter { @@ -360,8 +360,6 @@ public class FileActivity extends SherlockFragmentActivity * a new ownCloud {@link Account} finished, successfully or not. * * At this moment, only called after the creation of the first account. - * - * @author David A. Velasco */ public class AccountCreationCallback implements AccountManagerCallback { diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 7b8af0f8..1fadd681 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -114,9 +117,6 @@ import com.owncloud.android.utils.UriUtils; /** * Displays, what files the user has available in his ownCloud. - * - * @author Bartek Przybylski - * @author David A. Velasco */ public class FileDisplayActivity extends HookActivity implements diff --git a/src/com/owncloud/android/ui/activity/GenericExplanationActivity.java b/src/com/owncloud/android/ui/activity/GenericExplanationActivity.java index 901434e2..0bd3754f 100644 --- a/src/com/owncloud/android/ui/activity/GenericExplanationActivity.java +++ b/src/com/owncloud/android/ui/activity/GenericExplanationActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -41,8 +43,6 @@ import com.owncloud.android.utils.DisplayUtils; * * Added to show explanations for notifications when the user clicks on them, and there no place * better to show them. - * - * @author David A. Velasco */ public class GenericExplanationActivity extends SherlockFragmentActivity { diff --git a/src/com/owncloud/android/ui/activity/Preferences.java b/src/com/owncloud/android/ui/activity/Preferences.java index 4fafb480..f3f470eb 100644 --- a/src/com/owncloud/android/ui/activity/Preferences.java +++ b/src/com/owncloud/android/ui/activity/Preferences.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -70,9 +73,6 @@ import java.io.File; /** * An Activity that allows the user to change the application's settings. - * - * @author Bartek Przybylski - * @author David A. Velasco */ public class Preferences extends SherlockPreferenceActivity implements AccountManagerCallback, ComponentsGetter { diff --git a/src/com/owncloud/android/ui/activity/UploadFilesActivity.java b/src/com/owncloud/android/ui/activity/UploadFilesActivity.java index 09185726..af5b59cb 100644 --- a/src/com/owncloud/android/ui/activity/UploadFilesActivity.java +++ b/src/com/owncloud/android/ui/activity/UploadFilesActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -48,9 +50,6 @@ import com.owncloud.android.utils.FileStorageUtils; /** * Displays local files and let the user choose what of them wants to upload * to the current ownCloud account - * - * @author David A. Velasco - * */ public class UploadFilesActivity extends FileActivity implements @@ -289,8 +288,6 @@ public class UploadFilesActivity extends FileActivity implements * to upload into the ownCloud local folder. * * Maybe an AsyncTask is not strictly necessary, but who really knows. - * - * @author David A. Velasco */ private class CheckAvailableSpaceTask extends AsyncTask { diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index 6c8a1320..f7df49ea 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -69,9 +71,6 @@ import com.owncloud.android.utils.DisplayUtils; /** * This can be used to upload things to an ownCloud instance. - * - * @author Bartek Przybylski - * */ public class Uploader extends SherlockListActivity implements OnItemClickListener, android.view.View.OnClickListener { private static final String TAG = "ownCloudUploader"; diff --git a/src/com/owncloud/android/ui/adapter/CertificateCombinedExceptionViewAdapter.java b/src/com/owncloud/android/ui/adapter/CertificateCombinedExceptionViewAdapter.java index b1c32634..773f09ba 100644 --- a/src/com/owncloud/android/ui/adapter/CertificateCombinedExceptionViewAdapter.java +++ b/src/com/owncloud/android/ui/adapter/CertificateCombinedExceptionViewAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -25,9 +28,6 @@ import android.widget.TextView; /** * TODO - * - * @author masensio - * @author David A. Velasco * */ public class CertificateCombinedExceptionViewAdapter implements SslUntrustedCertDialog.ErrorViewAdapter { diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index dcd4d70c..83a9559d 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -1,4 +1,8 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author Tobias Kaminsky + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2015 ownCloud Inc. * @@ -53,10 +57,6 @@ import com.owncloud.android.utils.FileStorageUtils; /** * This Adapter populates a ListView with all files and folders in an ownCloud * instance. - * - * @author Bartek Przybylski - * @author Tobias Kaminsky - * @author David A. Velasco */ public class FileListListAdapter extends BaseAdapter implements ListAdapter { private final static String PERMISSION_SHARED_WITH_ME = "S"; diff --git a/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java b/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java index b61d3bf9..1c6e29b9 100644 --- a/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2014 ownCloud Inc. * @@ -42,9 +44,6 @@ import third_parties.in.srain.cube.GridViewWithHeaderAndFooter; /** * This Adapter populates a ListView with all files and directories contained * in a local directory - * - * @author David A. Velasco - * */ public class LocalFileListAdapter extends BaseAdapter implements ListAdapter { diff --git a/src/com/owncloud/android/ui/adapter/SslCertificateViewAdapter.java b/src/com/owncloud/android/ui/adapter/SslCertificateViewAdapter.java index a944eadb..ada05197 100644 --- a/src/com/owncloud/android/ui/adapter/SslCertificateViewAdapter.java +++ b/src/com/owncloud/android/ui/adapter/SslCertificateViewAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -27,9 +30,6 @@ import android.widget.TextView; /** * TODO - * - * @author masensio - * @author David A. Velasco */ public class SslCertificateViewAdapter implements SslUntrustedCertDialog.CertificateViewAdapter { diff --git a/src/com/owncloud/android/ui/adapter/SslErrorViewAdapter.java b/src/com/owncloud/android/ui/adapter/SslErrorViewAdapter.java index 7d2e291b..b0a252e7 100644 --- a/src/com/owncloud/android/ui/adapter/SslErrorViewAdapter.java +++ b/src/com/owncloud/android/ui/adapter/SslErrorViewAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -24,10 +27,6 @@ import android.widget.TextView; /** * Dialog to show an Untrusted Certificate - * - * @author masensio - * @author David A. Velasco - * */ public class SslErrorViewAdapter implements SslUntrustedCertDialog.ErrorViewAdapter { diff --git a/src/com/owncloud/android/ui/adapter/X509CertificateViewAdapter.java b/src/com/owncloud/android/ui/adapter/X509CertificateViewAdapter.java index a290dca2..17bf9e4e 100644 --- a/src/com/owncloud/android/ui/adapter/X509CertificateViewAdapter.java +++ b/src/com/owncloud/android/ui/adapter/X509CertificateViewAdapter.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -31,9 +34,6 @@ import android.view.View; import android.widget.TextView; /** - * - * @author masensio - * @author David A. Velasco * */ public class X509CertificateViewAdapter implements SslUntrustedCertDialog.CertificateViewAdapter { diff --git a/src/com/owncloud/android/ui/dialog/ConflictsResolveDialog.java b/src/com/owncloud/android/ui/dialog/ConflictsResolveDialog.java index 91cfbfde..e7bd5f2a 100644 --- a/src/com/owncloud/android/ui/dialog/ConflictsResolveDialog.java +++ b/src/com/owncloud/android/ui/dialog/ConflictsResolveDialog.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2012 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -33,9 +35,6 @@ import com.owncloud.android.utils.DisplayUtils; /** * Dialog which will be displayed to user upon keep-in-sync file conflict. - * - * @author Bartek Przybylski - * */ public class ConflictsResolveDialog extends SherlockDialogFragment { diff --git a/src/com/owncloud/android/ui/dialog/CreateFolderDialogFragment.java b/src/com/owncloud/android/ui/dialog/CreateFolderDialogFragment.java index 29b3be28..501f752d 100644 --- a/src/com/owncloud/android/ui/dialog/CreateFolderDialogFragment.java +++ b/src/com/owncloud/android/ui/dialog/CreateFolderDialogFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -37,9 +39,7 @@ import android.widget.Toast; /** * Dialog to input the name for a new folder to create. * - * Triggers the folder creation when name is confirmed. - * - * @author David A. Velasco + * Triggers the folder creation when name is confirmed. */ public class CreateFolderDialogFragment extends SherlockDialogFragment implements DialogInterface.OnClickListener { diff --git a/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java b/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java index 24534047..9b0cc267 100644 --- a/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java +++ b/src/com/owncloud/android/ui/dialog/RemoveFileDialogFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -20,9 +22,7 @@ package com.owncloud.android.ui.dialog; /** * Dialog requiring confirmation before removing a given OCFile. * - * Triggers the removal according to the user response. - * - * @author David A. Velasco + * Triggers the removal according to the user response. */ import java.util.Vector; diff --git a/src/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java b/src/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java index d285f1e4..50c917f2 100644 --- a/src/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java +++ b/src/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -43,9 +45,7 @@ import com.owncloud.android.ui.activity.ComponentsGetter; /** * Dialog to input a new name for a file or folder to rename. * - * Triggers the rename operation when name is confirmed. - * - * @author David A. Velasco + * Triggers the rename operation when name is confirmed. */ public class RenameFileDialogFragment extends SherlockDialogFragment implements DialogInterface.OnClickListener { diff --git a/src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java b/src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java index 3e8a85f0..3e241a63 100644 --- a/src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java +++ b/src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Maria Asensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -44,9 +47,6 @@ import com.owncloud.android.lib.common.utils.Log_OC; /** * Dialog to show the WebView for SAML Authentication - * - * @author Maria Asensio - * @author David A. Velasco */ public class SamlWebViewDialog extends SherlockDialogFragment { diff --git a/src/com/owncloud/android/ui/dialog/ShareLinkToDialog.java b/src/com/owncloud/android/ui/dialog/ShareLinkToDialog.java index 2876f7b1..9f827ad0 100644 --- a/src/com/owncloud/android/ui/dialog/ShareLinkToDialog.java +++ b/src/com/owncloud/android/ui/dialog/ShareLinkToDialog.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -50,8 +52,6 @@ import com.owncloud.android.ui.activity.FileActivity; /** * Dialog showing a list activities able to resolve a given Intent, * filtering out the activities matching give package names. - * - * @author David A. Velasco */ public class ShareLinkToDialog extends SherlockDialogFragment { diff --git a/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java b/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java index 167177bd..fe80e206 100644 --- a/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java +++ b/src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author masensio + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -47,10 +50,7 @@ import com.owncloud.android.ui.adapter.X509CertificateViewAdapter; * to decide trust on it or not. * * Abstract implementation of common functionality for different dialogs that - * get the information about the error and the certificate from different classes. - * - * @author masensio - * @author David A. Velasco + * get the information about the error and the certificate from different classes. */ public class SslUntrustedCertDialog extends SherlockDialogFragment { diff --git a/src/com/owncloud/android/ui/dialog/SslValidatorDialog.java b/src/com/owncloud/android/ui/dialog/SslValidatorDialog.java index db20a5cb..57e565ad 100644 --- a/src/com/owncloud/android/ui/dialog/SslValidatorDialog.java +++ b/src/com/owncloud/android/ui/dialog/SslValidatorDialog.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -46,8 +48,6 @@ import com.owncloud.android.lib.common.utils.Log_OC; /** * Dialog to request the user about a certificate that could not be validated with the certificates store in the system. - * - * @author David A. Velasco */ public class SslValidatorDialog extends Dialog { diff --git a/src/com/owncloud/android/ui/fragment/FileDetailFragment.java b/src/com/owncloud/android/ui/fragment/FileDetailFragment.java index 30ac7e1c..85a9c20d 100644 --- a/src/com/owncloud/android/ui/fragment/FileDetailFragment.java +++ b/src/com/owncloud/android/ui/fragment/FileDetailFragment.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -52,9 +55,6 @@ import com.owncloud.android.utils.DisplayUtils; /** * This Fragment is used to display the details about a file. - * - * @author Bartek Przybylski - * @author David A. Velasco */ public class FileDetailFragment extends FileFragment implements OnClickListener { @@ -536,9 +536,7 @@ public class FileDetailFragment extends FileFragment implements OnClickListener /** - * Helper class responsible for updating the progress bar shown for file uploading or downloading - * - * @author David A. Velasco + * Helper class responsible for updating the progress bar shown for file uploading or downloading */ private class ProgressListener implements OnDatatransferProgressListener { int mLastPercent = 0; diff --git a/src/com/owncloud/android/ui/fragment/FileFragment.java b/src/com/owncloud/android/ui/fragment/FileFragment.java index 3e6fa31c..84f8febc 100644 --- a/src/com/owncloud/android/ui/fragment/FileFragment.java +++ b/src/com/owncloud/android/ui/fragment/FileFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -30,9 +32,6 @@ import com.owncloud.android.ui.activity.ComponentsGetter; /** * Common methods for {@link Fragment}s containing {@link OCFile}s - * - * @author David A. Velasco - * */ public class FileFragment extends SherlockFragment { @@ -102,8 +101,6 @@ public class FileFragment extends SherlockFragment { /** * Interface to implement by any Activity that includes some instance of FileListFragment * Interface to implement by any Activity that includes some instance of FileFragment - * - * @author David A. Velasco */ public interface ContainerActivity extends ComponentsGetter { diff --git a/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java b/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java index f8920c86..4cdfbd35 100644 --- a/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -38,9 +40,6 @@ import com.owncloud.android.ui.adapter.LocalFileListAdapter; /** * A Fragment that lists all files and folders in a given LOCAL path. - * - * @author David A. Velasco - * */ public class LocalFileListFragment extends ExtendedListFragment { private static final String TAG = "LocalFileListFragment"; @@ -226,8 +225,6 @@ public class LocalFileListFragment extends ExtendedListFragment { /** * Interface to implement by any Activity that includes some instance of LocalFileListFragment - * - * @author David A. Velasco */ public interface ContainerActivity { diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 3b626b6e..2361f2c8 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1,4 +1,8 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author masensio + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2014 ownCloud Inc. * @@ -50,10 +54,6 @@ import com.owncloud.android.utils.FileStorageUtils; * A Fragment that lists all files and folders in a given path. * * TODO refactorize to get rid of direct dependency on FileDisplayActivity - * - * @author Bartek Przybylski - * @author masensio - * @author David A. Velasco */ public class OCFileListFragment extends ExtendedListFragment { diff --git a/src/com/owncloud/android/ui/preview/FileDownloadFragment.java b/src/com/owncloud/android/ui/preview/FileDownloadFragment.java index 7af29c64..741af745 100644 --- a/src/com/owncloud/android/ui/preview/FileDownloadFragment.java +++ b/src/com/owncloud/android/ui/preview/FileDownloadFragment.java @@ -1,5 +1,6 @@ /* ownCloud Android client application - * + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -42,8 +43,6 @@ import com.owncloud.android.lib.common.utils.Log_OC; /** * This Fragment is used to monitor the progress of a file downloading. - * - * @author David A. Velasco */ public class FileDownloadFragment extends FileFragment implements OnClickListener { @@ -308,9 +307,7 @@ public class FileDownloadFragment extends FileFragment implements OnClickListene /** - * Helper class responsible for updating the progress bar shown for file uploading or downloading - * - * @author David A. Velasco + * Helper class responsible for updating the progress bar shown for file uploading or downloading */ private class ProgressListener implements OnDatatransferProgressListener { int mLastPercent = 0; diff --git a/src/com/owncloud/android/ui/preview/PreviewImageActivity.java b/src/com/owncloud/android/ui/preview/PreviewImageActivity.java index 213aee01..0b83eb39 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageActivity.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -62,8 +64,6 @@ import com.owncloud.android.utils.DisplayUtils; /** * Holds a swiping galley where image files contained in an ownCloud directory are shown - * - * @author David A. Velasco */ public class PreviewImageActivity extends FileActivity implements FileFragment.ContainerActivity, diff --git a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java index 0995793d..c7664270 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -64,8 +66,6 @@ import com.owncloud.android.utils.TouchImageViewCustom; * Trying to get an instance with NULL {@link OCFile} or ownCloud {@link Account} values will produce an {@link IllegalStateException}. * * If the {@link OCFile} passed is not downloaded, an {@link IllegalStateException} is generated on instantiation too. - * - * @author David A. Velasco */ public class PreviewImageFragment extends FileFragment { diff --git a/src/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java b/src/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java index 3c15de71..a80d0e29 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java +++ b/src/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -38,9 +40,7 @@ import com.owncloud.android.ui.fragment.FileFragment; import com.owncloud.android.utils.FileStorageUtils; /** - * Adapter class that provides Fragment instances - * - * @author David A. Velasco + * Adapter class that provides Fragment instances */ //public class PreviewImagePagerAdapter extends PagerAdapter { public class PreviewImagePagerAdapter extends FragmentStatePagerAdapter { diff --git a/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java b/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java index 7d6489b2..db996f9d 100644 --- a/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -64,8 +66,6 @@ import com.owncloud.android.ui.fragment.FileFragment; * Trying to get an instance with NULL {@link OCFile} or ownCloud {@link Account} values will produce an {@link IllegalStateException}. * * By now, if the {@link OCFile} passed is not downloaded, an {@link IllegalStateException} is generated on instantiation too. - * - * @author David A. Velasco */ public class PreviewMediaFragment extends FileFragment implements OnTouchListener { diff --git a/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java b/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java index 39e8e234..ada25802 100644 --- a/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java +++ b/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -45,9 +47,7 @@ import com.owncloud.android.lib.common.utils.Log_OC; * Used as an utility to preview video files contained in an ownCloud account. * * Currently, it always plays in landscape mode, full screen. When the playback ends, - * the activity is finished. - * - * @author David A. Velasco + * the activity is finished. */ public class PreviewVideoActivity extends FileActivity implements OnCompletionListener, OnPreparedListener, OnErrorListener { diff --git a/src/com/owncloud/android/utils/BitmapUtils.java b/src/com/owncloud/android/utils/BitmapUtils.java index 92824f44..557c5acb 100644 --- a/src/com/owncloud/android/utils/BitmapUtils.java +++ b/src/com/owncloud/android/utils/BitmapUtils.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -30,8 +32,6 @@ import java.io.File; /** * Utility class with methods for decoding Bitmaps. - * - * @author David A. Velasco */ public class BitmapUtils { diff --git a/src/com/owncloud/android/utils/DisplayUtils.java b/src/com/owncloud/android/utils/DisplayUtils.java index 999700f1..7eb8746c 100644 --- a/src/com/owncloud/android/utils/DisplayUtils.java +++ b/src/com/owncloud/android/utils/DisplayUtils.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski + * @author David A. Velasco * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -40,9 +43,6 @@ import com.owncloud.android.datamodel.OCFile; /** * A helper class for some string operations. - * - * @author Bartek Przybylski - * @author David A. Velasco */ public class DisplayUtils { diff --git a/src/com/owncloud/android/utils/ErrorMessageAdapter.java b/src/com/owncloud/android/utils/ErrorMessageAdapter.java index 9f138041..43174cd7 100644 --- a/src/com/owncloud/android/utils/ErrorMessageAdapter.java +++ b/src/com/owncloud/android/utils/ErrorMessageAdapter.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -41,10 +43,8 @@ import com.owncloud.android.operations.UnshareLinkOperation; import com.owncloud.android.operations.UploadFileOperation; /** - * Class to choose proper error messages to show to the user depending on the results of operations, always following the same policy - * - * @author masensio - * + * Class to choose proper error messages to show to the user depending on the results of operations, + * always following the same policy */ public class ErrorMessageAdapter { diff --git a/src/com/owncloud/android/utils/FileStorageUtils.java b/src/com/owncloud/android/utils/FileStorageUtils.java index b0c337d6..15757b44 100644 --- a/src/com/owncloud/android/utils/FileStorageUtils.java +++ b/src/com/owncloud/android/utils/FileStorageUtils.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author David A. Velasco * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -41,8 +43,6 @@ import android.webkit.MimeTypeMap; /** * Static methods to help in access to local file system. - * - * @author David A. Velasco */ public class FileStorageUtils { public static Integer mSortOrder; diff --git a/src/com/owncloud/android/utils/OwnCloudSession.java b/src/com/owncloud/android/utils/OwnCloudSession.java index 13ead88b..59958efb 100644 --- a/src/com/owncloud/android/utils/OwnCloudSession.java +++ b/src/com/owncloud/android/utils/OwnCloudSession.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author Bartek Przybylski * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2012-2013 ownCloud Inc. * @@ -19,9 +21,6 @@ package com.owncloud.android.utils; /** * Represents a session to an ownCloud instance - * - * @author Bartek Przybylski - * */ public class OwnCloudSession { private String mSessionName; diff --git a/src/com/owncloud/android/utils/TouchImageViewCustom.java b/src/com/owncloud/android/utils/TouchImageViewCustom.java index a0f7b792..64d9ca71 100644 --- a/src/com/owncloud/android/utils/TouchImageViewCustom.java +++ b/src/com/owncloud/android/utils/TouchImageViewCustom.java @@ -1,13 +1,26 @@ -/* - * TouchImageView.java - * By: Michael Ortiz - * Updated By: Patrick Lackemacher - * Updated By: Babay88 - * Updated By: @ipsilondev - * Updated By: hank-cp - * Updated By: singpolyma - * ------------------- - * Extends Android ImageView to include pinch zooming, panning, fling and double tap zoom. +/* ownCloud Android client application + * + * @author Michael Ortiz + * @updated Patrick Lackemacher + * @updated Babay88 + * @updated @ipsilondev + * @updated hank-cp + * @updated singpolyma + * Copyright (c) 2012 Michael Ortiz + * Copyright (C) 2015 ownCloud Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * */ package com.owncloud.android.utils; @@ -39,6 +52,9 @@ import android.view.animation.AccelerateDecelerateInterpolator; import android.widget.OverScroller; import android.widget.Scroller; +/** + * Extends Android ImageView to include pinch zooming, panning, fling and double tap zoom. + */ public class TouchImageViewCustom extends ImageViewCustom { private static final String DEBUG = "DEBUG"; @@ -401,7 +417,7 @@ public class TouchImageViewCustom extends ImageViewCustom { /** * Set zoom parameters equal to another TouchImageView. Including scale, position, * and ScaleType. - * @param TouchImageView + * @param img */ public void setZoom(TouchImageViewCustom img) { PointF center = img.getScrollPosition();