Dutch translation updated (Gideon van Melle)
[pidgin-git.git] / pidgin / gtklog.h
blob77917a8a15d5a2e7777b9abdb185cee5fc3dd3ec
1 /**
2 * @file gtklog.h GTK+ Log viewer
3 * @ingroup pidgin
4 * @see @ref gtklog-signals
5 */
7 /* pidgin
9 * Pidgin is the legal property of its developers, whose names are too numerous
10 * to list here. Please refer to the COPYRIGHT file distributed with this
11 * source distribution.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
27 #ifndef _PIDGINLOG_H_
28 #define _PIDGINLOG_H_
30 #include "pidgin.h"
31 #include "log.h"
33 #include "account.h"
35 typedef struct _PidginLogViewer PidginLogViewer;
37 /**
38 * A GTK+ Log Viewer. You can look at logs with it.
40 struct _PidginLogViewer {
41 GList *logs; /**< The list of logs viewed in this viewer */
43 GtkWidget *window; /**< The viewer's window */
44 GtkTreeStore *treestore; /**< The treestore containing said logs */
45 GtkWidget *treeview; /**< The treeview representing said treestore */
46 GtkWidget *imhtml; /**< The imhtml to display said logs */
47 GtkWidget *entry; /**< The search entry, in which search terms
48 * are entered */
49 PurpleLogReadFlags flags; /**< The most recently used log flags */
50 char *search; /**< The string currently being searched for */
51 GtkWidget *label; /**< The label at the top of the log viewer */
56 void pidgin_log_show(PurpleLogType type, const char *buddyname, PurpleAccount *account);
57 void pidgin_log_show_contact(PurpleContact *contact);
59 void pidgin_syslog_show(void);
61 /**************************************************************************/
62 /** @name GTK+ Log Subsystem */
63 /**************************************************************************/
64 /*@{*/
66 /**
67 * Initializes the GTK+ log subsystem.
69 void pidgin_log_init(void);
71 /**
72 * Returns the GTK+ log subsystem handle.
74 * @return The GTK+ log subsystem handle.
76 void *pidgin_log_get_handle(void);
78 /**
79 * Uninitializes the GTK+ log subsystem.
81 void pidgin_log_uninit(void);
83 /*@}*/
85 #endif