This file is indexed.

/usr/include/libfm-qt/placesview.h is in libfm-qt-dev 0.12.0-14build2.

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
/*
 * Copyright (C) 2012 - 2015  Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
 *
 * 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.1 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 Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */


#ifndef FM_PLACESVIEW_H
#define FM_PLACESVIEW_H

#include "libfmqtglobals.h"
#include <QTreeView>
#include <libfm/fm.h>

#include <memory>
#include "core/filepath.h"

namespace Fm {

class PlacesModel;
class PlacesModelItem;

class LIBFM_QT_API PlacesView : public QTreeView {
    Q_OBJECT

public:
    explicit PlacesView(QWidget* parent = 0);
    virtual ~PlacesView();

    void setCurrentPath(Fm::FilePath path);

    const Fm::FilePath& currentPath() const {
        return currentPath_;
    }

    void chdir(Fm::FilePath path) {
        setCurrentPath(std::move(path));
    }

#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
    void setIconSize(const QSize& size) {
        // The signal QAbstractItemView::iconSizeChanged is only available after Qt 5.5.
        // To simulate the effect for older Qt versions, we override setIconSize().
        QAbstractItemView::setIconSize(size);
        onIconSizeChanged(size);
    }
#endif

Q_SIGNALS:
    void chdirRequested(int type, const Fm::FilePath& path);

protected Q_SLOTS:
    void onClicked(const QModelIndex& index);
    void onPressed(const QModelIndex& index);
    void onIconSizeChanged(const QSize& size);
    // void onMountOperationFinished(GError* error);

    void onOpenNewTab();
    void onOpenNewWindow();

    void onEmptyTrash();

    void onMountVolume();
    void onUnmountVolume();
    void onEjectVolume();
    void onUnmountMount();

    void onMoveBookmarkUp();
    void onMoveBookmarkDown();
    void onDeleteBookmark();
    void onRenameBookmark();

protected:
    void drawBranches(QPainter* /*painter*/, const QRect& /*rect*/, const QModelIndex& /*index*/) const {
        // override this method to inhibit drawing of the branch grid lines by Qt.
    }

    virtual void dragMoveEvent(QDragMoveEvent* event);
    virtual void dropEvent(QDropEvent* event);
    virtual void contextMenuEvent(QContextMenuEvent* event);

    virtual void commitData(QWidget* editor);

private:
    void onEjectButtonClicked(PlacesModelItem* item);
    void activateRow(int type, const QModelIndex& index);

private:
    std::shared_ptr<PlacesModel> model_;
    Fm::FilePath currentPath_;
};

}

#endif // FM_PLACESVIEW_H