Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PMYouPatchInfo Class Reference

#include <PMYouPatchInfo.h>

Inheritance diagram for PMYouPatchInfo:

CountedRep Rep List of all members.

Public Member Functions

 PMYouPatchInfo (PMYouSettingsPtr settings)
 ~PMYouPatchInfo ()
PMError getDirectory (bool useMediaDir)
PMError getPatches (std::vector< PMYouPatchPtr > &patches)
PMError readDir (std::vector< PMYouPatchPtr > &patches, bool useMediaDir=true)
PMError readFile (const Pathname &path, const std::string &fileName, PMYouPatchPtr &patch)
PMError parsePackages (const std::string &packages, const PMYouPatchPtr &patch)
PMError parseFiles (const std::string &files, const PMYouPatchPtr &patch)
PMYouPackageDataProviderPtr packageDataProvider () const
PMError readDirectoryFile (const Pathname &, std::list< std::string > &patchFiles)
PMError processMediaDir ()
int mediaNumber (const PMYouPatchPtr &)

Protected Member Functions

std::string tagValueLocale (YOUPatchTagSet::Tags tagIndex, std::istream &input)
std::string tagValue (YOUPatchTagSet::Tags tagIndex, std::istream &input, const std::string &locale="")
std::string tagMultiValue (YOUPatchTagSet::Tags tagIndex, std::istream &input)
std::string tagValue (YOUPackageTagSet::Tags tag)
PMError createPackage (const PMYouPatchPtr &patch)
void readMediaMap (const Pathname &file)

Private Member Functions

 REP_BODY (PMYouPatchInfo)

Private Attributes

YOUPatchTagSet _patchTagSet
YOUPackageTagSet _packageTagSet
PMYouSettingsPtr _settings
MediaAccess _media
PMYouPackageDataProviderPtr _packageDataProvider
bool _doneMediaDir
bool _doneDirectory
int _totalPatchFileCount
std::map< std::string, int > _mediaMap

Detailed Description

Patch information.


Constructor & Destructor Documentation

PMYouPatchInfo::PMYouPatchInfo PMYouSettingsPtr  settings  ) 
 

Constructor

Parameters:
settings Pointer to object representing the YOU settings

PMYouPatchInfo::~PMYouPatchInfo  ) 
 

Destructor


Member Function Documentation

PMError PMYouPatchInfo::createPackage const PMYouPatchPtr &  patch  )  [protected]
 

PMError PMYouPatchInfo::getDirectory bool  useMediaDir  ) 
 

Get directory file listing all available patches.

PMError PMYouPatchInfo::getPatches std::vector< PMYouPatchPtr > &  patches  ) 
 

Get patches from specified location.

Parameters:
paths Object holding the path location information.
patches List of patch objects where the results are stored.
reload If true, reload patch files from server.
checkSig If true, check GPG signature of patch info files.

int PMYouPatchInfo::mediaNumber const PMYouPatchPtr &   ) 
 

PMYouPackageDataProviderPtr PMYouPatchInfo::packageDataProvider  )  const
 

PMError PMYouPatchInfo::parseFiles const std::string &  files,
const PMYouPatchPtr &  patch
 

Parse Files tag.

PMError PMYouPatchInfo::parsePackages const std::string &  packages,
const PMYouPatchPtr &  patch
 

Parse package info.

Parameters:
packages String containing the package information.
patch Patch the packages belong to.

PMError PMYouPatchInfo::processMediaDir  ) 
 

PMError PMYouPatchInfo::readDir std::vector< PMYouPatchPtr > &  patches,
bool  useMediaDir = true
 

Read patch info files from directory.

Parameters:
baseUrl Base of URL where patches are located.
patches List of patch objects where the results are stored.
checkSig If true, check GPG signature of patch info files.
processMediaDir If true, read patch file from media directory.

PMError PMYouPatchInfo::readDirectoryFile const Pathname ,
std::list< std::string > &  patchFiles
 

PMError PMYouPatchInfo::readFile const Pathname path,
const std::string &  fileName,
PMYouPatchPtr &  patch
 

Read patch info from file.

Parameters:
path File path of package info file.
fileName Name of patch file.
patch Patch object where the results are stored.

void PMYouPatchInfo::readMediaMap const Pathname file  )  [protected]
 

PMYouPatchInfo::REP_BODY PMYouPatchInfo   )  [private]
 

string PMYouPatchInfo::tagMultiValue YOUPatchTagSet::Tags  tagIndex,
std::istream &  input
[protected]
 

string PMYouPatchInfo::tagValue YOUPackageTagSet::Tags  tag  )  [protected]
 

string PMYouPatchInfo::tagValue YOUPatchTagSet::Tags  tagIndex,
std::istream &  input,
const std::string &  locale = ""
[protected]
 

string PMYouPatchInfo::tagValueLocale YOUPatchTagSet::Tags  tagIndex,
std::istream &  input
[protected]
 


Member Data Documentation

bool PMYouPatchInfo::_doneDirectory [private]
 

bool PMYouPatchInfo::_doneMediaDir [private]
 

MediaAccess PMYouPatchInfo::_media [private]
 

std::map<std::string,int> PMYouPatchInfo::_mediaMap [private]
 

PMYouPackageDataProviderPtr PMYouPatchInfo::_packageDataProvider [private]
 

YOUPackageTagSet PMYouPatchInfo::_packageTagSet [private]
 

YOUPatchTagSet PMYouPatchInfo::_patchTagSet [private]
 

PMYouSettingsPtr PMYouPatchInfo::_settings [private]
 

int PMYouPatchInfo::_totalPatchFileCount [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:33 2007 for yast2-packagemanager by doxygen 1.3.6