Implement the priority +/- buttons
[milk] / src / milk-auth.h
index 5fc14e0..55c5b79 100644 (file)
@@ -59,9 +59,46 @@ struct _MilkAuthClass
         GObjectClass parent_class;
 };
 
+typedef enum {
+        MILK_AUTH_STATE_DISCONNECTED,
+        MILK_AUTH_STATE_CONNECTED,
+        MILK_AUTH_STATE_SERVICE_UNAVAILABLE,
+        NUM_MILK_AUTH_STATES,
+} MilkAuthState;
+
 GType milk_auth_get_type (void);
 
 
-MilkAuth* milk_auth_get_default ();
+MilkAuth*     milk_auth_get_default     (void);
+void          milk_auth_log_in          (MilkAuth    *auth);
+MilkAuthState milk_auth_get_state       (MilkAuth    *auth);
+GList*        milk_auth_get_tasks       (MilkAuth    *auth,
+                                         const char  *last_sync,
+                                         GError     **error);
+char*         milk_auth_timeline_create (MilkAuth    *auth,
+                                         GError     **error);
+RtmTask*      milk_auth_task_add        (MilkAuth    *auth,
+                                         char        *timeline,
+                                         const char  *name,
+                                         GError     **error);
+GList*        milk_auth_tasks_add       (MilkAuth    *auth,
+                                         char        *timeline,
+                                         GList       *names);
+GList*        milk_auth_tasks_send_changes (MilkAuth  *auth,
+                                            char      *timeline,
+                                            GList     *tasks);
+char*         milk_auth_task_complete   (MilkAuth    *auth,
+                                         char        *timeline,
+                                         RtmTask     *task,
+                                         GError     **error);
+char*         milk_auth_task_delete     (MilkAuth    *auth,
+                                         char        *timeline,
+                                         RtmTask     *task,
+                                         GError     **error);
+char*         milk_auth_task_set_priority (MilkAuth    *auth,
+                                           char        *timeline,
+                                           RtmTask     *task,
+                                           const char  *priority,
+                                           GError     **error);
 
 #endif /* _MILK_AUTH_H */