This file is indexed.

/usr/include/lastfm/AuthenticatedUser is in liblastfm-dev 0.4.0~really0.3.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
/*
   Copyright 2009 Last.fm Ltd. 
      - Primarily authored by Max Howell, Jono Cole and Doug Mansell

   This file is part of liblastfm.

   liblastfm 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 3 of the License, or
   (at your option) any later version.

   liblastfm 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 liblastfm.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LASTFM_USER_H
#define LASTFM_USER_H

#include <lastfm/ws.h>
#include <QString>
#include <QUrl>

namespace lastfm
{
    class LASTFM_DLLEXPORT User
    {
        QString m_name;
    
    public:    
        User( const QString& name ) : m_name( name ), m_match( -1.0f )
        {}

        operator QString() const { return m_name; }
        QString name() const { return m_name; }
    
        /** use Tag::list() on the response to get a WeightedStringList */
        QNetworkReply* getTopTags() const;

        /** use User::list() on the response to get a QList<User> */
        QNetworkReply* getFriends() const;
        QNetworkReply* getNeighbours() const;
    
        QNetworkReply* getPlaylists() const;
        QNetworkReply* getTopArtists() const;
        QNetworkReply* getRecentTracks() const;
        QNetworkReply* getRecentArtists() const;
        QNetworkReply* getRecentStations() const;
    
        static QList<User> list( QNetworkReply* );
    
    //////
        QUrl smallImageUrl() const { return m_smallImage; }
        QUrl mediumImageUrl() const { return m_mediumImage; }
        QUrl largeImageUrl() const { return m_largeImage; }
    
        QString realName() const { return m_realName; }
    
        /** the user's profile page at www.last.fm */
        QUrl www() const;
    
        /** Returns the match between the logged in user and the user which this
          * object represents (if < 0.0f then not set) */
        float match() const { return m_match; }
    
    private:
        QUrl m_smallImage;
        QUrl m_mediumImage;
        QUrl m_largeImage;
    
        float m_match;
    
        QString m_realName;
        
        QMap<QString, QString> params( const QString& method ) const;
    };


    /** The authenticated user is special, as some webservices only work for him */
    class LASTFM_DLLEXPORT AuthenticatedUser : public User
    {
        using User::match; //hide as not useful
    
    public:
        /** the authenticated User */
        AuthenticatedUser() : User( lastfm::ws::Username )
        {}    

        /** you can only get information about the autheticated user */
        static QNetworkReply* getInfo();
    
        /** a verbose string, eg. "A man with 36,153 scrobbles" */
        static QString getInfoString( QNetworkReply* );
        
        // pass the result to Artist::list(), if you want the other data 
        // you have to parse the lfm() yourself members
        // http://www.last.fm/api/show?service=388
        static QNetworkReply* getRecommendedArtists();
    };
}

#endif