comparison src/status.c @ 10153:0b43f6fef9b5

[gaim-migrate @ 11231] Add some notes to status.c committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 04 Nov 2004 03:39:30 +0000
parents d83e6f2125b1
children 0109f3a518d2
comparison
equal deleted inserted replaced
10152:3cec08c6179c 10153:0b43f6fef9b5
1079 1079
1080 for (l = source_list; l != NULL; l = l->next) 1080 for (l = source_list; l != NULL; l = l->next)
1081 gaim_presence_add_status(presence, (GaimStatus *)l->data); 1081 gaim_presence_add_status(presence, (GaimStatus *)l->data);
1082 } 1082 }
1083 1083
1084 /*
1085 * TODO: Should we g_return_if_fail(active == status_id->active); ?
1086 *
1087 * TODO: If a buddy signed on or off, should we do any of the following?
1088 * (Note: We definitely need to do some of this somewhere, I'm just
1089 * not sure if here is the correct place.)
1090 *
1091 * char *tmp = g_strdup_printf(_("%s logged in."), alias);
1092 * gaim_conversation_write(c, NULL, tmp, GAIM_MESSAGE_SYSTEM, time(NULL));
1093 * g_free(tmp);
1094 *
1095 * GaimLog *log = gaim_account_get_log(account);
1096 * char *tmp = g_strdup_printf(_("%s signed on"), alias);
1097 * gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name), current_time, tmp);
1098 * g_free(tmp);
1099 *
1100 * gaim_sound_play_event(GAIM_SOUND_BUDDY_ARRIVE);
1101 *
1102 * char *tmp = g_strdup_printf(_("%s logged out."), alias);
1103 * gaim_conversation_write(c, NULL, tmp, GAIM_MESSAGE_SYSTEM, time(NULL));
1104 * g_free(tmp);
1105 *
1106 * char *tmp = g_strdup_printf(_("%s signed off"), alias);
1107 * gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name), current_time, tmp);
1108 * g_free(tmp);
1109 *
1110 * serv_got_typing_stopped(gc, name);
1111 *
1112 * gaim_sound_play_event(GAIM_SOUND_BUDDY_LEAVE);
1113 *
1114 * gaim_conversation_update(c, GAIM_CONV_UPDATE_AWAY);
1115 *
1116 */
1084 void 1117 void
1085 gaim_presence_set_status_active(GaimPresence *presence, const char *status_id, 1118 gaim_presence_set_status_active(GaimPresence *presence, const char *status_id,
1086 gboolean active) 1119 gboolean active)
1087 { 1120 {
1088 GaimStatus *status; 1121 GaimStatus *status;