Android Open Source - Tasque-for-Android Values






From Project

Back to project page Tasque-for-Android.

License

The source code is released under:

MIT License

If you think the Android project Tasque-for-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.bustiblelemons.tasque.utilities;
/*from  ww  w.  j  av  a  2s  .c  o m*/
public class Values {

  public static final String TAG = "Tasque";
  public static final int IMPORTER_REQUEST_CODE = 0x0000009;

  public static final class JSONToken {
    public static final String Permission = "permission";
    public static final String Token = "token";
    public static final String UserID = "userID";
    public static final String UserName = "userName";
    public static final String FullUserName = "fullUserName";
  }

  public static final class TasqueArguments {
    public static final String SHOW_DATABASE_CHOOSER = "databaseChooser";
    public static final String LOST_DATABASE = "lostDatabase";
  }

  public static final class ImporterArguments {
    public static final String SYNCED_DATABASE_PATH = "syncedDatabasePath";
    public static final String START_FRESH = "startFresh";
    public static final String USE_REMEMBER_THE_MILK = "useRememberTheMilk";
  }

  public static final class Database {
    public static class Table {
      public static final String ID = "ID";
      public static final String NAME = "Name";
      public static final String EXTERNALID = "ExternalID";
      /**
       * RTM CACHE FIELDS
       */
      public static final String ADDED = "Added";
      public static final String DELETED = "Deleted";
      public static final String RENAMED = "Renamed";
    }

    public static final class Task {
      public static class TaskState {
        public final static int Active = 0;
        public final static int Incomplete = 1;
        public final static int Completed = 2;
        public final static int Discarded = 3;
        public final static int Deleted = 4;
        public final static int Renamed = 5;
      }

      public static final class CategoryState extends TaskState {

      }

      public static final class Priority {
        public final static int Unspecified = 0;
        public final static int High = 1;
        public final static int Medium = 2;
        public final static int Low = 3;
      }
    }

    public static final class Categories extends Table {
      public static final String STATE = "State";
    }

    public static final class Notes extends Table {
      public static final String TASK = "Task";
      public static final String TEXT = "Text";
      public static final String STATE = "State";

      public static final class NoteState {
        public final static int Added = 3;
        public final static int Deleted = 4;
        public final static int Renamed = 5;
      }
    }

    public static final class Tasks extends Table {
      // public static final long INDEFINED_DATE = -62135600400l;
      /**
       * @param INDEFINED_DATE
       *            date is stored as Int64 in the Tasque desktop. Sqlite3
       *            API cuts down bits no matter what
       * 
       */
      public static final long INDEFINED_DATE = -2006058256l;
      public static final String CATEGORY = "Category";
      public static final String DUE_DATE = "DueDate";
      public static final String COMPLETION_DATE = "CompletionDate";
      public static final String PRIORITY = "Priority";
      public static final String STATE = "State";
    }
  }

  public static final class FragmentArguments {
    public static final String CATEGORY = "category";
    public static final String ID = "id";
    public static final String ALL = "All";
    public static final int ALL_ID = -1;
    public static final String TASK_NAME = "taskName";

    public static final class RTMAuthArguments {
      public static final String AUTH_URL = "auth_url";
    }

    public static final class MultipleFiles {
      public static final String FILES_FOUND = "files_found";
      public static final String LOST_PREVIOUS = "lost_previous";
    }

    public static final class OsInfoFragment {
      public static final String OS_TYPE = "OS_Type";
      public static final int OS_COUNT = 4;

      public static final class OS {
        public static final int LINUX = 0;
        public static final int ANDROID = 1;
        public static final int MAC = 2;
        public static final int WINDOWS = 3;
      }
    }

    public static final String LIST_ID = "ListId";
  }

}




Java Source Code List

com.bustiblelemons.tasque.database.DatabaseAdapter.java
com.bustiblelemons.tasque.database.Database.java
com.bustiblelemons.tasque.frontend.Alarms.java
com.bustiblelemons.tasque.frontend.Category.java
com.bustiblelemons.tasque.frontend.Note.java
com.bustiblelemons.tasque.frontend.Task.java
com.bustiblelemons.tasque.main.CategoriesFragment.java
com.bustiblelemons.tasque.main.CompletedTasksFragment.java
com.bustiblelemons.tasque.main.NotesAdapter.java
com.bustiblelemons.tasque.main.NotesFragment.java
com.bustiblelemons.tasque.main.RightSideFragmentPocketListener.java
com.bustiblelemons.tasque.main.SpinnerAdapter.java
com.bustiblelemons.tasque.main.TasqueAdapter.java
com.bustiblelemons.tasque.main.TasqueCategoryAdapter.java
com.bustiblelemons.tasque.main.TasqueGroupFragment.java
com.bustiblelemons.tasque.main.TasqueRTMCategoryAdapter.java
com.bustiblelemons.tasque.main.Tasque.java
com.bustiblelemons.tasque.rtm.RTMAuthFragment.java
com.bustiblelemons.tasque.rtm.RTMBackend.java
com.bustiblelemons.tasque.rtm.RTMConnectivityReceiver.java
com.bustiblelemons.tasque.rtm.RTMLoginFromSettings.java
com.bustiblelemons.tasque.rtm.RTMSyncBroadcastReceiver.java
com.bustiblelemons.tasque.rtm.RTMSyncService.java
com.bustiblelemons.tasque.rtm.SynchronizingFragment.java
com.bustiblelemons.tasque.settings.RTMBackendFragmentSettings.java
com.bustiblelemons.tasque.settings.SettingsActivity.java
com.bustiblelemons.tasque.settings.SettingsUtil.java
com.bustiblelemons.tasque.splash.ExportToExternalFragment.java
com.bustiblelemons.tasque.splash.ExternalProblemsFragment.java
com.bustiblelemons.tasque.splash.ImporterActivity.java
com.bustiblelemons.tasque.splash.Splash.java
com.bustiblelemons.tasque.tutorial.OSChooserFragment.java
com.bustiblelemons.tasque.tutorial.OSListAdapter.java
com.bustiblelemons.tasque.tutorial.SynchronizeTutorialActivity.java
com.bustiblelemons.tasque.tutorial.SynchronizedFilesAdapter.java
com.bustiblelemons.tasque.tutorial.TutorialTabFragment.java
com.bustiblelemons.tasque.utilities.Connection.java
com.bustiblelemons.tasque.utilities.PermissionParser.java
com.bustiblelemons.tasque.utilities.PriorityParser.java
com.bustiblelemons.tasque.utilities.Utility.java
com.bustiblelemons.tasque.utilities.Values.java