#include <item.h>
Public Member Functions | |
virtual | ~undo_item () |
undo_item () | |
void | act () |
virtual void | unfinished ()=0 |
Protected Member Functions | |
virtual void | action ()=0 |
Private Member Functions | |
undo_item (const undo_item &) | |
undo_item & | operator= (const undo_item &) |
Private Attributes | |
int | uid |
int | gid |
int | umask |
Definition at line 27 of file item.h.
virtual undo_item::~undo_item | ( | ) | [virtual] |
The destructor.
undo_item::undo_item | ( | ) |
The default constructor.
undo_item::undo_item | ( | const undo_item & | ) | [private] |
The copy constructor. Do not use.
void undo_item::act | ( | ) |
The act method is used to perform the undo action; it first sets the appropriate user, and then call sthe action() method.
virtual void undo_item::unfinished | ( | ) | [pure virtual] |
The unfinished method is used to print a warning about unfinished undo action. This happens when there is an undo error. The default action says nothing.
Implemented in undo_item_chmod, undo_item_chmod_errok, undo_item_message, undo_item_rename, undo_item_rmdir_bg, undo_item_rmdir_errok, and undo_item_unlink_errok.
virtual void undo_item::action | ( | ) | [protected, pure virtual] |
The action method is used to perform the undo action.
Implemented in undo_item_chmod, undo_item_chmod_errok, undo_item_message, undo_item_rename, undo_item_rmdir_bg, undo_item_rmdir_errok, and undo_item_unlink_errok.
The assignment operator. Do not use.
int undo_item::uid [private] |
int undo_item::gid [private] |
int undo_item::umask [private] |