This file is indexed.

/usr/include/KTp/Logger/log-entity.h is in libktp-dev 4:15.12.3-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
 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
/*
 * Copyright (C) 2013  Daniel Vrátil <dvratil@redhat.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 St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifndef KTP_LOGENTITY_H
#define KTP_LOGENTITY_H

#include <QSharedDataPointer>
#include <QString>
#include <QMetaType>

#include <KTp/ktpcommoninternals_export.h>

#include <TelepathyQt/Constants>

namespace KTp {

/**
 * @brief LogEntity represents a single contact or chat room
 *
 * @since 0.7
 * @author Daniel Vrátil <dvratil@redhat.com>
 */
class KTPCOMMONINTERNALS_EXPORT LogEntity
{
  public:
    /**
     * Constructs an invalid LogEntity.
     */
    explicit LogEntity();

    /**
     * Constructs a valid entity.
     *
     * @param entityType Whether the entity represents a contact or a chat room
     * @param id ID of the contact or chat room
     * @param alias Optional alias (username) of the contact or chat room
     */
    LogEntity(Tp::HandleType entityType, const QString &id,
              const QString &alias = QString());

    /**
     * Copy constructor.
     */
    LogEntity(const KTp::LogEntity &other);

    /**
     * Destructor.
     */
    ~LogEntity();

    /**
     * Assignment operator.
     */
    KTp::LogEntity& operator=(const KTp::LogEntity &other);

    /**
     * Compare operator.
     */
    bool operator==(const KTp::LogEntity &other);

    /**
     * Compare operator.
     */
    bool operator!=(const KTp::LogEntity &other);

    /**
     * Returns whether this entity is valid (i.e. whether entity type is valid and
     * whether id is not empty).
     */
    bool isValid() const;

    /**
     * Returns ID of contact or chat room that this entity represents.
     */
    QString id() const;

    /**
     * Returns username of the contact or name of the chat room this entity represents
     * or an empty string if none was set.
     */
    QString alias() const;

    /**
     * Returns whether this entity represents a contact or a chat room.
     */
    Tp::HandleType entityType() const;

  private:
    class Private;
    QSharedDataPointer<Private> d;
};

}

Q_DECLARE_METATYPE(KTp::LogEntity)

#endif // KTP_LOGENTITY_H