#include <bzrh.h>
Public Member Functions | |
BZRH (BotKernel *) | |
Constructor. | |
vector< string > | searchBugs (string, string) |
Search for bugs on bugzilla. | |
string | getBugInfos (string, bool) |
Retrieve informations about a bug. | |
Static Public Member Functions | |
static int | writer (char *, size_t, size_t, string *) |
writer call back function used by curl |
BZRH (Bugzilla RedHat) is a plugin that allow users to query bugzilla.redhat.com to retrieve informations about bugs. This plugin uses libcurl to access to the website threw HTTPS protocol
Definition at line 44 of file bzrh.h.
BZRH::BZRH | ( | BotKernel * | b | ) |
Constructor.
Constructor
Definition at line 34 of file bzrh.cpp.
References Plugin::author, Plugin::bindFunction(), Plugin::description, IN_ALL_MSGS, IN_COMMAND_HANDLER, Plugin::name, and Plugin::version.
string BZRH::getBugInfos | ( | string | bug, | |
bool | displayNotFound | |||
) |
Retrieve informations about a bug.
Retrieve informations about a bug
bug | Bug number | |
displayNotFound | Tell if "bug not found must be displayed |
Definition at line 140 of file bzrh.cpp.
References Tools::cleanHTML(), Tools::urlencode(), and writer().
Referenced by bug(), and checkBug().
vector< string > BZRH::searchBugs | ( | string | pattern, | |
string | max | |||
) |
Search for bugs on bugzilla.
Search for bugs on bugzilla
pattern | Search pattern | |
max | max results |
Definition at line 51 of file bzrh.cpp.
References Tools::cleanHTML(), Tools::intToStr(), Tools::strToUnsignedInt(), Tools::urlencode(), and writer().
Referenced by bzsearch().
int BZRH::writer | ( | char * | data, | |
size_t | size, | |||
size_t | nmemb, | |||
string * | buffer | |||
) | [static] |
writer call back function used by curl
Definition at line 228 of file bzrh.cpp.
Referenced by getBugInfos(), and searchBugs().