C# Class Gtk.Tasque.RemoteControl

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: GNOME/tasque Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetTaskById ( string id ) : ITask

Looks up a task by ID in the backend

RemoteControl ( GtkApplicationBase application ) : Notifications

Method Details

CreateTask() public méthode

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. ///
Résultat string

CreateTask() public méthode

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). ///
Résultat string

DeleteTaskById() public méthode

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

GetDueDateForTaskById() public méthode

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 ///
Résultat int

GetInstance() public static méthode

public static GetInstance ( ) : RemoteControl
Résultat RemoteControl

GetNameForTaskById() public méthode

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

GetPriorityForTaskById() public méthode

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

GetStateForTaskById() public méthode

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

GetTaskIds() public méthode

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

GetTaskListForTaskById() public méthode

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

GetTaskListNames() public méthode

Return an array of ITaskList names.
public GetTaskListNames ( ) : string[]
Résultat string[]

KnockKnock() public méthode

public KnockKnock ( ) : void
Résultat void

MarkTaskAsActiveById() public méthode

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

MarkTaskAsCompleteById() public méthode

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

Register() public static méthode

public static Register ( GtkApplicationBase application ) : RemoteControl
application GtkApplicationBase
Résultat RemoteControl

SetDueDateForTaskById() public méthode

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
Résultat bool

SetNameForTaskById() public méthode

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
Résultat bool

SetPriorityForTaskById() public méthode

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 ///
Résultat bool

SetTaskListForTaskById() public méthode

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 ///
Résultat bool

ShowTasks() public méthode

public ShowTasks ( ) : void
Résultat void