2 #ifndef __BST_USER_MESSAGE_H__
3 #define __BST_USER_MESSAGE_H__
15 const char* bst_msg_type_ident (BstMsgType);
24 const char *log_domain;
30 const char *secondary;
32 const char *config_check;
47 void bst_message_connect_to_server (
void);
48 void bst_message_dialogs_popdown (
void);
49 guint bst_message_handler (
const BstMessage *message);
55 #define bst_msg_bit_printf(msg_part_id, ...) bst_msg_bit_create (msg_part_id, Rapicorn::string_format (__VA_ARGS__))
57 BstMsgBit* bst_msg_bit_create_choice (guint
id,
59 const gchar *stock_icon,
60 const gchar *options);
61 #define bst_msg_dialog(level, ...) BST_MSG_DIALOG (level, __VA_ARGS__)
63 #define BST_MSG_TEXT0(...) bst_msg_bit_printf ('0', __VA_ARGS__)
64 #define BST_MSG_TEXT1(...) bst_msg_bit_printf ('1', __VA_ARGS__)
65 #define BST_MSG_TEXT2(...) bst_msg_bit_printf ('2', __VA_ARGS__)
66 #define BST_MSG_TEXT3(...) bst_msg_bit_printf ('3', __VA_ARGS__)
67 #define BST_MSG_CHECK(...) bst_msg_bit_printf ('c', __VA_ARGS__)
68 #define BST_MSG_TITLE BST_MSG_TEXT0
69 #define BST_MSG_PRIMARY BST_MSG_TEXT1
70 #define BST_MSG_SECONDARY BST_MSG_TEXT2
71 #define BST_MSG_DETAIL BST_MSG_TEXT3
73 #define BST_MSG_CHOICE(id, name, stock_icon) bst_msg_bit_create_choice (id, name, stock_icon, "C")
74 #define BST_MSG_CHOICE_D(id, name, stock_icon) bst_msg_bit_create_choice (id, name, stock_icon, "D")
75 #define BST_MSG_CHOICE_S(id, name, sticn, sens) bst_msg_bit_create_choice (id, name, sticn, (sens) ? "" : "I")
76 #define BST_MSG_DIALOG(lvl, ...) ({ BstMsgType __mt = lvl; uint __result = 0; \
77 BstMsgBit *__ba[] = { __VA_ARGS__ }; \
78 __result = bst_message_dialog_display ("BEAST", \
79 __mt, RAPICORN_ARRAY_SIZE (__ba), __ba); \
Definition: bstusermessage.hh:23
Indicate a message about an error condition.
Definition: bseapi.idl:411
Indicate an informational message.
Definition: bseapi.idl:413
Indicate a debugging message (usually insignificant).
Definition: bseapi.idl:414
Indicate a message about a possibly harmful condition.
Definition: bseapi.idl:412
Definition: bstusermessage.hh:17
Definition: bstusermessage.hh:40
guint bst_message_dialog_display(const char *log_domain, BstMsgType type, guint n_bits, BstMsgBit **bits)
bst_message_dialog_display
Definition: bstusermessage.cc:654