GObjectClass parent_class;
};
-GType milk_auth_get_type (void);
+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 (void);
-/* FIXME: cut this */
-void milk_auth_run_demo (MilkAuth* auth) ;
+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 */