This file is indexed.

/usr/include/gnucash/quickfillcell.h is in gnucash-common 1:2.6.12-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
/********************************************************************\
 * quickfillcell.h -- autocompletion based on memorized history     *
 *                                                                  *
 * This program is free software; you can redistribute it and/or    *
 * modify it under the terms of the GNU General Public License as   *
 * published by the Free Software Foundation; either version 2 of   *
 * the License, or (at your option) any later version.              *
 *                                                                  *
 * This program 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 General Public License for more details.                     *
 *                                                                  *
 * You should have received a copy of the GNU General Public License*
 * along with this program; if not, contact:                        *
 *                                                                  *
 * Free Software Foundation           Voice:  +1-617-542-5942       *
 * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
 * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
 *                                                                  *
\********************************************************************/

/** @addtogroup Cell Cell
 * @{
 * @file quickfillcell.h
 * @struct QuickFillCell
 * @brief The QuickFillCell implements a text cell with quick-fill
 * capabilities.  By "quick fill" we mean a cell that will
 * automatically sentence-complete the entry after the user
 * typed a sufficient number of letters to identify a unique
 * entry.
 *
 * On the output side, this is just a plain text cell.
 */
/* HISTORY:
 * Copyright (c) 1997, 1998 Linas Vepstas
 * Copyright (c) 2000 Dave Peticolas
 */

#ifndef QUICKFILL_CELL_H
#define QUICKFILL_CELL_H

#include "basiccell.h"
#include "QuickFill.h"

typedef struct
{
    BasicCell cell;
    QuickFill *qf;       /** quickfill-tree handled by this cell */
    QuickFillSort sort;  /** determines order of strings matched.
                          * default is QUICKFILL_LIFO. */
    char *original;  /** original string entered in original case */
    gboolean use_quickfill_cache;  /** If TRUE, we don't own the qf */
} QuickFillCell;

BasicCell *      gnc_quickfill_cell_new (void);

/** sets the current cell value to the indicated string, simultaneously adding
 * the string to the quick-fill tree.
 */
void             gnc_quickfill_cell_set_value (QuickFillCell *cell,
                                               const char *value);

void             gnc_quickfill_cell_set_sort (QuickFillCell *cell,
                                              QuickFillSort sort);

void             gnc_quickfill_cell_add_completion (QuickFillCell *cell,
                                                    const char *completion);

/** Lets the cell use the given shared quickfill object instead of the
 * one it owns internally. The cell will not delete the shared
 * quickfill upon destruction. */
void
gnc_quickfill_cell_use_quickfill_cache (QuickFillCell *cell, QuickFill *shared_qf);
/** @} */
#endif