This file is indexed.

/usr/include/libinfgtk-0.7/libinfgtk/inf-gtk-browser-model.h is in libinfinity-0.7-dev 0.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/* libinfinity - a GObject-based infinote implementation
 * Copyright (C) 2007-2015 Armin Burgmeier <armin@arbur.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

#ifndef __INF_GTK_BROWSER_MODEL_H__
#define __INF_GTK_BROWSER_MODEL_H__

#include <libinfinity/client/infc-browser.h>
#include <libinfinity/common/inf-discovery.h>

#include <gtk/gtk.h>

#include <glib-object.h>

G_BEGIN_DECLS

#define INF_GTK_TYPE_BROWSER_MODEL                 (inf_gtk_browser_model_get_type())
#define INF_GTK_BROWSER_MODEL(obj)                 (G_TYPE_CHECK_INSTANCE_CAST((obj), INF_GTK_TYPE_BROWSER_MODEL, InfGtkBrowserModel))
#define INF_GTK_IS_BROWSER_MODEL(obj)              (G_TYPE_CHECK_INSTANCE_TYPE((obj), INF_GTK_TYPE_BROWSER_MODEL))
#define INF_GTK_BROWSER_MODEL_GET_IFACE(inst)      (G_TYPE_INSTANCE_GET_INTERFACE((inst), INF_GTK_TYPE_BROWSER_MODEL, InfGtkBrowserModelInterface))

#define INF_GTK_TYPE_BROWSER_MODEL_STATUS          (inf_gtk_browser_model_status_get_type())

/**
 * InfGtkBrowserModel:
 *
 * #InfGtkBrowserModel is an opaque data type. You should only access it
 * via the public API functions.
 */
typedef struct _InfGtkBrowserModel InfGtkBrowserModel;
typedef struct _InfGtkBrowserModelInterface InfGtkBrowserModelInterface;

/**
 * InfGtkBrowserModelStatus:
 * @INF_GTK_BROWSER_MODEL_INVALID: Invalid state. A healthy item should not
 * have this status.
 * @INF_GTK_BROWSER_MODEL_DISCOVERED: The item was discovered with a
 * #InfDiscovery, but no attempt has been made at connecting to it.
 * @INF_GTK_BROWSER_MODEL_RESOLVING: The item was discovered with a
 * #InfDiscovery and is currently being resolved, see inf_discovery_resolve().
 * @INF_GTK_BROWSER_MODEL_DISCONNECTED: A connection attempt to the remote
 * site was not successful, or the connection was lost. The connection
 * parameters are known, but currently no connection is established.
 * @INF_GTK_BROWSER_MODEL_CONNECTING: A connection attempt to the remote site
 * is currently in progress.
 * @INF_GTK_BROWSER_MODEL_CONNECTED: A connection to the remote site has been
 * established and its directory can be browsed.
 * @INF_GTK_BROWSER_MODEL_ERROR: An error has occured with this item. The
 * column with index %INF_GTK_BROWSER_MODEL_COL_ERROR has more information
 * about the error that occurred.
 *
 * The different statuses an item in the #InfGtkBrowserModel can have. The
 * status of an item is only defined for toplevel items in the tree.
 */
typedef enum _InfGtkBrowserModelStatus {
  INF_GTK_BROWSER_MODEL_INVALID,
  INF_GTK_BROWSER_MODEL_DISCOVERED,
  INF_GTK_BROWSER_MODEL_RESOLVING,
  INF_GTK_BROWSER_MODEL_DISCONNECTED,
  INF_GTK_BROWSER_MODEL_CONNECTING,
  INF_GTK_BROWSER_MODEL_CONNECTED,
  INF_GTK_BROWSER_MODEL_ERROR
} InfGtkBrowserModelStatus;

