BZRH Class Reference

BZRH provides commands t query bugzilla.redhat.com. More...

#include <bzrh.h>

Inheritance diagram for BZRH:

Plugin

List of all members.

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


Detailed Description

BZRH provides commands t query bugzilla.redhat.com.

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

string BZRH::getBugInfos ( string  bug,
bool  displayNotFound 
)

Retrieve informations about a bug.

Retrieve informations about a bug

Parameters:
bug Bug number
displayNotFound Tell if "bug not found must be displayed
Returns:
Bug's infos

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

Parameters:
pattern Search pattern
max max results
Returns:
vector containing 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().


The documentation for this class was generated from the following files:

Generated on Sun Aug 16 15:28:36 2009 for trustyRC by  doxygen 1.5.8