This file is indexed.

/usr/include/BALL/VIEW/DIALOGS/downloadPDBFile.h is in libballview1.4-dev 1.4.3~beta1-3.

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
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//

#ifndef BALL_VIEW_DIALOGS_DOWNLOADPDBFILE_H
#define BALL_VIEW_DIALOGS_DOWNLOADPDBFILE_H

#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif

#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif

#ifndef BALL_DATATYPE_HASHSET_H
# include <BALL/DATATYPE/hashSet.h>
#endif

#include <BALL/VIEW/UIC/ui_downloadPDBFile.h>

#include <QtNetwork/QNetworkReply>

class QProgressBar;
class QNetworkAccessManager;

namespace BALL
{
	namespace VIEW
	{
		/** Dialog to search for and download structure files from the <a href="http://www.rcsb.org/">PDB data bank</a>.
				\ingroup ViewDialogs
		*/
		class BALL_VIEW_EXPORT DownloadPDBFile 
			: public QDialog,
				public Ui_DownloadPDBFileData,
				public ModularWidget
		{ 
				Q_OBJECT
			public:
				BALL_EMBEDDABLE(DownloadPDBFile, ModularWidget)

				///
				DownloadPDBFile(QWidget* parent = 0, const char* name = "DownloadPDBFileDialog", 
												bool modal = FALSE, Qt::WFlags fl = 0 );

				///
				~DownloadPDBFile();

				///
				virtual void initializeWidget(VIEW::MainControl& main_control);

				///
				virtual void fetchPreferences(INIFile& inifile);

				///
				virtual void writePreferences(INIFile& inifile);

				/** Set the prefix for the PDB.org url<br>
						Standard: http://www.rcsb.org/pdb/files/
				*/
				void setPrefix(String s) { prefix_ = s;}

				/** Set the suffix for the PDB.org url<br>
						Standard: (.pdb)
				*/
				void setSuffix(String s) { suffix_ = s;}

				///
				void checkMenu(MainControl& mc);

			public slots:

				///
				void slotDownload();

				///
				void idChanged();

				/// 
				virtual void abort();

				///
				void downloadFinished();

				///
				void downloadProgress(qint64 received, qint64 total);

			protected:

				//_
				void downloadStarted_();

				//_  
				void downloadEnded_();

				bool threadedDownload_(const String& url);
				void removeFile_(const String& filename);

				bool 										aborted_;
				bool 										error_;

				HashMap<String, QImage> image_cache_;

				// e.g. gif images if not supported
				HashSet<String> 				unsupported_images_;

				QAction* menu_id_;
				String   prefix_, suffix_;
				String   biounit_suffix_;

				// the current network reply
				QNetworkReply* current_reply_;

				// the current progress bar
				QProgressBar*  progress_bar_;
				QNetworkAccessManager* network_manager_;
		};

	} 
} //namespaces
#endif