comparison src/account.h @ 8573:7dcd6f26e4a7

[gaim-migrate @ 9321] " This patch reimplements the system log. It writes system log to ~/.gaim/logs/<protocol>/<username>/.system/<timestamp>.(txt|html), where <timestamp> is the time that the account <username> with <protocol> signs on. Nathan (faceprint) and LSchiere suggested this logging scheme. No code is currently written to read the old system logs. Note that if you change the logging format, you need to re-login the accounts for the change to take effect." --Ka-Hing (javabsp) Cheung who continues: "Now this one applies, also contains a rider patch that, if you enable sound for "Someone says your name in chat", it will not play a sound if the message is a system message, like if jabber chat tells you that "*** becomes available" and *** is you, it won't play a sound." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 03 Apr 2004 18:34:29 +0000
parents e39ea2b4f6cd
children 0eb5161ef333
comparison
equal deleted inserted replaced
8572:f6890288bbe0 8573:7dcd6f26e4a7
35 typedef gboolean (*GaimFilterAccountFunc)(GaimAccount *account); 35 typedef gboolean (*GaimFilterAccountFunc)(GaimAccount *account);
36 36
37 #include "connection.h" 37 #include "connection.h"
38 #include "proxy.h" 38 #include "proxy.h"
39 #include "prpl.h" 39 #include "prpl.h"
40 #include "log.h"
40 41
41 struct _GaimAccountUiOps 42 struct _GaimAccountUiOps
42 { 43 {
43 void (*notify_added)(GaimAccount *account, const char *remote_user, 44 void (*notify_added)(GaimAccount *account, const char *remote_user,
44 const char *id, const char *alias, 45 const char *id, const char *alias,
69 /* proxy settings from global prefs. */ 70 /* proxy settings from global prefs. */
70 71
71 GSList *permit; /**< Permit list. */ 72 GSList *permit; /**< Permit list. */
72 GSList *deny; /**< Deny list. */ 73 GSList *deny; /**< Deny list. */
73 int perm_deny; /**< The permit/deny setting. */ 74 int perm_deny; /**< The permit/deny setting. */
75 GaimLog *system_log; /**< The system log */
74 }; 76 };
75 77
76 #ifdef __cplusplus 78 #ifdef __cplusplus
77 extern "C" { 79 extern "C" {
78 #endif 80 #endif
538 * @return The value. 540 * @return The value.
539 */ 541 */
540 gboolean gaim_account_get_ui_bool(const GaimAccount *account, const char *ui, 542 gboolean gaim_account_get_ui_bool(const GaimAccount *account, const char *ui,
541 const char *name, gboolean default_value); 543 const char *name, gboolean default_value);
542 544
545
546 /**
547 * Returns the system log for an account.
548 * Create it if it doesn't already exist.
549 *
550 * @param gc The account.
551 *
552 * @return The log.
553 */
554 GaimLog *gaim_account_get_log(GaimAccount *account);
555
556 /**
557 * Frees the system log of an account
558 *
559 * @param gc The account.
560 */
561 void gaim_account_destroy_log(GaimAccount *account);
562
543 /*@}*/ 563 /*@}*/
544 564
545 /**************************************************************************/ 565 /**************************************************************************/
546 /** @name Accounts API */ 566 /** @name Accounts API */
547 /**************************************************************************/ 567 /**************************************************************************/