This file is indexed.

/usr/include/libktorrent/interfaces/trackerinterface.h is in libktorrent-dev 1.3.1-5.

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
/***************************************************************************
 *   Copyright (C) 2009 by Joris Guisson                                   *
 *   joris.guisson@gmail.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; 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, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 ***************************************************************************/
#ifndef BT_TRACKERINTERFACE_H
#define BT_TRACKERINTERFACE_H

#include <QDateTime>
#include <kurl.h>
#include <ktorrent_export.h>
#include <util/constants.h>

namespace bt 
{
	enum TrackerStatus
	{
		TRACKER_OK,TRACKER_ANNOUNCING,TRACKER_ERROR,TRACKER_IDLE
	};
	
	/**
		Interface class for trackers to be used in plugins
	 */
	class KTORRENT_EXPORT TrackerInterface
	{
	public:
		TrackerInterface(const KUrl & url);
		virtual ~TrackerInterface();
		
		/// See if a start request succeeded
		bool isStarted() const {return started;}
		
		/// get the tracker url
		KUrl trackerURL() const {return url;}
		
		/// Get the tracker status
		TrackerStatus trackerStatus() const {return status;}
		
		/// Get a string of the current tracker status
		QString trackerStatusString() const;
		
		/**
		* Get the update interval in ms
		* @return interval
		*/
		Uint32 getInterval() const {return interval;}
		
		/// Set the interval
		void setInterval(Uint32 i) {interval = i;}
		
		/// Get the number of seeders
		int getNumSeeders() const {return seeders;}
		
		/// Get the number of leechers
		int getNumLeechers() const {return leechers;}
		
		/// Get the number of times the torrent was downloaded
		int getTotalTimesDownloaded() const {return total_downloaded;}
		
		/// Enable or disable the tracker
		void setEnabled(bool on) {enabled = on;}
		
		/// Is the tracker enabled
		bool isEnabled() const {return enabled;}
		
		/// Get the time in seconds to the next tracker update
		Uint32 timeToNextUpdate() const;
		
		/// Reset the tracker 
		virtual void reset();
		
	protected:
		KUrl url;
		Uint32 interval;
		int seeders;
		int leechers;
		int total_downloaded;
		bool enabled;
		TrackerStatus status;
		QDateTime request_time;
		QString error;
		QString warning;
		bool started;
	};

}

#endif // BT_TRACKERINTERFACE_H