mirror of https://notabug.org/acetone/ircabot.git
Captcha example
parent
65d93eb61b
commit
118309c3e8
|
@ -20,6 +20,9 @@
|
||||||
* Copyright (c) 2022 Acetone
|
* Copyright (c) 2022 Acetone
|
||||||
* Updated for IRCaBot project
|
* Updated for IRCaBot project
|
||||||
* Usage example:
|
* Usage example:
|
||||||
|
* #include <QApplication>
|
||||||
|
* int main(int argc, char *argv[]) {
|
||||||
|
* QApplication a(argc, argv);
|
||||||
* Captcha cp;
|
* Captcha cp;
|
||||||
* cp.randomize();
|
* cp.randomize();
|
||||||
* cp.generateText(5);
|
* cp.generateText(5);
|
||||||
|
@ -29,6 +32,7 @@
|
||||||
* f.close();
|
* f.close();
|
||||||
* }
|
* }
|
||||||
* qInfo() << cp.captchaText(); // answer
|
* qInfo() << cp.captchaText(); // answer
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "captcha.h"
|
#include "captcha.h"
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
* Copyright (c) 2022 Acetone
|
* Copyright (c) 2022 Acetone
|
||||||
* Updated for IRCaBot project
|
* Updated for IRCaBot project
|
||||||
* Usage example:
|
* Usage example:
|
||||||
|
* #include <QApplication>
|
||||||
|
* int main(int argc, char *argv[]) {
|
||||||
|
* QApplication a(argc, argv);
|
||||||
* Captcha cp;
|
* Captcha cp;
|
||||||
* cp.randomize();
|
* cp.randomize();
|
||||||
* cp.generateText(5);
|
* cp.generateText(5);
|
||||||
|
@ -29,6 +32,7 @@
|
||||||
* f.close();
|
* f.close();
|
||||||
* }
|
* }
|
||||||
* qInfo() << cp.captchaText(); // answer
|
* qInfo() << cp.captchaText(); // answer
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CAPTCHA_H
|
#ifndef CAPTCHA_H
|
||||||
|
|
Loading…
Reference in New Issue