X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-dimming-rule.h;h=2cd03c02a1dd8f6321b862c50a85471f02c78514;hp=0e7e8adfd17e9946537dbcc12cc64e61559844e5;hb=a53f92ed4375cec1094f41a310b9ab7b7f8a2d70;hpb=2da007966ea445b3574320d9c914c7475df64c59 diff --git a/src/modest-dimming-rule.h b/src/modest-dimming-rule.h index 0e7e8ad..2cd03c0 100644 --- a/src/modest-dimming-rule.h +++ b/src/modest-dimming-rule.h @@ -32,6 +32,7 @@ #include #include "widgets/modest-window.h" +#include "modest-dimming-rules-group.h" G_BEGIN_DECLS @@ -81,8 +82,45 @@ ModestDimmingRule* modest_dimming_rule_new (ModestWindow *win, ModestDimmingCallback dimming_rule, const gchar *action_path); -void -modest_dimming_rule_process (ModestDimmingRule *self); +/** + * modest_dimming_rule_process: + * @rule: a #ModestDimmingRule object to process. + * + * Process dimming rule, executing private callback defined at + * instantiation time. This callback may updates notification provate field + * of @rule in order to show information banners when 'insensitive-press' + * events occurs. + * + **/ +void modest_dimming_rule_process (ModestDimmingRule *self); + +/** + * modest_dimming_rule_set_group: + * @rule: a #ModestDimmingRule object to process. + * @group: a #ModestDimmingRulesGroup object to associate. + * + * Creates a new reference of @group, associated to this "rule. + */ +void modest_dimming_rule_set_group (ModestDimmingRule *rule, + ModestDimmingRulesGroup *group); + +/** + * modest_dimming_rule_set_group: + * @rule: a #ModestDimmingRule object to process. + * + * Gets a new reference of associated group of this @rule. + * + * @Returns: a new object reference of #ModestDimmingRulesGroup, or + * NULL if invalid @rule. + */ +ModestDimmingRulesGroup * +modest_dimming_rule_get_group (ModestDimmingRule *rule); + +void modest_dimming_rule_set_notification (ModestDimmingRule *rule, + const gchar *notification); + +gchar *modest_dimming_rule_get_notification (ModestDimmingRule *rule); + G_END_DECLS