#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_response.h"
#include <gmodule.h>
Go to the source code of this file.
Classes | |
struct | _FlMethodSuccessResponse |
struct | _FlMethodErrorResponse |
struct | _FlMethodNotImplementedResponse |
Functions | |
G_DEFINE_TYPE (FlMethodSuccessResponse, fl_method_success_response, fl_method_response_get_type()) G_DEFINE_TYPE(FlMethodErrorResponse | |
fl_method_response_get_type ()) G_DEFINE_TYPE(FlMethodNotImplementedResponse | |
static void | fl_method_response_init (FlMethodResponse *self) |
static void | fl_method_success_response_dispose (GObject *object) |
static void | fl_method_success_response_class_init (FlMethodSuccessResponseClass *klass) |
static void | fl_method_success_response_init (FlMethodSuccessResponse *self) |
static void | fl_method_error_response_dispose (GObject *object) |
static void | fl_method_error_response_class_init (FlMethodErrorResponseClass *klass) |
static void | fl_method_error_response_init (FlMethodErrorResponse *self) |
static void | fl_method_not_implemented_response_class_init (FlMethodNotImplementedResponseClass *klass) |
static void | fl_method_not_implemented_response_init (FlMethodNotImplementedResponse *self) |
G_MODULE_EXPORT FlValue * | fl_method_response_get_result (FlMethodResponse *self, GError **error) |
G_MODULE_EXPORT FlMethodSuccessResponse * | fl_method_success_response_new (FlValue *result) |
G_MODULE_EXPORT FlValue * | fl_method_success_response_get_result (FlMethodSuccessResponse *self) |
G_MODULE_EXPORT FlMethodErrorResponse * | fl_method_error_response_new (const gchar *code, const gchar *message, FlValue *details) |
const G_MODULE_EXPORT gchar * | fl_method_error_response_get_code (FlMethodErrorResponse *self) |
const G_MODULE_EXPORT gchar * | fl_method_error_response_get_message (FlMethodErrorResponse *self) |
G_MODULE_EXPORT FlValue * | fl_method_error_response_get_details (FlMethodErrorResponse *self) |
G_MODULE_EXPORT FlMethodNotImplementedResponse * | fl_method_not_implemented_response_new () |
Variables | |
fl_method_error_response | |
fl_method_not_implemented_response | |
|
static |
Definition at line 69 of file fl_method_response.cc.
References fl_method_error_response_dispose().
|
static |
Definition at line 59 of file fl_method_response.cc.
References fl_value_unref().
Referenced by fl_method_error_response_class_init().
const G_MODULE_EXPORT gchar* fl_method_error_response_get_code | ( | FlMethodErrorResponse * | self | ) |
Definition at line 160 of file fl_method_response.cc.
Referenced by cancel_exception_response_cb(), decode_response_with_error(), error_response_cb(), fl_method_channel_respond(), fl_method_response_get_result(), listen_exception_response_cb(), message_cb(), method_call_error_response_cb(), and TEST().
G_MODULE_EXPORT FlValue* fl_method_error_response_get_details | ( | FlMethodErrorResponse * | self | ) |
Definition at line 172 of file fl_method_response.cc.
Referenced by decode_response_with_error(), error_response_cb(), fl_method_channel_respond(), fl_method_response_get_result(), message_cb(), method_call_error_response_cb(), and TEST().
const G_MODULE_EXPORT gchar* fl_method_error_response_get_message | ( | FlMethodErrorResponse * | self | ) |
Definition at line 166 of file fl_method_response.cc.
Referenced by cancel_exception_response_cb(), decode_response_with_error(), error_response_cb(), fl_method_channel_respond(), fl_method_response_get_result(), listen_exception_response_cb(), message_cb(), method_call_error_response_cb(), and TEST().
|
static |
Definition at line 74 of file fl_method_response.cc.
G_MODULE_EXPORT FlMethodErrorResponse* fl_method_error_response_new | ( | const gchar * | code, |
const gchar * | message, | ||
FlValue * | details | ||
) |
Definition at line 144 of file fl_method_response.cc.
References fl_value_ref().
Referenced by activate_system_cursor(), cancel_exception_cancel_cb(), clipboard_get_data_async(), clipboard_set_data(), fl_json_method_codec_decode_response(), fl_method_call_respond_error(), fl_standard_method_codec_decode_response(), fl_test_codec_decode_response(), handle_method_call(), listen_exception_listen_cb(), set_client(), system_exit_application(), system_sound_play(), and TEST().
|
static |
Definition at line 76 of file fl_method_response.cc.
|
static |
Definition at line 79 of file fl_method_response.cc.
G_MODULE_EXPORT FlMethodNotImplementedResponse* fl_method_not_implemented_response_new | ( | ) |
Definition at line 179 of file fl_method_response.cc.
Referenced by fl_method_call_respond_not_implemented(), fl_method_codec_decode_response(), method_call_cb(), method_call_handler(), and TEST().
G_MODULE_EXPORT FlValue* fl_method_response_get_result | ( | FlMethodResponse * | self, |
GError ** | error | ||
) |
Definition at line 82 of file fl_method_response.cc.
References error, fl_method_error_response_get_code(), fl_method_error_response_get_details(), fl_method_error_response_get_message(), FL_METHOD_RESPONSE_ERROR, FL_METHOD_RESPONSE_ERROR_FAILED, FL_METHOD_RESPONSE_ERROR_NOT_IMPLEMENTED, FL_METHOD_RESPONSE_ERROR_REMOTE_ERROR, fl_method_success_response_get_result(), and fl_value_to_string().
Referenced by get_exit_response(), MATCHER_P(), method_response_cb(), nullptr_args_response_cb(), printTo(), send_events_events_cb(), and TEST().
fl_method_response_get_type | ( | ) |
Definition at line 38 of file fl_method_response.cc.
|
static |
Definition at line 42 of file fl_method_response.cc.
|
static |
Definition at line 52 of file fl_method_response.cc.
References fl_method_success_response_dispose().
|
static |
Definition at line 44 of file fl_method_response.cc.
References fl_value_unref().
Referenced by fl_method_success_response_class_init().
G_MODULE_EXPORT FlValue* fl_method_success_response_get_result | ( | FlMethodSuccessResponse * | response | ) |
fl_method_success_response_get_result: @response: an #FlMethodSuccessResponse.
Gets the result of the method call.
Returns: an FlValue.
Definition at line 138 of file fl_method_response.cc.
Referenced by decode_response_with_success(), fl_method_channel_respond(), fl_method_response_get_result(), method_call_success_response_cb(), and TEST().
|
static |
Definition at line 57 of file fl_method_response.cc.
G_MODULE_EXPORT FlMethodSuccessResponse* fl_method_success_response_new | ( | FlValue * | result | ) |
fl_method_success_response_new:
Creates a response to a method call when that method has successfully completed.
Returns: a new #FlMethodResponse.
Definition at line 126 of file fl_method_response.cc.
References fl_value_ref(), and result.
Referenced by activate_system_cursor(), clear_client(), clipboard_set_data(), clipboard_text_cb(), clipboard_text_has_strings_cb(), fl_json_method_codec_decode_response(), fl_method_call_respond_success(), fl_standard_method_codec_decode_response(), fl_test_codec_decode_response(), get_keyboard_state(), hide(), request_app_exit_response_cb(), set_client(), set_editable_size_and_transform(), set_editing_state(), set_marked_text_rect(), show(), system_exit_application(), system_intitialization_complete(), system_navigator_pop(), system_sound_play(), and TEST().
G_DEFINE_TYPE | ( | FlMethodSuccessResponse | , |
fl_method_success_response | , | ||
fl_method_response_get_type() | |||
) |
fl_method_error_response |
Definition at line 34 of file fl_method_response.cc.
fl_method_not_implemented_response |
Definition at line 37 of file fl_method_response.cc.