/**
 * InfGtkBrowserModelColumn:
 * @INF_GTK_BROWSER_MODEL_COL_DISCOVERY_INFO: The #InfDiscoveryInfo of a
 * discovered toplevel item, or %NULL if the item was not discovered.
 * @INF_GTK_BROWSER_MODEL_COL_DISCOVERY: The #InfDiscovery object that the
 * item has been discovered with, if any.
 * @INF_GTK_BROWSER_MODEL_COL_BROWSER: The #InfBrowser with which this item
 * is being browsed, or %NULL if no browser is available.
 * @INF_GTK_BROWSER_MODEL_COL_STATUS: The status of this item. This column is
 * only valid for toplevel items, i.e. for connections to directories.
 * @INF_GTK_BROWSER_MODEL_COL_NAME: The name of the item as a simple string.
 * @INF_GTK_BROWSER_MODEL_COL_ERROR: If an error has occurred with the item,
 * for example the connection failed, or a node exploration failed, this
 * column contains a #GError with more error information.
 * @INF_GTK_BROWSER_MODEL_COL_NODE: The #InfBrowserIter pointing to the
 * corresponding node of the #InfBrowser.
 * @INF_GTK_BROWSER_MODEL_NUM_COLS: The total number of columns of a
 * #InfGtkBrowserModel.
 * 
 * The various #GtkTreeModel columns that a tree model implementing
 * #InfGtkBrowserModel must support.
 */
typedef enum _InfGtkBrowserModelColumn {
  INF_GTK_BROWSER_MODEL_COL_DISCOVERY_INFO,
  INF_GTK_BROWSER_MODEL_COL_DISCOVERY,
  INF_GTK_BROWSER_MODEL_COL_BROWSER,
  INF_GTK_BROWSER_MODEL_COL_STATUS, /* only toplevel */
  INF_GTK_BROWSER_MODEL_COL_NAME,
  INF_GTK_BROWSER_MODEL_COL_ERROR,
  INF_GTK_BROWSER_MODEL_COL_NODE,

  INF_GTK_BROWSER_MODEL_NUM_COLS
} InfGtkBrowserModelColumn;

/**
 * InfGtkBrowserModelInterface:
 * @set_browser: Default signal handler of the
 * #InfGtkBrowserModel::set-browser signal.
 * @resolve: Virtual function for resolving a discovered infinote service.
 * @browser_iter_to_tree_iter: Virtual function for converting a
 * #InfBrowserIter to a #GtkTreeIter.
 *
 * This structure contains virtual functions and signal handlers of the
 * #InfGtkBrowserModel interface.
 */
struct _InfGtkBrowserModelInterface {
  /*< private >*/
  GTypeInterface parent;

  /*< public >*/

  /* signals */
  void(*set_browser)(InfGtkBrowserModel* model,
                     GtkTreePath* path,
                     GtkTreeIter* iter,
                     InfBrowser* old_browser,
                     InfBrowser* new_browser);

  /* virtual functions */
  void(*resolve)(InfGtkBrowserModel* model,
                 InfDiscovery* discovery,
                 InfDiscoveryInfo* info);

  gboolean(*browser_iter_to_tree_iter)(InfGtkBrowserModel* model,
                                       InfBrowser* browser,
                                       const InfBrowserIter* iter,
                                       GtkTreeIter* tree_iter);
};

GType
inf_gtk_browser_model_status_get_type(void) G_GNUC_CONST;

GType
inf_gtk_browser_model_get_type(void) G_GNUC_CONST;

void
inf_gtk_browser_model_set_browser(InfGtkBrowserModel* model,
                                  GtkTreePath* path,
                                  GtkTreeIter* iter,
                                  InfBrowser* old_browser,
                                  InfBrowser* new_browser);

void
inf_gtk_browser_model_resolve(InfGtkBrowserModel* model,
                              InfDiscovery* discovery,
                              InfDiscoveryInfo* info);

gboolean
inf_gtk_browser_model_browser_iter_to_tree_iter(InfGtkBrowserModel* model,
                                                InfBrowser* browser,
                                                const InfBrowserIter* iter,
                                                GtkTreeIter* tree_iter);

G_END_DECLS

#endif /* __INF_GTK_BROWSER_MODEL_H__ */

/* vim:set et sw=2 ts=2: */