This file is indexed.

/usr/include/unity-2d-private/dragitem.h is in libunity-2d-private-dev 5.10.0-0ubuntu1.

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
/*
 * Copyright (C) 2011 Canonical, Ltd.
 *
 * Authors:
 *  Olivier Tilloy <olivier.tilloy@canonical.com>
 *
 * 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; version 3.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef DeclarativeDragItem_H
#define DeclarativeDragItem_H

#include <QDeclarativeItem>

class QMimeData;
class QDeclarativeComponent;

class DeclarativeDragItem : public QDeclarativeItem
{
    Q_OBJECT

    Q_PROPERTY(QDeclarativeComponent* delegate READ delegate WRITE setDelegate NOTIFY delegateChanged RESET resetDelegate)
    Q_PROPERTY(Qt::DropActions supportedActions READ supportedActions WRITE setSupportedActions NOTIFY supportedActionsChanged)
    Q_PROPERTY(Qt::DropAction defaultAction READ defaultAction WRITE setDefaultAction NOTIFY defaultActionChanged)

public:
    DeclarativeDragItem(QDeclarativeItem* parent=0);
    ~DeclarativeDragItem();

    // getters and setters
    QDeclarativeComponent* delegate() const;
    void setDelegate(QDeclarativeComponent* delegate);
    void resetDelegate();
    Qt::DropActions supportedActions() const;
    void setSupportedActions(Qt::DropActions actions);
    Qt::DropAction defaultAction() const;
    void setDefaultAction(Qt::DropAction action);

protected:
    // override in child classes to set a non-empty mime data
    virtual QMimeData* mimeData() const;

Q_SIGNALS:
    void delegateChanged();
    void supportedActionsChanged();
    void defaultActionChanged();
    void drop(int action);

    // Can’t pass around the mouse events as parameters
    // as QDeclarativeMouseEvent is a private class.
    void pressed();
    void released();

protected:
    // reimplemented
    void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
    void mousePressEvent(QGraphicsSceneMouseEvent* event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);

private:
    QDeclarativeComponent* m_delegate;
    Qt::DropActions m_supportedActions;
    Qt::DropAction m_defaultAction;
};

#endif // DeclarativeDragItem_H