Mercurial > pidgin.yaz
annotate pidgin/gtklog.h @ 21279:47118f6062e9
Enable auto-complete in the pounce dialog.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 Nov 2007 18:29:20 +0000 |
parents | aabe638f56d9 |
children | 998cf5d0b401 dccfd999ffe7 |
rev | line source |
---|---|
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
2 * @file gtklog.h GTK+ Log viewer |
16193
247e421c4fa6
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@wiktel.com>
parents:
15871
diff
changeset
|
3 * @ingroup pidgin |
20800
0077d3b6ecd2
Patch from nix_nix to add some links to signal documentation.
Will Thompson <will.thompson@collabora.co.uk>
parents:
20074
diff
changeset
|
4 * @see @ref gtklog-signals |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
5 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
6 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
7 /* pidgin |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * |
15511 | 9 * Pidgin is the legal property of its developers, whose names are too numerous |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * to list here. Please refer to the COPYRIGHT file distributed with this |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * source distribution. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 * along with this program; if not, write to the Free Software |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16193
diff
changeset
|
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
26 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
27 #ifndef _PIDGINLOG_H_ |
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
28 #define _PIDGINLOG_H_ |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
29 |
15514 | 30 #include "pidgin.h" |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
31 #include "log.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
32 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
33 #include "account.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
35 typedef struct _PidginLogViewer PidginLogViewer; |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
36 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
37 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
38 * A GTK+ Log Viewer. You can look at logs with it. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
39 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
40 struct _PidginLogViewer { |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
41 GList *logs; /**< The list of logs viewed in this viewer */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
42 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
43 GtkWidget *window; /**< The viewer's window */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
44 GtkTreeStore *treestore; /**< The treestore containing said logs */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
45 GtkWidget *treeview; /**< The treeview representing said treestore */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
46 GtkWidget *imhtml; /**< The imhtml to display said logs */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
47 GtkWidget *entry; /**< The search entry, in which search terms |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
48 * are entered */ |
15823 | 49 PurpleLogReadFlags flags; /**< The most recently used log flags */ |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
50 char *search; /**< The string currently being searched for */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
51 GtkWidget *label; /**< The label at the top of the log viewer */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
52 }; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
53 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
54 |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
55 #ifndef PURPLE_DISABLE_DEPRECATED |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
56 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
57 * @deprecated Use pidgin_log_show_with_parent() instead. |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
58 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
59 void pidgin_log_show(PurpleLogType type, const char *screenname, PurpleAccount *account); |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
60 #endif |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
61 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
62 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
63 * @since 2.3.0 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
64 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
65 void pidgin_log_show_with_parent(GtkWindow *parent, PurpleLogType type, const char *screenname, PurpleAccount *account); |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
66 |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
67 #ifndef PURPLE_DISABLE_DEPRECATED |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
68 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
69 * @deprecated pidgin_log_show_contact_with_parent() instead. |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
70 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
71 void pidgin_log_show_contact(PurpleContact *contact); |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
72 #endif |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
73 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
74 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
75 * @since 2.3.0 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
76 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
77 void pidgin_log_show_contact_with_parent(GtkWindow *parent, PurpleContact *contact); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
78 |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
79 #ifndef PURPLE_DISABLE_DEPRECATED |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
80 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
81 * @deprecated Use pidgin_syslog_show_with_parent() instead. |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
82 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
83 void pidgin_syslog_show(void); |
21234
aabe638f56d9
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@wiktel.com>
parents:
21229
diff
changeset
|
84 #endif |
21228
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
85 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
86 /** |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
87 * @since 2.3.0 |
cc8bdfb16ddf
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@wiktel.com>
parents:
21076
diff
changeset
|
88 */ |
20615
78ef8bd992f9
Re-worked gtklog functions and perl bindings
Gabriel Schulhof <nix@go-nix.ca>
parents:
20597
diff
changeset
|
89 void pidgin_syslog_show_with_parent(GtkWindow *parent); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
90 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
91 /**************************************************************************/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
92 /** @name GTK+ Log Subsystem */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
93 /**************************************************************************/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
94 /*@{*/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
95 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
96 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
97 * Initializes the GTK+ log subsystem. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
98 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
99 void pidgin_log_init(void); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
100 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
101 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
102 * Returns the GTK+ log subsystem handle. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
103 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
104 * @return The GTK+ log subsystem handle. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
105 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
106 void *pidgin_log_get_handle(void); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
107 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
108 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
109 * Uninitializes the GTK+ log subsystem. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
110 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
111 void pidgin_log_uninit(void); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
112 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
113 /*@}*/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
114 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
115 #endif |