최초
git-svn-id: svn://192.168.0.12/source@48 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
51
ProxyProcess/scrawler.h
Normal file
51
ProxyProcess/scrawler.h
Normal file
@@ -0,0 +1,51 @@
|
||||
#ifndef SCRAWLER_H
|
||||
#define SCRAWLER_H
|
||||
|
||||
#include <QtWebKitWidgets>
|
||||
|
||||
class SCrawler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SCrawler();
|
||||
~SCrawler();
|
||||
void load(QStringList _strlistArgv);
|
||||
void saveFile();
|
||||
// static void Debug(QString _strFilename,QString _strData);
|
||||
void Debug(QString _strFilename,QString _strData);
|
||||
signals:
|
||||
void finished();
|
||||
private slots:
|
||||
void saveResult(bool ok);
|
||||
private:
|
||||
int m_nSelect;
|
||||
//QString m_strTableReply;
|
||||
QString m_strReper;
|
||||
QString m_strKeywordID;
|
||||
|
||||
QWebPage *m_page;
|
||||
QString m_strFile;
|
||||
QString m_strUrl;
|
||||
QString m_strTable;
|
||||
QString m_strFolder;
|
||||
|
||||
bool m_bUse;
|
||||
bool m_bLast;
|
||||
bool m_bError;
|
||||
|
||||
QString SqlString(QString _str);
|
||||
QString GetSafeUtf(QString _strData);
|
||||
int GetNumber(QString _str);
|
||||
|
||||
|
||||
QWebElement Find(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind);
|
||||
QWebElement FindMid(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind, const int _strStart, const int _strLength);
|
||||
QWebElement FindMid(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind, const int _strStart);
|
||||
QWebElement FindRight(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind);
|
||||
QWebElement FindLeft(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind);
|
||||
QList<QWebElement> FindAllMid(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind, const int _strStart, const int _strLength);
|
||||
QWebElementCollection Finds(const QWebElement _FindElement,const QString _strElement,const QString _strAttrib,const QString _strFind);
|
||||
void UpdateError(QString _strError);
|
||||
};
|
||||
|
||||
#endif // SCRAWLER_H
|
||||
Reference in New Issue
Block a user