This file is indexed.

/usr/include/echonest/TypeInformation.h is in libechonest-dev 2.1.0-2.

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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/****************************************************************************************
 * Copyright (c) 2010-2012 Leo Franchi <lfranchi@kde.org>                               *
 *                                                                                      *
 * 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, see <http://www.gnu.org/licenses/>.                           *
 ****************************************************************************************/


#ifndef ECHONEST_TYPEINFORMATION_H
#define ECHONEST_TYPEINFORMATION_H

#include "echonest_export.h"

#include <qglobal.h>
#include <QStringList>
#include <QMetaType>

namespace Echonest {
    class ArtistInformationPrivate;
    class SongInformationPrivate;
    
    /**
     * This class describes what artist information to return with a query.
     * 
     * The default behaviour is NoInformation.
     */
    class ECHONEST_EXPORT ArtistInformation
    {
    public:
        enum ArtistInformationFlag {
            NoInformation = 0x0000,
            Audio = 0x0001,
            Biographies = 0x0002,
            Blogs = 0x0004,
            Familiarity = 0x0008,
            Hotttnesss = 0x0010,
            Images = 0x0020,
            News = 0x0040,
            Reviews = 0x0080,
            Terms = 0x0100,
            Urls = 0x200,
            Videos = 0x0400
        };
        Q_DECLARE_FLAGS( ArtistInformationFlags, ArtistInformationFlag )
        
        ArtistInformation();
        ArtistInformation( ArtistInformationFlags flags );
        ArtistInformation( ArtistInformationFlags flags, const QStringList& idSpaces );
        ArtistInformation( const ArtistInformation& other );
        ~ArtistInformation();
        ArtistInformation& operator=( const ArtistInformation& typeInfo );
        
        /**
         * The individual pieces of information to fetch for this artist.
         * 
         * Use \c setIdSpaces to set an id space for this query.
         */
        ArtistInformationFlags flags() const;
        void setArtistInformationFlags( ArtistInformationFlags flags );
        
        /**
         * The id spaces to limit this to. Do not include the "id:" prefix.
         */
        QStringList idSpaces() const;
        void setIdSpaces( const QStringList& idspaces );
       
        private:
            ArtistInformationPrivate* d_ptr;
            Q_DECLARE_PRIVATE( ArtistInformation )
    };
    
    Q_DECLARE_OPERATORS_FOR_FLAGS( ArtistInformation::ArtistInformationFlags )
    
    /**
     * This class describes what song information to return with a query.
     * 
     * The default behaviour is NoInformation.
     */
    class ECHONEST_EXPORT SongInformation
    {
    public:
        enum SongInformationFlag {
            AudioSummaryInformation = 0x001,
            Tracks = 0x002,
            Hotttnesss = 0x04,
            ArtistHotttnesss = 0x008,
            ArtistFamiliarity = 0x010,
            ArtistLocation = 0x020,
            SongType = 0x40,
            
            NoInformation = 0x800
        };
        Q_DECLARE_FLAGS( SongInformationFlags, SongInformationFlag )
        
        SongInformation();
        SongInformation( SongInformationFlags flags );
        SongInformation( SongInformationFlags flags, const QStringList& idSpaces );
        SongInformation( const SongInformation& other );
        ~SongInformation();
        SongInformation& operator=( const SongInformation& info );
        
        /**
         * The individual pieces of information to fetch for this song.
         *  If id spaces are desired,see \c setIdSpaces for more information.
         */
        SongInformationFlags flags() const;
        void setSongInformationFlags( SongInformationFlags flags );
        
        /**
         * The id spaces to limit this to. Do not include the "id:" prefix.
         */
        QStringList idSpaces() const;
        void setIdSpaces( const QStringList& idspaces );
        
    private:
        SongInformationPrivate* d_ptr;
        Q_DECLARE_PRIVATE( SongInformation )
        
    };
    
    Q_DECLARE_OPERATORS_FOR_FLAGS(SongInformation::SongInformationFlags)
}

Q_DECLARE_METATYPE( Echonest::ArtistInformation )
Q_DECLARE_METATYPE( Echonest::SongInformation )

#endif