Mercurial > pidgin.yaz
annotate doc/account-signals.dox @ 15144:b81e4e44b509
[gaim-migrate @ 17929]
User Info and Tooltips now use the GaimNotifyUserInfo object and methods defined in notify.h. GaimNotifyUserInfo objects encapsulate a list of GaimNotifyUserInfoEntry objects, each of which may have a label, a value, and be specified to be a section header.
This moves the burden of UI generation of user information from the various prpls to the UI. The UI can choose how to display the information rather than being fenced into a particular HTML formatting. Consistency across the prpls' information presentation is now enforced, as well. gaim_notify_user_info_get_text_with_newline() generates text in the:
<b>label</b>: value
<b>label</b>: value
format as was passed by convention from prpls in the past.
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sun, 10 Dec 2006 02:53:09 +0000 |
parents | e629076386f1 |
children | 8cf53d7a0887 |
rev | line source |
---|---|
6605 | 1 /** @page account-signals Account Signals |
2 | |
3 @signals | |
12053 | 4 @signal account-added |
6605 | 5 @signal account-connecting |
12053 | 6 @signal account-removed |
12127
944c97d11bb1
[gaim-migrate @ 14427]
Richard Laager <rlaager@wiktel.com>
parents:
12070
diff
changeset
|
7 @signal account-disabled |
944c97d11bb1
[gaim-migrate @ 14427]
Richard Laager <rlaager@wiktel.com>
parents:
12070
diff
changeset
|
8 @signal account-enabled |
6605 | 9 @signal account-setting-info |
10 @signal account-set-info | |
11628 | 11 @signal account-status-changed |
6605 | 12 @endsignals |
13 | |
14 <hr> | |
15 | |
12053 | 16 @signaldef account-added |
17 @signalproto | |
18 void (*account_added)(GaimAccount *account); | |
19 @endsignalproto | |
20 @signaldesc | |
21 Emitted when an account is added. | |
22 @param account The account that was added. | |
23 @endsignaldef | |
24 | |
6605 | 25 @signaldef account-connecting |
26 @signalproto | |
27 void (*account_connecting)(GaimAccount *account); | |
28 @endsignalproto | |
29 @signaldesc | |
30 This is called when an account is in the process of connecting. | |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
31 @param account The account in the process of connecting. |
6605 | 32 @endsignaldef |
33 | |
12053 | 34 @signaldef account-removed |
35 @signalproto | |
36 void (*account_removed)(GaimAccount *account); | |
37 @endsignalproto | |
38 @signaldesc | |
39 Emitted when an account is removed. | |
40 @param account The account that was removed. | |
41 @endsignaldef | |
42 | |
12070 | 43 @signaldef account-disabled |
44 @signalproto | |
45 void (*account_disabled)(GaimAccount *account); | |
46 @endsignalproto | |
47 @signaldesc | |
48 Emitted when an account is disabled. | |
49 @param account The account that was disabled. | |
50 @endsignaldef | |
51 | |
52 @signaldef account-enabled | |
53 @signalproto | |
54 void (*account_enabled)(GaimAccount *account); | |
55 @endsignalproto | |
56 @signaldesc | |
57 Emitted when an account is enabled. | |
58 @param account The account that was enabled. | |
59 @endsignaldef | |
60 | |
6605 | 61 @signaldef account-setting-info |
62 @signalproto | |
63 void (*account_setting_info)(GaimAccount *account, const char *new_info); | |
64 @endsignalproto | |
65 @signaldesc | |
66 Emitted when a user is about to send his new user info, or | |
67 profile, to the server. | |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
68 @param account The account that the info will be set on. |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
69 @param new_info The new information to set. |
6605 | 70 @endsignaldef |
71 | |
72 @signaldef account-set-info | |
73 @signalproto | |
74 void (*account_set_info)(GaimAccount *account, const char *new_info); | |
75 @endsignalproto | |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
76 @signaldesc |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
77 Emitted when a user sent his new user info, or profile, to the server. |
6605 | 78 @param account The account that the info was set on. |
79 @param new_info The new information set. | |
80 @endsignaldef | |
81 | |
11628 | 82 @signaldef account-status-changed |
83 @signalproto | |
84 void (*account_status_changed)(GaimAccount *account, GaimStatus *old, GaimStatus *new); | |
85 @endsignalproto | |
86 @signaldesc | |
87 Emitted when the status of an account changes (after the change). | |
88 @param account The account that changed status. | |
89 @param old The status before change. | |
90 @param new The status after change. | |
91 @endsignaldef | |
92 | |
13281
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
93 @signaldef account-alias-changed |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
94 @signalproto |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
95 void (*account_alias_changed)(GaimAccount *account, const char *old); |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
96 @endsignalproto |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
97 @signaldesc |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
98 Emitted when the alias of an account changes (after the change). |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
99 @param account The account for which the alias was changed. |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
100 @param old The alias before change. |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
101 @endsignaldef |
e629076386f1
[gaim-migrate @ 15647]
Richard Laager <rlaager@wiktel.com>
parents:
12127
diff
changeset
|
102 |
6605 | 103 */ |
104 // vim: syntax=c tw=75 et |