pidgin/pidginprotocolstore.h

Sun, 07 Jun 2020 02:39:43 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 07 Jun 2020 02:39:43 -0500
branch
Ball--Gy-rgy/update-screenshot-url-in-appdata-file-1591293245974
changeset 40438
708c6622acc6
parent 40302
28deeeb1ecdf
child 40502
875489636847
permissions
-rw-r--r--

closing merged branch

40296
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* pidgin
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 #ifndef PIDGIN_PROTOCOL_STORE_H
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #define PIDGIN_PROTOCOL_STORE_H
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 /**
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 * SECTION:pidginprotocolstore
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 * @section_id: pidgin-protocol-store
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 * @short_description: A GtkListStore that keeps track of protocols
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 * @title: Protocol Store
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 * #PidginProtocolStore is a #GtkListStore that automatically keeps track of
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 * what protocols are currently available in libpurple. It's intended to be
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 * used any time that you need to present a protocol selection to the user.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 */
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 #include <gtk/gtk.h>
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 #include <purple.h>
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 typedef enum {
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 PIDGIN_PROTOCOL_STORE_COLUMN_PROTOCOL,
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 PIDGIN_PROTOCOL_STORE_COLUMN_NAME,
40302
28deeeb1ecdf Fix some issues found in review
Gary Kramlich <grim@reaperworld.com>
parents: 40297
diff changeset
43 PIDGIN_PROTOCOL_STORE_COLUMN_ICON,
40296
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 PIDGIN_PROTOCOL_STORE_N_COLUMNS,
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 } PidginProtocolStoreColumn;
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 G_BEGIN_DECLS
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 #define PIDGIN_TYPE_PROTOCOL_STORE pidgin_protocol_store_get_type()
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 G_DECLARE_FINAL_TYPE(PidginProtocolStore, pidgin_protocol_store, PIDGIN,
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 PROTOCOL_STORE, GtkListStore)
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 /**
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 * pidgin_protocol_store_new:
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 * Creates a new #PidginProtocolStore that can be used anywhere a #GtkListStore
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * can be used.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 * Returns: (transfer full): The new #PidginProtocolStore instance.
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 *
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 * Since: 3.0.0
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 */
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 GtkListStore *pidgin_protocol_store_new(void);
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 G_END_DECLS
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67
c9900fc6e689 Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 #endif /* PIDGIN_PROTOCOL_STORE_H */

mercurial