Merged in default (pull request #594)
[pidgin-git.git] / finch / gntlog.h
blob88533ea098560e93a8a64f34c2338be7eb62b7b4
1 /*
2 * finch
4 * Finch is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 #ifndef FINCH_LOG_H
24 #define FINCH_LOG_H
26 /**
27 * SECTION:gntlog
28 * @section_id: finch-gntlog
29 * @short_description: <filename>gntlog.h</filename>
30 * @title: Log Viewer
33 #include "log.h"
34 #include "account.h"
35 #include "gntwidget.h"
37 typedef struct _FinchLogViewer FinchLogViewer;
39 /**
40 * FinchLogViewer:
41 * @logs: The list of logs viewed in this viewer
42 * @window: The viewer's window
43 * @tree: The tree representing said treestore
44 * @text: The text to display said logs
45 * @entry: The search entry, in which search terms are entered
46 * @label: The label for the log viewer
47 * @flags: The most recently used log flags
48 * @search: The string currently being searched for
50 * A GNT Log Viewer. You can look at logs with it.
52 struct _FinchLogViewer {
53 GList *logs;
55 GntWidget *window;
56 GntWidget *tree;
57 GntWidget *text;
58 GntWidget *entry;
59 GntWidget *label;
60 PurpleLogReadFlags flags;
61 char *search;
66 void finch_log_show(PurpleLogType type, const char *username, PurpleAccount *account);
67 void finch_log_show_contact(PurpleContact *contact);
69 void finch_syslog_show(void);
71 /**************************************************************************/
72 /* GNT Log Subsystem */
73 /**************************************************************************/
75 /**
76 * finch_log_init:
78 * Initializes the GNT log subsystem.
80 void finch_log_init(void);
82 /**
83 * finch_log_get_handle:
85 * Returns the GNT log subsystem handle.
87 * Returns: (transfer none): The GNT log subsystem handle.
89 void *finch_log_get_handle(void);
91 /**
92 * finch_log_uninit:
94 * Uninitializes the GNT log subsystem.
96 void finch_log_uninit(void);
98 #endif /* FINCH_LOG_H */