home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
modules
/
PackageCallbacksInit.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
4KB
|
104 lines
/**
* File: modules/PackageCallbacksInit.ycp
* Package: yast2
* Summary: Initialize packager callbacks
* Authors: Jiri Srain <jsrain@suse.cz>
*
* $Id: PackageCallbacksInit.ycp 33643 2006-10-24 13:51:46Z lslezak $
*
* This module is used to initialize package manager callbacks
*/
{
module "PackageCallbacksInit";
textdomain "base";
import "Mode";
/**
* Register callbacks for media change
*/
global define void SetMediaCallbacks () {
Pkg::CallbackMediaChange ("PackageCallbacks::MediaChange");
Pkg::CallbackSourceChange ("PackageCallbacks::SourceChange");
}
global void SetScriptCallbacks()
{
Pkg::CallbackScriptStart("PackageCallbacks::ScriptStart");
Pkg::CallbackScriptProgress("PackageCallbacks::ScriptProgress");
Pkg::CallbackScriptProblem("PackageCallbacks::ScriptProblem");
Pkg::CallbackScriptFinish("PackageCallbacks::ScriptFinish");
Pkg::CallbackMessage("PackageCallbacks::Message");
}
/**
* Register package manager callbacks
*/
global define void InitPackageCallbacks() {
Pkg::CallbackStartProvide ("PackageCallbacks::StartProvide");
Pkg::CallbackProgressProvide ("PackageCallbacks::ProgressProvide");
Pkg::CallbackDoneProvide ("PackageCallbacks::DoneProvide");
Pkg::CallbackStartPackage ("PackageCallbacks::StartPackage");
Pkg::CallbackProgressPackage ("PackageCallbacks::ProgressPackage");
Pkg::CallbackDonePackage ("PackageCallbacks::DonePackage");
Pkg::CallbackStartDeltaDownload ("PackageCallbacks::StartDeltaProvide");
Pkg::CallbackProgressDeltaDownload ("PackageCallbacks::ProgressProvide");
Pkg::CallbackProblemDeltaDownload ("PackageCallbacks::ProblemDeltaDownload");
Pkg::CallbackFinishDeltaDownload ("PackageCallbacks::FinishPatchDeltaProvide");
Pkg::CallbackStartDeltaApply ("PackageCallbacks::StartDeltaApply");
Pkg::CallbackProgressDeltaApply ("PackageCallbacks::ProgressProvide");
Pkg::CallbackProblemDeltaApply ("PackageCallbacks::ProblemDeltaApply");
Pkg::CallbackFinishDeltaApply ("PackageCallbacks::FinishPatchDeltaProvide");
Pkg::CallbackStartPatchDownload ("PackageCallbacks::StartPatchProvide");
Pkg::CallbackProgressPatchDownload ("PackageCallbacks::ProgressProvide");
Pkg::CallbackProblemPatchDownload ("PackageCallbacks::ProblemPatchDownload");
Pkg::CallbackFinishPatchDownload ("PackageCallbacks::FinishPatchDeltaProvide");
// source create callbacks
Pkg::CallbackSourceCreateStart("PackageCallbacks::SourceCreateStart");
Pkg::CallbackSourceCreateProgress("PackageCallbacks::SourceCreateProgress");
Pkg::CallbackSourceCreateError("PackageCallbacks::SourceCreateError");
Pkg::CallbackSourceCreateEnd("PackageCallbacks::SourceCreateEnd");
// source probing callbacks
Pkg::CallbackSourceProbeStart("PackageCallbacks::SourceProbeStart");
Pkg::CallbackSourceProbeFailed("PackageCallbacks::SourceProbeFailed");
Pkg::CallbackSourceProbeSucceeded("PackageCallbacks::SourceProbeSucceeded");
Pkg::CallbackSourceProbeProgress("PackageCallbacks::SourceProbeProgress");
Pkg::CallbackSourceProbeError("PackageCallbacks::SourceProbeError");
Pkg::CallbackSourceProbeEnd("PackageCallbacks::SourceProbeEnd");
// source report callbacks
Pkg::CallbackSourceReportStart("PackageCallbacks::SourceReportStart");
Pkg::CallbackSourceReportProgress("PackageCallbacks::SourceReportProgress");
Pkg::CallbackSourceReportError("PackageCallbacks::SourceReportError");
Pkg::CallbackSourceReportEnd("PackageCallbacks::SourceReportEnd");
// @see bugzilla #183821
// Do not register these callbacks in case of AutoInstallation
if (Mode::autoinst() != true) {
// Signature-related callbacks
Pkg::CallbackAcceptUnsignedFile ("SignatureCheckCallbacks::AcceptUnsignedFile");
Pkg::CallbackAcceptUnknownGpgKey ("SignatureCheckCallbacks::AcceptUnknownGpgKey");
Pkg::CallbackImportGpgKey ("SignatureCheckCallbacks::ImportGpgKey");
Pkg::CallbackAcceptVerificationFailed ("SignatureCheckCallbacks::AcceptVerificationFailed");
Pkg::CallbackTrustedKeyAdded ("SignatureCheckCallbacks::TrustedKeyAdded");
Pkg::CallbackTrustedKeyRemoved ("SignatureCheckCallbacks::TrustedKeyRemoved");
Pkg::CallbackAcceptFileWithoutChecksum ("SignatureCheckCallbacks::AcceptFileWithoutChecksum");
}
SetMediaCallbacks ();
SetScriptCallbacks();
}
/* EOF */
}