Search in sources :

Example 1 with TaskQueue

use of com.squareup.tape.TaskQueue in project glimmr by brk3.

the class AddToGroupDialogFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    TaskQueueDelegateFactory<AddItemToGroupTask> factory = new TaskQueueDelegateFactory<AddItemToGroupTask>(mActivity);
    mQueue = new TaskQueue(factory.get(Constants.GROUP_QUEUE, AddItemToGroupTask.class));
    BusProvider.getInstance().register(this);
    setStyle(STYLE_NO_TITLE, 0);
}
Also used : AddItemToGroupTask(com.bourke.glimmr.tasks.AddItemToGroupTask) TaskQueueDelegateFactory(com.bourke.glimmr.common.TaskQueueDelegateFactory) TaskQueue(com.squareup.tape.TaskQueue)

Example 2 with TaskQueue

use of com.squareup.tape.TaskQueue in project glimmr by brk3.

the class AddToPhotosetTaskQueueService method initTaskQueue.

@Override
protected void initTaskQueue() {
    TaskQueueDelegateFactory<AddItemToPhotosetTask> factory = new TaskQueueDelegateFactory<AddItemToPhotosetTask>(this);
    mQueue = new TaskQueue(factory.get(Constants.PHOTOSET_QUEUE, AddItemToPhotosetTask.class));
}
Also used : AddItemToPhotosetTask(com.bourke.glimmr.tasks.AddItemToPhotosetTask) TaskQueueDelegateFactory(com.bourke.glimmr.common.TaskQueueDelegateFactory) TaskQueue(com.squareup.tape.TaskQueue)

Example 3 with TaskQueue

use of com.squareup.tape.TaskQueue in project glimmr by brk3.

the class AddToPhotosetDialogFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    TaskQueueDelegateFactory<AddItemToPhotosetTask> factory = new TaskQueueDelegateFactory<AddItemToPhotosetTask>(mActivity);
    mQueue = new TaskQueue(factory.get(Constants.PHOTOSET_QUEUE, AddItemToPhotosetTask.class));
    setStyle(STYLE_NO_TITLE, 0);
}
Also used : AddItemToPhotosetTask(com.bourke.glimmr.tasks.AddItemToPhotosetTask) TaskQueueDelegateFactory(com.bourke.glimmr.common.TaskQueueDelegateFactory) TaskQueue(com.squareup.tape.TaskQueue)

Example 4 with TaskQueue

use of com.squareup.tape.TaskQueue in project glimmr by brk3.

the class AddToGroupTaskQueueService method initTaskQueue.

@Override
protected void initTaskQueue() {
    TaskQueueDelegateFactory<AddItemToGroupTask> factory = new TaskQueueDelegateFactory<AddItemToGroupTask>(this);
    mQueue = new TaskQueue(factory.get(Constants.GROUP_QUEUE, AddItemToGroupTask.class));
}
Also used : AddItemToGroupTask(com.bourke.glimmr.tasks.AddItemToGroupTask) TaskQueueDelegateFactory(com.bourke.glimmr.common.TaskQueueDelegateFactory) TaskQueue(com.squareup.tape.TaskQueue)

Example 5 with TaskQueue

use of com.squareup.tape.TaskQueue in project glimmr by brk3.

the class UploadPhotoTaskQueueService method initTaskQueue.

@Override
protected void initTaskQueue() {
    TaskQueueDelegateFactory<UploadPhotoTask> factory = new TaskQueueDelegateFactory<UploadPhotoTask>(this);
    mQueue = new TaskQueue(factory.get(Constants.UPLOAD_QUEUE, UploadPhotoTask.class));
}
Also used : TaskQueueDelegateFactory(com.bourke.glimmr.common.TaskQueueDelegateFactory) UploadPhotoTask(com.bourke.glimmr.tasks.UploadPhotoTask) TaskQueue(com.squareup.tape.TaskQueue)

Aggregations

TaskQueueDelegateFactory (com.bourke.glimmr.common.TaskQueueDelegateFactory)6 TaskQueue (com.squareup.tape.TaskQueue)6 AddItemToGroupTask (com.bourke.glimmr.tasks.AddItemToGroupTask)2 AddItemToPhotosetTask (com.bourke.glimmr.tasks.AddItemToPhotosetTask)2 UploadPhotoTask (com.bourke.glimmr.tasks.UploadPhotoTask)2