C# Class Gtk.Tasque.RemoteControl

Inheritance: System.MarshalByRefObject
ファイルを表示 Open project: GNOME/tasque Class Usage Examples

Public Methods

Method Description
CreateTask ( string taskListName, string taskName, bool enterEditMode ) : string

Create a new task in Tasque using the given taskListName and name. Will not attempt to parse due date information.

CreateTask ( string taskListName, string taskName, bool enterEditMode, bool parseDate ) : string

Create a new task in Tasque using the given taskListName and name.

DeleteTaskById ( string id ) : bool

Deletes a task

GetDueDateForTaskById ( string id ) : int

Get the due date of a task for a given ID

GetInstance ( ) : RemoteControl
GetNameForTaskById ( string id ) : string

Gets the name of a task for a given ID

GetPriorityForTaskById ( string id ) : int

Gets the priority of a task for a given ID

GetStateForTaskById ( string id ) : int

Gets the state of a task for a given ID

GetTaskIds ( ) : string[]

Retreives the IDs of all tasks for the current backend.

GetTaskListForTaskById ( string id ) : string

Gets the list of a task for a given ID

GetTaskListNames ( ) : string[]

Return an array of ITaskList names.

KnockKnock ( ) : void
MarkTaskAsActiveById ( string id ) : bool

Marks a task active

MarkTaskAsCompleteById ( string id ) : void

Marks a task complete

Register ( GtkApplicationBase application ) : RemoteControl
SetDueDateForTaskById ( string id, int dueDate ) : bool

Set the due date of a task for a given ID

SetNameForTaskById ( string id, string name ) : bool

Sets the name of a task for a given ID

SetPriorityForTaskById ( string id, int priority ) : bool

Sets the priority of a task for a given ID

SetTaskListForTaskById ( string id, string listName ) : bool

Sets the list of a task for a given ID

ShowTasks ( ) : void

Private Methods

Method Description
GetTaskById ( string id ) : ITask

Looks up a task by ID in the backend

RemoteControl ( GtkApplicationBase application ) : Notifications

Method Details

CreateTask() public method

Create a new task in Tasque using the given taskListName and name. Will not attempt to parse due date information.
public CreateTask ( string taskListName, string taskName, bool enterEditMode ) : string
taskListName string /// A . The name of an existing taskList. /// Matches are not case-sensitive. ///
taskName string /// A . The name of the task to be created. ///
enterEditMode bool /// A . Specify true if the TaskWindow /// should be shown, the new task scrolled to, and have it be put into /// edit mode immediately. ///
return string

CreateTask() public method

Create a new task in Tasque using the given taskListName and name.
public CreateTask ( string taskListName, string taskName, bool enterEditMode, bool parseDate ) : string
taskListName string /// A . The name of an existing taskList. /// Matches are not case-sensitive. ///
taskName string /// A . The name of the task to be created. ///
enterEditMode bool /// A . Specify true if the TaskWindow /// should be shown, the new task scrolled to, and have it be put into /// edit mode immediately. ///
parseDate bool /// A . Specify true if the /// date should be parsed out of the taskName (in case /// Preferences.ParseDateEnabledKey is true as well). ///
return string

DeleteTaskById() public method

Deletes a task
public DeleteTaskById ( string id ) : bool
id string /// A for the ID of the task ///
return bool

GetDueDateForTaskById() public method

Get the due date of a task for a given ID
public GetDueDateForTaskById ( string id ) : int
id string /// A for the ID of the task ///
return int

GetInstance() public static method

public static GetInstance ( ) : RemoteControl
return RemoteControl

GetNameForTaskById() public method

Gets the name of a task for a given ID
public GetNameForTaskById ( string id ) : string
id string /// A for the ID of the task ///
return string

GetPriorityForTaskById() public method

Gets the priority of a task for a given ID
public GetPriorityForTaskById ( string id ) : int
id string /// A for the ID of the task ///
return int

GetStateForTaskById() public method

Gets the state of a task for a given ID
public GetStateForTaskById ( string id ) : int
id string /// A for the ID of the task ///
return int

GetTaskIds() public method

Retreives the IDs of all tasks for the current backend.
public GetTaskIds ( ) : string[]
return string[]

GetTaskListForTaskById() public method

Gets the list of a task for a given ID
public GetTaskListForTaskById ( string id ) : string
id string /// A for the ID of the task ///
return string

GetTaskListNames() public method

Return an array of ITaskList names.
public GetTaskListNames ( ) : string[]
return string[]

KnockKnock() public method

public KnockKnock ( ) : void
return void

MarkTaskAsActiveById() public method

Marks a task active
public MarkTaskAsActiveById ( string id ) : bool
id string /// A for the ID of the task ///
return bool

MarkTaskAsCompleteById() public method

Marks a task complete
public MarkTaskAsCompleteById ( string id ) : void
id string /// A for the ID of the task ///
return void

Register() public static method

public static Register ( GtkApplicationBase application ) : RemoteControl
application GtkApplicationBase
return RemoteControl

SetDueDateForTaskById() public method

Set the due date of a task for a given ID
public SetDueDateForTaskById ( string id, int dueDate ) : bool
id string /// A for the ID of the task ///
dueDate int
return bool

SetNameForTaskById() public method

Sets the name of a task for a given ID
public SetNameForTaskById ( string id, string name ) : bool
id string /// A for the ID of the task ///
name string
return bool

SetPriorityForTaskById() public method

Sets the priority of a task for a given ID
public SetPriorityForTaskById ( string id, int priority ) : bool
id string /// A for the ID of the task ///
priority int /// A the priority of the task ///
return bool

SetTaskListForTaskById() public method

Sets the list of a task for a given ID
public SetTaskListForTaskById ( string id, string listName ) : bool
id string /// A for the ID of the task ///
listName string /// A the list of the task ///
return bool

ShowTasks() public method

public ShowTasks ( ) : void
return void