From 0bda6a9474ded4368217f42df552955f3fc6e4af Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 10 Feb 2011 10:52:51 +0000 Subject: Implement clear_account method in LogManager --- telepathy-logger/log-manager.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'telepathy-logger/log-manager.c') diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 779f41e..7503113 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -902,6 +902,24 @@ _tpl_log_manager_clear (TplLogManager *self) } +void +_tpl_log_manager_clear_account (TplLogManager *self, + TpAccount *account) +{ + GList *l; + TplLogManagerPriv *priv; + + g_return_if_fail (TPL_IS_LOG_MANAGER (self)); + + priv = self->priv; + + for (l = priv->stores; l != NULL; l = g_list_next (l)) + { + _tpl_log_store_clear_account (TPL_LOG_STORE (l->data), account); + } +} + + /* There is no g_date_copy() */ static GDate * copy_date (const GDate *date) -- cgit v1.2.1