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

PatchStatStrategy Class Reference

#include <ObjectStatStrategy.h>

Inheritance diagram for PatchStatStrategy:

ObjectStatStrategy List of all members.

Public Member Functions

 PatchStatStrategy ()
virtual ~PatchStatStrategy ()
virtual bool keyToStatus (const int &key, PMObjectPtr objPtr, PMSelectable::UI_Status &newStat)
virtual bool toggleStatus (PMObjectPtr objPtr, PMSelectable::UI_Status &newStat)
virtual bool setObjectStatus (PMSelectable::UI_Status newstatus, PMObjectPtr objPtr)

Constructor & Destructor Documentation

PatchStatStrategy::PatchStatStrategy  ) 
 

virtual PatchStatStrategy::~PatchStatStrategy  )  [inline, virtual]
 


Member Function Documentation

bool PatchStatStrategy::keyToStatus const int &  key,
PMObjectPtr  objPtr,
PMSelectable::UI_Status newStat
[virtual]
 

Returns the new status to the given key (respecting the old status of the patch).

Parameters:
key The userinput (the key which is pressed)
objPtr The object pointer (the patch pointer)
newStatus The new package status
Returns:
bool

Reimplemented from ObjectStatStrategy.

bool PatchStatStrategy::setObjectStatus PMSelectable::UI_Status  newstatus,
PMObjectPtr  objPtr
[virtual]
 

Sets the status of the patch AND the status of the patch packages

Parameters:
newStatus The new package status
objPtr The object pointer (e.g. a package pointer)
Returns:
bool

Reimplemented from ObjectStatStrategy.

bool PatchStatStrategy::toggleStatus PMObjectPtr  objPtr,
PMSelectable::UI_Status newStat
[virtual]
 

Toggles the patch status (e.g. from selected to unselected)

Parameters:
The object pointer
Returns:
bool

Reimplemented from ObjectStatStrategy.


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 04:52:34 2008 for yast2-ncurses by  doxygen 1.3.9.1