Top |
#define | CALLS_EMIT_MESSAGE() |
#define | CALLS_ERROR() |
void | calls_message_source_emit_message () |
All three of the main interfaces, CallsProvider, CallsOrigin and CallsCall require CallsMessageSource. They use this interface's message signal to emit messages intended for display to the user.
#define CALLS_EMIT_MESSAGE(obj,text,type)
Emit a message signal with the specified information. This is a convenience macro for objects implementing interfaces that require CallsMessageSource.
obj |
an object which can be cast to a CallsMessageSource |
|
text |
the message text as a string |
|
type |
the type of the message |
#define CALLS_ERROR(obj,error)
Emit a message signal with an error type, the text of which is contained as the message in a GError. This is a convenience macro for objects implementing interfaces that require CallsMessageSource.
obj |
an object which can be cast to a CallsMessageSource |
|
error |
a pointer to a GError containing the error message |
void calls_message_source_emit_message (CallsMessageSource *self
,const char *message
,GtkMessageType message_type
);
Emits a message which should be shown to the user in the user interface. Messages should be translated into the users locale
struct CallsMessageSourceInterface { GTypeInterface parent_iface; };
“message”
signalvoid user_function (CallsMessageSource *self, char *text, GtkMessageType type, gpointer user_data)
This signal is emitted when an implementing-object needs to emit a message to the user. The message should be suitable for presentation to the user as-is. This means it should be translated to the users locale.
self |
The CallsMessageSource instance. |
|
text |
The message text. |
|
type |
The type of the message; error, warning, etc. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last