#include <fedoraproject.h>

Public Member Functions | |
| FedoraProject (BotKernel *) | |
| Constructor. | |
| string | whoowns (string) |
| Tells who owns a package. | |
| bool | loadFasFile (string) |
| Load FAS file. | |
| vector< string > | getFasUserInfos (string) |
| get FAS user infos | |
Static Public Member Functions | |
| static int | writer (char *, size_t, size_t, string *) |
| writer call back function used by curl | |
Private Attributes | |
| map< string, vector< string > > | usersInfos |
| FAS users infos. | |
Plugin that provides tools to retrieve informations about fedora project
Definition at line 45 of file fedoraproject.h.
| FedoraProject::FedoraProject | ( | BotKernel * | b | ) |
Constructor.
Constructor
Definition at line 34 of file fedoraproject.cpp.
References Plugin::addRequirement(), Plugin::author, Plugin::bindFunction(), Plugin::description, BotKernel::getDatasDir(), BotKernel::getSysLog(), IN_COMMAND_HANDLER, loadFasFile(), LogFile::log(), Plugin::name, Plugin::version, and WARNING.
| vector< string > FedoraProject::getFasUserInfos | ( | string | nick | ) |
get FAS user infos
Get FAS user infos Infos are (see https://admin.fedoraproject.org/accounts/group/dump/cla_done) :
Definition at line 127 of file fedoraproject.cpp.
References usersInfos.
Referenced by fas().
| bool FedoraProject::loadFasFile | ( | string | file | ) |
Load FAS file.
Load FAS file that contains FAS users informations
Definition at line 97 of file fedoraproject.cpp.
References Tools::stringToVector(), and usersInfos.
Referenced by FedoraProject(), and reloadfas().
| string FedoraProject::whoowns | ( | string | name | ) |
Tells who owns a package.
Tells who owns a package using https://admin.fedoraproject.org/pkgdb/packages/name/ webpage
| name | Package name |
Definition at line 55 of file fedoraproject.cpp.
References Tools::urlencode(), and writer().
Referenced by whoowns().
| int FedoraProject::writer | ( | char * | data, | |
| size_t | size, | |||
| size_t | nmemb, | |||
| string * | buffer | |||
| ) | [static] |
writer call back function used by curl
Definition at line 139 of file fedoraproject.cpp.
Referenced by whoowns().
map<string,vector<string> > FedoraProject::usersInfos [private] |
FAS users infos.
Definition at line 49 of file fedoraproject.h.
Referenced by getFasUserInfos(), and loadFasFile().
1.5.7.1