This file is indexed.

/usr/include/Wt/WReadOnlyProxyModel is in libwt-dev 3.3.4+dfsg-6ubuntu1.

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
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2011 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WREADONLY_PROXY_MODEL_H_
#define WREADONLY_PROXY_MODEL_H_

#include <Wt/WAbstractProxyModel>

namespace Wt {

/*! \class WReadOnlyProxyModel Wt/WReadOnlyProxyModel
 *  \brief A read-only wrapper for a source model
 *
 * This is a simple proxy model which provides a read-only view on a
 * source model. This is convenient for situations where you want to
 * share a common read-only source model between different sessions.
 *
 * \ingroup modelview
 */
class WT_API WReadOnlyProxyModel : public WAbstractProxyModel
{
public:
  /*! \brief Constructor.
   */
  WReadOnlyProxyModel(WObject *parent = 0);

  /*! \brief Maps a source model index to the proxy model.
   *
   * Returns the sourceIndex unmodified.
   */
  virtual WModelIndex mapFromSource(const WModelIndex& sourceIndex) const;

  /*! \brief Maps a proxy model index to the source model.
   *
   * Returns the proxyIndex unmodified.
   */
  virtual WModelIndex mapToSource(const WModelIndex& proxyIndex) const;

  /*! \brief Returns the number of columns.
   *
   * This returns the column count of the source model.
   */
  virtual int columnCount(const WModelIndex& parent = WModelIndex()) const;

  /*! \brief Returns the number of rows.
   *
   * This returns the row count of the source model.
   */
  virtual int rowCount(const WModelIndex& parent = WModelIndex()) const;

  /*! \brief Returns the parent for a model index.
   *
   * Returns the parent of the given index in the source model.
   */
  virtual WModelIndex parent(const WModelIndex& index) const;

  /*! \brief Returns the child index for the given row and column.
   *
   * Returns the index in the source model.
   */
  virtual WModelIndex index(int row, int column,
			    const WModelIndex& parent = WModelIndex()) const;

  using WAbstractProxyModel::setData;

  /*! \brief Always returns \c false and has no effect.
   *
   */
  virtual bool setData(const WModelIndex& index, const boost::any& value, int role = EditRole);

  /*! \brief Always returns \c false and has no effect.
   *
   */
  virtual bool setItemData(const WModelIndex& index, const DataMap& values);

  using WAbstractProxyModel::setHeaderData;

  /*! \brief Always returns \c false and has no effect.
   *
   */
  virtual bool setHeaderData(int section, Orientation orientation, const boost::any& value, int role = EditRole);

  /*! \brief Always returns \c false and has no effect.
   *
   */
  virtual bool insertColumns(int column, int count, const WModelIndex& parent);

  /*! \brief Always returns \c false and has no effect.
   *
   */
  virtual bool removeColumns(int column, int count, const WModelIndex& parent);

  /*! \brief Has no effect.
   *
   */
  virtual void dropEvent(const WDropEvent& e, DropAction action,
			 int row, int column, const WModelIndex& parent);
};

}

#endif // WREADONLY_PROXY_MODEL_H_