chatcleaner: inital url spam check. configurable url string list and
exceptions list for urls like pokerth.net ;-)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef URLCHECK_H
|
||||
#define URLCHECK_H
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
class UrlCheck: public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
UrlCheck();
|
||||
|
||||
void setUrlStrings(QStringList us) { urlStrings = us; }
|
||||
void setUrlExceptionStrings(QStringList ues) { urlExceptionStrings = ues; }
|
||||
bool run(QString);
|
||||
|
||||
private:
|
||||
|
||||
QStringList urlStrings;
|
||||
QStringList urlExceptionStrings;
|
||||
};
|
||||
|
||||
#endif // URLCHECK_H
|
||||
Reference in New Issue
Block a user