/usr/include/BALL/FORMAT/pubchemDownloader.h is in libball1.4-dev 1.4.1+20111206-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 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_FORMAT_PUBCHEMDOWNLOADER_H
#define BALL_FORMAT_PUBCHEMDOWNLOADER_H
#ifndef BALL_SYSTEM_SIMPLEDOWNLOADER_H
# include <BALL/SYSTEM/simpleDownloader.h>
#endif
#include <QDomDocument>
namespace BALL
{
class BALL_EXPORT PubChemDownloader
: public QObject
{
Q_OBJECT
public:
PubChemDownloader();
virtual ~PubChemDownloader() {};
bool downloadSDF(const String& query, const String& filename, bool blocking = true);
public slots:
void downloadFinished(bool error);
void dataTransferProgress(qint64 done, qint64 total);
signals:
void downloadProgress(qint64 done, qint64 total);
void downloadFinished(const QString& filename);
protected:
QDomDocument pollPubChem_(const QString& request_id);
void buildSimpleTree_(const String& names);
void addTextNode_(const String& value);
String esearch_base_url_;
String pug_base_url_;
SimpleDownloader dl_;
QDomDocument request_;
QDomElement last_node_;
QDomElement current_node_;
QFile outfile_;
QFtp ftp_;
};
}
#endif // BALL_FORMAT_PUBCHEMDOWNLOADER_H
|