diff 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
line wrap: on
line diff
--- a/src/account.h	Sat Apr 03 18:01:58 2004 +0000
+++ b/src/account.h	Sat Apr 03 18:34:29 2004 +0000
@@ -37,6 +37,7 @@
 #include "connection.h"
 #include "proxy.h"
 #include "prpl.h"
+#include "log.h"
 
 struct _GaimAccountUiOps
 {
@@ -71,6 +72,7 @@
 	GSList *permit;             /**< Permit list.                         */
 	GSList *deny;               /**< Deny list.                           */
 	int perm_deny;              /**< The permit/deny setting.             */
+ 	GaimLog *system_log;        /**< The system log                       */
 };
 
 #ifdef __cplusplus
@@ -540,6 +542,24 @@
 gboolean gaim_account_get_ui_bool(const GaimAccount *account, const char *ui,
 								  const char *name, gboolean default_value);
 
+
+/**
+ * Returns the system log for an account.
+ * Create it if it doesn't already exist.
+ *
+ * @param gc The account.
+ *
+ * @return The log.
+ */
+GaimLog *gaim_account_get_log(GaimAccount *account);
+
+/**
+ * Frees the system log of an account
+ *
+ * @param gc The account.
+ */
+	void gaim_account_destroy_log(GaimAccount *account);
+
 /*@}*/
 
 /**************************************************************************/