// Code generated by "dbusutil-gen em -type Manager,Updater"; DO NOT EDIT.

package main

import (
	"github.com/linuxdeepin/go-lib/dbusutil"
)

func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods {
	return dbusutil.ExportedMethods{
		{
			Name:    "CheckUpgrade",
			Fn:      v.CheckUpgrade,
			InArgs:  []string{"checkMode", "checkOrder"},
			OutArgs: []string{"job"},
		},
		{
			Name:    "CleanArchives",
			Fn:      v.CleanArchives,
			OutArgs: []string{"job"},
		},
		{
			Name:   "CleanJob",
			Fn:     v.CleanJob,
			InArgs: []string{"jobId"},
		},
		{ //TODO
			Name:   "ConfirmRollback",
			Fn:     v.ConfirmRollback,
			InArgs: []string{"confirm"},
		},
		{ //TODO
			Name:    "CanRollback",
			Fn:      v.CanRollback,
			OutArgs: []string{"result", "info"},
		},
		{ //TODO
			Name:   "PowerOff",
			Fn:     v.PowerOff,
			InArgs: []string{"reboot"},
		},
		{
			Name:    "DistUpgradePartly",
			Fn:      v.DistUpgradePartly,
			InArgs:  []string{"mode", "needBackup"},
			OutArgs: []string{"job"},
		},
		{
			Name:    "FixError",
			Fn:      v.FixError,
			InArgs:  []string{"errType"},
			OutArgs: []string{"job"},
		},
		{
			Name:    "GetArchivesInfo",
			Fn:      v.GetArchivesInfo,
			OutArgs: []string{"info"},
		},
		{
			Name:    "GetHistoryLogs",
			Fn:      v.GetHistoryLogs,
			OutArgs: []string{"changeLogs"},
		},
		{
			Name:    "GetUpdateLogs",
			Fn:      v.GetUpdateLogs,
			InArgs:  []string{"updateType"},
			OutArgs: []string{"changeLogs"},
		},
		{
			Name:   "HandleSystemEvent",
			Fn:     v.HandleSystemEvent,
			InArgs: []string{"eventType"},
		},
		{
			Name:    "InstallPackage",
			Fn:      v.InstallPackage,
			InArgs:  []string{"jobName", "packages"},
			OutArgs: []string{"job"},
		},
		{
			Name:    "InstallPackageFromRepo",
			Fn:      v.InstallPackageFromRepo,
			InArgs:  []string{"jobName", "sourceListPath", "repoListPath", "cachePath", "packageName"},
			OutArgs: []string{"jobPath"},
		},
		{
			Name:    "PackageExists",
			Fn:      v.PackageExists,
			InArgs:  []string{"pkgId"},
			OutArgs: []string{"exist"},
		},
		{
			Name:    "PackageInstallable",
			Fn:      v.PackageInstallable,
			InArgs:  []string{"pkgId"},
			OutArgs: []string{"installable"},
		},
		{
			Name:    "PackagesDownloadSize",
			Fn:      v.PackagesDownloadSize,
			InArgs:  []string{"packages"},
			OutArgs: []string{"outArg0"},
		},
		{
			Name:    "PackagesSize",
			Fn:      v.PackagesSize,
			InArgs:  []string{"packages"},
			OutArgs: []string{"outArg0"},
		},
		{
			Name:   "PauseJob",
			Fn:     v.PauseJob,
			InArgs: []string{"jobId"},
		},
		{
			Name:    "PrepareDistUpgradePartly",
			Fn:      v.PrepareDistUpgradePartly,
			InArgs:  []string{"mode"},
			OutArgs: []string{"job"},
		},
		{
			Name:   "PrepareFullScreenUpgrade",
			Fn:     v.PrepareFullScreenUpgrade,
			InArgs: []string{"option"},
		},
		{
			Name:    "QueryAllSizeWithSource",
			Fn:      v.QueryAllSizeWithSource,
			InArgs:  []string{"mode"},
			OutArgs: []string{"outArg0"},
		},
		{
			Name:   "RegisterAgent",
			Fn:     v.RegisterAgent,
			InArgs: []string{"path"},
		},
		{ // TODO
			Name:    "RemovePackage",
			Fn:      v.RemovePackage,
			InArgs:  []string{"jobName", "packages"},
			OutArgs: []string{"job"},
		},
		{
			Name:   "SetAutoClean",
			Fn:     v.SetAutoClean,
			InArgs: []string{"enable"},
		},
		{
			Name:   "SetUpdateSources",
			Fn:     v.SetUpdateSources,
			InArgs: []string{"updateType", "repoType", "repoConfig", "isReset"},
		},
		{
			Name:   "StartJob",
			Fn:     v.StartJob,
			InArgs: []string{"jobId"},
		},
		{
			Name:   "UnRegisterAgent",
			Fn:     v.UnRegisterAgent,
			InArgs: []string{"path"},
		},
		{
			Name:    "UpdateSource",
			Fn:      v.UpdateSource,
			OutArgs: []string{"job"},
		},
		{ // 危险函数
			Name:   "GetUpdateDetails",
			Fn:     v.GetUpdateDetails,
			InArgs: []string{"filename", "realtime"},
		},
	}
}
func (v *Updater) GetExportedMethods() dbusutil.ExportedMethods {
	return dbusutil.ExportedMethods{
		{
			Name:    "GetCheckIntervalAndTime",
			Fn:      v.GetCheckIntervalAndTime,
			OutArgs: []string{"interval", "checkTime"},
		},
		{
			Name:   "SetAutoCheckUpdates",
			Fn:     v.SetAutoCheckUpdates,
			InArgs: []string{"enable"},
		},
		{
			Name:   "SetAutoDownloadUpdates",
			Fn:     v.SetAutoDownloadUpdates,
			InArgs: []string{"enable"},
		},
		{
			Name:   "SetDownloadSpeedLimit",
			Fn:     v.SetDownloadSpeedLimit,
			InArgs: []string{"limitConfig"},
		},
		{
			Name:   "SetIdleDownloadConfig",
			Fn:     v.SetIdleDownloadConfig,
			InArgs: []string{"idleConfig"},
		},
		{
			Name:   "SetInstallUpdateTime",
			Fn:     v.SetInstallUpdateTime,
			InArgs: []string{"timeStr"},
		},
		{
			Name:   "SetP2PUpdateEnable",
			Fn:     v.SetP2PUpdateEnable,
			InArgs: []string{"enable"},
		},
		{
			Name:   "SetUpdateNotify",
			Fn:     v.SetUpdateNotify,
			InArgs: []string{"enable"},
		},
	}
}
