FedoraProject Class Reference

Plugin in connection with fedora project. More...

#include <fedoraproject.h>

Inheritance diagram for FedoraProject:

Plugin

List of all members.

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.


Detailed Description

Plugin in connection with fedora project.

Plugin that provides tools to retrieve informations about fedora project

Definition at line 45 of file fedoraproject.h.


Constructor & Destructor Documentation

FedoraProject::FedoraProject ( BotKernel b  ) 


Member Function Documentation

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) :

  • mail
  • real name
  • status
    Returns:
    FAS user infos

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

Returns:
true is load is OK, else false

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

Parameters:
name Package name
Returns:
Package's owner

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().


Member Data Documentation

map<string,vector<string> > FedoraProject::usersInfos [private]

FAS users infos.

Definition at line 49 of file fedoraproject.h.

Referenced by getFasUserInfos(), and loadFasFile().


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

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