"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2b/bibExtractor.h" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

bibExtractor.h  (cb2bib-1.9.9):bibExtractor.h  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#ifndef BIBEXTRACTOR_H #ifndef BIBEXTRACTOR_H
#define BIBEXTRACTOR_H #define BIBEXTRACTOR_H
#include <QObject> #include <QObject>
class bibParser; class bibParser;
class metadataParser; class metadataParser;
class networkQuery; class networkQuery;
skipping to change at line 34 skipping to change at line 34
class bibExtractor : public QObject class bibExtractor : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit bibExtractor(QObject* parento = 0); explicit bibExtractor(QObject* parento = 0);
bibExtractor(bibParser* bp, metadataParser* mp, networkQuery* nq, QObject* p arento = 0); bibExtractor(bibParser* bp, metadataParser* mp, networkQuery* nq, QObject* p arento = 0);
~bibExtractor(); ~bibExtractor();
enum InputType {PlainText, Document}; enum InputType
{
PlainText,
Document
};
int extract(const QString& text, QString* bibtex); int extract(const QString& text, QString* bibtex);
int extract(const QStringList& input_fns, const QString& output_fn, const In putType& type); int extract(const QStringList& input_fns, const QString& output_fn, const In putType& type);
private: private:
InputType _input_type; InputType _input_type;
QEventLoop* _event_loop; QEventLoop* _event_loop;
QString _document_fn; QString _document_fn;
QString documentToString(const QString& fn) const; QString documentToString(const QString& fn) const;
QTextStream& cout; QTextStream& cout;
skipping to change at line 60 skipping to change at line 64
settings* _settingsP; settings* _settingsP;
void _extract(const QString& text); void _extract(const QString& text);
void extract(const QString& text); void extract(const QString& text);
void init(); void init();
private slots: private slots:
void copyMoveEnded(bool ok); void copyMoveEnded(bool ok);
void logMessage(const QString& ms) const; void logMessage(const QString& ms) const;
void proxyLogMessage() const; void proxyLogMessage() const;
void queryEnded(bool succeeded, const QString& targetPDF, const QString& tar getBib); void queryEnded(bool succeeded, const QString& targetPDF, const QString& tar getBib);
}; };
#endif #endif
 End of changes. 4 change blocks. 
4 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)