zypp::detail::ScriptImplIf Class Reference

Abstract Script implementation interface. More...

#include <ScriptImplIf.h>

Inheritance diagram for zypp::detail::ScriptImplIf:
[legend]

List of all members.

Public Types

typedef Script ResType

Public Member Functions

virtual unsigned mediaNr () const
 Overloaded ResObjectImpl attribute.
virtual bool doAvailable () const
 Check whether a script is available.
virtual std::string doScriptInlined () const
 Return an inlined script if available.
virtual OnMediaLocation doScriptLocation () const
 Location of the script, unless it is available inlined.
virtual bool undoAvailable () const
 Check whether a script to undo the change is available.
virtual std::string undoScriptInlined () const
 Return an inlined undo script if available.
virtual OnMediaLocation undoScriptLocation () const
 Location of the undo script, unless it is available inlined.


Detailed Description

Abstract Script implementation interface.

Definition at line 34 of file ScriptImplIf.h.


Member Typedef Documentation

typedef Script zypp::detail::ScriptImplIf::ResType

Definition at line 37 of file ScriptImplIf.h.


Member Function Documentation

unsigned zypp::detail::ScriptImplIf::mediaNr (  )  const [virtual]

Overloaded ResObjectImpl attribute.

Returns:
The doScriptLocation media number or 0 if do-script is inlined.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 30 of file ScriptImplIf.cc.

References doScriptInlined(), and doScriptLocation().

bool zypp::detail::ScriptImplIf::doAvailable (  )  const [virtual]

Check whether a script is available.

Definition at line 26 of file ScriptImplIf.cc.

References doScriptInlined(), doScriptLocation(), and zypp::OnMediaLocation::filename().

std::string zypp::detail::ScriptImplIf::doScriptInlined (  )  const [virtual]

Return an inlined script if available.

Otherwise it is available at doScriptLocation.

Reimplemented in zypp::detail::ScriptImpl, zypp::repo::cached::ScriptImpl, and zypp::storage::XMLScriptImpl.

Definition at line 33 of file ScriptImplIf.cc.

Referenced by doAvailable(), and mediaNr().

OnMediaLocation zypp::detail::ScriptImplIf::doScriptLocation (  )  const [virtual]

Location of the script, unless it is available inlined.

See also:
doScriptInlined

Reimplemented in zypp::repo::cached::ScriptImpl.

Definition at line 36 of file ScriptImplIf.cc.

Referenced by doAvailable(), and mediaNr().

bool zypp::detail::ScriptImplIf::undoAvailable (  )  const [virtual]

Check whether a script to undo the change is available.

Definition at line 39 of file ScriptImplIf.cc.

References zypp::OnMediaLocation::filename(), undoScriptInlined(), and undoScriptLocation().

std::string zypp::detail::ScriptImplIf::undoScriptInlined (  )  const [virtual]

Return an inlined undo script if available.

Otherwise it is available at undoScriptLocation.

Reimplemented in zypp::detail::ScriptImpl, zypp::repo::cached::ScriptImpl, and zypp::storage::XMLScriptImpl.

Definition at line 43 of file ScriptImplIf.cc.

Referenced by undoAvailable().

OnMediaLocation zypp::detail::ScriptImplIf::undoScriptLocation (  )  const [virtual]

Location of the undo script, unless it is available inlined.

See also:
undoScriptInlined

Reimplemented in zypp::repo::cached::ScriptImpl.

Definition at line 46 of file ScriptImplIf.cc.

Referenced by undoAvailable().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:19 2007 for libzypp by  doxygen 1.5.3