Commit e8ac0ebe authored by Nihar Thakkar's avatar Nihar Thakkar

Add e Foundation copyright to new and author to modified files

parent d86b3367
......@@ -42,6 +42,8 @@ import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Manages settings of an account.
*
* @throws InvalidAccountException on construction when the account doesn't exist (anymore)
......
......@@ -7,6 +7,10 @@
*/
package at.bitfire.davdroid
/**
* Authors: Nihar Thakkar and others
*/
object Constants {
const val DAVDROID_GREEN_RGBA = 0xFF8bc34a.toInt()
......
......@@ -42,6 +42,10 @@ import java.util.*
import java.util.logging.Level
import kotlin.concurrent.thread
/**
* Authors: Nihar Thakkar and others
*/
class DavService : Service() {
companion object {
......
......@@ -21,6 +21,10 @@ import at.bitfire.davdroid.model.ServiceDB.Services
import at.bitfire.davdroid.resource.LocalTaskList
import at.bitfire.ical4android.TaskProvider
/**
* Authors: Nihar Thakkar and others
*/
class PackageChangedReceiver: BroadcastReceiver() {
@SuppressLint("MissingPermission")
......
......@@ -31,6 +31,8 @@ import java.util.Arrays;
import java.util.List;
/**
* Authors: Nihar Thakkar and others
*
* An abstraction of identity providers, containing all necessary info for the demo app.
*/
public class IdentityProvider
......
......@@ -14,6 +14,10 @@ import at.bitfire.dav4android.property.*
import at.bitfire.davdroid.model.ServiceDB.Collections
import java.io.Serializable
/**
* Authors: Nihar Thakkar and others
*/
data class CollectionInfo(
val url: String,
......
......@@ -11,6 +11,10 @@ package at.bitfire.davdroid.model
import net.openid.appauth.AuthState
import java.io.Serializable
/**
* Authors: Nihar Thakkar and others
*/
class Credentials(
val userName: String? = null,
val password: String? = null,
......
......@@ -19,6 +19,10 @@ import at.bitfire.davdroid.log.Logger
import at.bitfire.davdroid.ui.StartupDialogFragment
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class ServiceDB {
object Services {
......
......@@ -31,6 +31,8 @@ import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* A local address book. Requires an own Android account, because Android manages contacts per
* account and there is no such thing as "address books". So, DAVdroid creates a "DAVdroid
* address book" account for every CardDAV address book. These accounts are bound to a
......
......@@ -33,6 +33,10 @@ import okhttp3.HttpUrl
import okhttp3.RequestBody
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
abstract class BaseDavSyncManager<ResourceType: LocalResource<*>, out CollectionType: LocalCollection<ResourceType>, RemoteType: DavCollection>(
context: Context,
settings: ISettings,
......
......@@ -33,6 +33,8 @@ import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CalDAV collections; handles events (VEVENT)
*/
class CalendarSyncManager(
......
......@@ -25,6 +25,10 @@ import at.bitfire.ical4android.AndroidCalendar
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class CalendarsSyncAdapterService: SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -24,6 +24,10 @@ import at.bitfire.davdroid.settings.ISettings
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class ContactsSyncAdapterService: SyncAdapterService() {
companion object {
......
......@@ -38,6 +38,8 @@ import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CardDAV collections; handles contacts and groups.
*
* Group handling differs according to the {@link #groupMethod}. There are two basic methods to
......
......@@ -25,6 +25,8 @@ import kotlin.collections.HashSet
/**
* Authors: Nihar Thakkar and others
*
* Account authenticator for the eelo account type.
*
* Gets started when an eelo account is removed, too, so it also watches for account removals
......
......@@ -23,6 +23,10 @@ import at.bitfire.davdroid.resource.LocalAddressBook
import at.bitfire.davdroid.settings.ISettings
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class EeloAddressBooksSyncAdapterService: SyncAdapterService() {
override fun syncAdapter() = AddressBooksSyncAdapter(this)
......
......@@ -12,6 +12,10 @@ import android.content.*
import android.os.Bundle
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class EeloAppDataSyncAdapterService : SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -25,6 +25,10 @@ import at.bitfire.ical4android.AndroidCalendar
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class EeloCalendarsSyncAdapterService: SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -24,6 +24,10 @@ import at.bitfire.davdroid.settings.ISettings
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class EeloContactsSyncAdapterService: SyncAdapterService() {
companion object {
......
......@@ -12,6 +12,10 @@ import android.content.*
import android.os.Bundle
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class EeloEmailSyncAdapterService : SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -12,6 +12,10 @@ import android.content.*
import android.os.Bundle
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class EeloMediaSyncAdapterService : SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -12,6 +12,10 @@ import android.content.*
import android.os.Bundle
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class EeloNotesSyncAdapterService : SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -18,6 +18,10 @@ import android.os.Bundle
import at.bitfire.davdroid.ui.AccountsActivity
import at.bitfire.davdroid.ui.setup.LoginActivity
/**
* Authors: Nihar Thakkar and others
*/
class EeloNullAuthenticatorService: Service() {
private lateinit var accountAuthenticator: AccountAuthenticator
......
......@@ -36,6 +36,8 @@ import org.dmfs.tasks.contract.TaskContract
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CalDAV collections; handles tasks ({@code VTODO}).
*/
class EeloTasksSyncAdapterService: SyncAdapterService() {
......
......@@ -27,6 +27,8 @@ import net.openid.appauth.AuthorizationService
/**
* Authors: Nihar Thakkar and others
*
* Account authenticator for the Google account type.
*
* Gets started when a Google account is removed, too, so it also watches for account removals
......
......@@ -23,6 +23,10 @@ import at.bitfire.davdroid.resource.LocalAddressBook
import at.bitfire.davdroid.settings.ISettings
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class GoogleAddressBooksSyncAdapterService: SyncAdapterService() {
override fun syncAdapter() = AddressBooksSyncAdapter(this)
......
......@@ -25,6 +25,10 @@ import at.bitfire.ical4android.AndroidCalendar
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class GoogleCalendarsSyncAdapterService: SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -24,6 +24,10 @@ import at.bitfire.davdroid.settings.ISettings
import net.openid.appauth.AuthorizationService
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class GoogleContactsSyncAdapterService: SyncAdapterService() {
companion object {
......
......@@ -12,6 +12,10 @@ import android.content.*
import android.os.Bundle
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class GoogleEmailSyncAdapterService : SyncAdapterService() {
override fun syncAdapter() = CalendarsSyncAdapter(this)
......
......@@ -18,6 +18,10 @@ import android.os.Bundle
import at.bitfire.davdroid.ui.AccountsActivity
import at.bitfire.davdroid.ui.setup.LoginActivity
/**
* Authors: Nihar Thakkar and others
*/
class GoogleNullAuthenticatorService: Service() {
private lateinit var accountAuthenticator: AccountAuthenticator
......
......@@ -36,6 +36,8 @@ import org.dmfs.tasks.contract.TaskContract
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CalDAV collections; handles tasks ({@code VTODO}).
*/
class GoogleTasksSyncAdapterService: SyncAdapterService() {
......
......@@ -46,6 +46,10 @@ import java.util.*
import java.util.logging.Level
import javax.net.ssl.SSLHandshakeException
/**
* Authors: Nihar Thakkar and others
*/
abstract class SyncManager<out ResourceType: LocalResource<*>, out CollectionType: LocalCollection<ResourceType>>(
val context: Context,
val settings: ISettings,
......
......@@ -36,6 +36,8 @@ import org.dmfs.tasks.contract.TaskContract
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CalDAV collections; handles tasks ({@code VTODO}).
*/
class TasksSyncAdapterService: SyncAdapterService() {
......
......@@ -36,6 +36,8 @@ import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*
* Synchronization manager for CalDAV collections; handles tasks (VTODO)
*/
class TasksSyncManager(
......
......@@ -47,6 +47,10 @@ import kotlinx.android.synthetic.main.activity_account.*
import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class AccountActivity: AppCompatActivity(), Toolbar.OnMenuItemClickListener, PopupMenu.OnMenuItemClickListener, LoaderManager.LoaderCallbacks<AccountActivity.AccountInfo> {
companion object {
......
......@@ -27,6 +27,10 @@ import android.widget.ArrayAdapter
import at.bitfire.davdroid.R
import kotlinx.android.synthetic.main.account_list_item.view.*
/**
* Authors: Nihar Thakkar and others
*/
class AccountListFragment: ListFragment(), LoaderManager.LoaderCallbacks<Array<Account>> {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
......
......@@ -41,6 +41,10 @@ import at.bitfire.ical4android.TaskProvider
import at.bitfire.vcard4android.GroupMethod
import org.apache.commons.lang3.StringUtils
/**
* Authors: Nihar Thakkar and others
*/
class AccountSettingsActivity: AppCompatActivity() {
companion object {
......
......@@ -31,6 +31,10 @@ import at.bitfire.davdroid.ui.setup.LoginActivity
import kotlinx.android.synthetic.main.accounts_content.*
import kotlinx.android.synthetic.main.activity_accounts.*
/**
* Authors: Nihar Thakkar and others
*/
class AccountsActivity: AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener, LoaderManager.LoaderCallbacks<AccountsActivity.Settings>, SyncStatusObserver {
companion object {
......
......@@ -48,6 +48,10 @@ import java.text.SimpleDateFormat
import java.util.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class DebugInfoActivity: AppCompatActivity(), LoaderManager.LoaderCallbacks<String> {
companion object {
......
......@@ -15,6 +15,10 @@ import android.view.MenuItem
import at.bitfire.davdroid.R
import at.bitfire.davdroid.settings.ISettings
/**
* Authors: Nihar Thakkar and others
*/
class DefaultAccountsDrawerHandler : IAccountsDrawerHandler {
override fun onSettingsChanged(settings: ISettings?, menu: Menu) {
......
......@@ -39,6 +39,10 @@ import at.bitfire.vcard4android.GroupMethod
import kotlinx.android.synthetic.main.login_account_details.view.*
import java.util.logging.Level
/**
* Authors: Nihar Thakkar and others
*/
class AccountDetailsFragment : Fragment(), LoaderManager.LoaderCallbacks<CreateSettings> {
companion object {
......
......@@ -32,6 +32,10 @@ import java.util.*
import java.util.logging.Level
import java.util.logging.Logger
/**
* Authors: Nihar Thakkar and others
*/
class DavResourceFinder(
val context: Context,
private val loginInfo: LoginInfo
......
......@@ -25,6 +25,10 @@ import at.bitfire.davdroid.ui.DebugInfoActivity
import at.bitfire.davdroid.ui.setup.DavResourceFinder.Configuration
import kotlin.concurrent.thread
/**
* Authors: Nihar Thakkar and others
*/
@Suppress("DEPRECATION")
class DetectConfigurationFragment : DialogFragment(), LoaderManager.LoaderCallbacks<Configuration> {
......
/*
* Copyright © e Foundation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/
package at.bitfire.davdroid.ui.setup
import android.content.Context
......@@ -19,6 +26,9 @@ import java.net.URI
import java.net.URISyntaxException
import java.util.logging.Level
/**
* Author: Nihar Thakkar
*/
class EeloAuthenticatorFragment : Fragment() {
......
/*
* Copyright © e Foundation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/
package at.bitfire.davdroid.ui.setup
import android.app.Activity
import android.app.PendingIntent
import android.content.Context
......@@ -30,6 +36,9 @@ import java.util.logging.Level
import android.net.ConnectivityManager
import android.widget.Toast
/**
* Author: Nihar Thakkar
*/
class GoogleAuthenticatorFragment : Fragment(), AuthorizationService.TokenResponseCallback {
......
......@@ -13,6 +13,8 @@ import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
/**
* Authors: Nihar Thakkar and others
*
* Activity to initially connect to a server and create an account.
* Fields for server/user data can be pre-filled with extras in the Intent.
*/
......
......@@ -14,6 +14,10 @@ import at.bitfire.davdroid.model.Credentials
import net.openid.appauth.AuthState
import java.net.URI
/**
* Authors: Nihar Thakkar and others
*/
data class LoginInfo(
val uri: URI,
val credentials: Credentials
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment