/*This file is automatically generated by pkg.deepin.io/dbus-generator. Don't edit it*/
package login1

import "pkg.deepin.io/lib/dbus"
import "pkg.deepin.io/lib/dbus/property"
import "reflect"
import "sync"
import "runtime"
import "fmt"
import "errors"

/*prevent compile error*/
var _ = fmt.Println
var _ = runtime.SetFinalizer
var _ = sync.NewCond
var _ = reflect.TypeOf
var _ = property.BaseObserver{}

type Manager struct {
	Path     dbus.ObjectPath
	DestName string
	core     *dbus.Object

	signals       map[<-chan *dbus.Signal]struct{}
	signalsLocker sync.Mutex

	EnableWallMessages     *dbusPropertyManagerEnableWallMessages
	SetWallMessage_        *dbusPropertyManagerSetWallMessage_
	NAutoVTs               *dbusPropertyManagerNAutoVTs
	KillOnlyUsers          *dbusPropertyManagerKillOnlyUsers
	KillExcludeUsers       *dbusPropertyManagerKillExcludeUsers
	KillUserProcesses      *dbusPropertyManagerKillUserProcesses
	RebootToFirmwareSetup  *dbusPropertyManagerRebootToFirmwareSetup
	IdleHint               *dbusPropertyManagerIdleHint
	IdleSinceHint          *dbusPropertyManagerIdleSinceHint
	IdleSinceHintMonotonic *dbusPropertyManagerIdleSinceHintMonotonic
	BlockInhibited         *dbusPropertyManagerBlockInhibited
	DelayInhibited         *dbusPropertyManagerDelayInhibited
	InhibitDelayMaxUSec    *dbusPropertyManagerInhibitDelayMaxUSec
	HandlePowerKey         *dbusPropertyManagerHandlePowerKey
	HandleSuspendKey       *dbusPropertyManagerHandleSuspendKey
	HandleHibernateKey     *dbusPropertyManagerHandleHibernateKey
	HandleLidSwitch        *dbusPropertyManagerHandleLidSwitch
	HandleLidSwitchDocked  *dbusPropertyManagerHandleLidSwitchDocked
	HoldoffTimeoutUSec     *dbusPropertyManagerHoldoffTimeoutUSec
	IdleAction             *dbusPropertyManagerIdleAction
	IdleActionUSec         *dbusPropertyManagerIdleActionUSec
	PreparingForShutdown   *dbusPropertyManagerPreparingForShutdown
	PreparingForSleep      *dbusPropertyManagerPreparingForSleep
	ScheduledShutdown      *dbusPropertyManagerScheduledShutdown
	Docked                 *dbusPropertyManagerDocked
	RemoveIPC              *dbusPropertyManagerRemoveIPC
	RuntimeDirectorySize   *dbusPropertyManagerRuntimeDirectorySize
	InhibitorsMax          *dbusPropertyManagerInhibitorsMax
	NCurrentInhibitors     *dbusPropertyManagerNCurrentInhibitors
	SessionsMax            *dbusPropertyManagerSessionsMax
	NCurrentSessions       *dbusPropertyManagerNCurrentSessions
	UserTasksMax           *dbusPropertyManagerUserTasksMax
}

func (obj *Manager) _createSignalChan() <-chan *dbus.Signal {
	obj.signalsLocker.Lock()
	ch := getBus().Signal()
	obj.signals[ch] = struct{}{}
	obj.signalsLocker.Unlock()
	return ch
}
func (obj *Manager) _deleteSignalChan(ch <-chan *dbus.Signal) {
	obj.signalsLocker.Lock()
	delete(obj.signals, ch)
	getBus().DetachSignal(ch)
	obj.signalsLocker.Unlock()
}
func DestroyManager(obj *Manager) {
	obj.signalsLocker.Lock()
	defer obj.signalsLocker.Unlock()
	if obj.signals == nil {
		return
	}
	for ch, _ := range obj.signals {
		getBus().DetachSignal(ch)
	}
	obj.signals = nil

	runtime.SetFinalizer(obj, nil)

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.DBus.Properties',sender='" + obj.DestName + "',member='PropertiesChanged'")
	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='PropertiesChanged'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SessionNew'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SessionRemoved'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='UserNew'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='UserRemoved'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SeatNew'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SeatRemoved'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='PrepareForShutdown'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='PrepareForSleep'")

	obj.EnableWallMessages.Reset()
	obj.SetWallMessage_.Reset()
	obj.NAutoVTs.Reset()
	obj.KillOnlyUsers.Reset()
	obj.KillExcludeUsers.Reset()
	obj.KillUserProcesses.Reset()
	obj.RebootToFirmwareSetup.Reset()
	obj.IdleHint.Reset()
	obj.IdleSinceHint.Reset()
	obj.IdleSinceHintMonotonic.Reset()
	obj.BlockInhibited.Reset()
	obj.DelayInhibited.Reset()
	obj.InhibitDelayMaxUSec.Reset()
	obj.HandlePowerKey.Reset()
	obj.HandleSuspendKey.Reset()
	obj.HandleHibernateKey.Reset()
	obj.HandleLidSwitch.Reset()
	obj.HandleLidSwitchDocked.Reset()
	obj.HoldoffTimeoutUSec.Reset()
	obj.IdleAction.Reset()
	obj.IdleActionUSec.Reset()
	obj.PreparingForShutdown.Reset()
	obj.PreparingForSleep.Reset()
	obj.ScheduledShutdown.Reset()
	obj.Docked.Reset()
	obj.RemoveIPC.Reset()
	obj.RuntimeDirectorySize.Reset()
	obj.InhibitorsMax.Reset()
	obj.NCurrentInhibitors.Reset()
	obj.SessionsMax.Reset()
	obj.NCurrentSessions.Reset()
	obj.UserTasksMax.Reset()
}

func (obj *Manager) GetSession(arg0 string) (arg1 dbus.ObjectPath, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.GetSession", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) GetSessionByPID(arg0 uint32) (arg1 dbus.ObjectPath, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.GetSessionByPID", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) GetUser(arg0 uint32) (arg1 dbus.ObjectPath, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.GetUser", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) GetUserByPID(arg0 uint32) (arg1 dbus.ObjectPath, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.GetUserByPID", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) GetSeat(arg0 string) (arg1 dbus.ObjectPath, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.GetSeat", 0, arg0).Store(&arg1)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ListSessions() (arg0 [][]interface{}, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ListSessions", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ListUsers() (arg0 [][]interface{}, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ListUsers", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ListSeats() (arg0 [][]interface{}, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ListSeats", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ListInhibitors() (arg0 [][]interface{}, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ListInhibitors", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CreateSession(arg0 uint32, arg1 uint32, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 uint32, arg8 string, arg9 string, arg10 bool, arg11 string, arg12 string, arg13 interface{}) (arg14 string, arg15 dbus.ObjectPath, arg16 string, arg17 dbus.UnixFD, arg18 uint32, arg19 string, arg20 uint32, arg21 bool, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CreateSession", 0, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13).Store(&arg14, &arg15, &arg16, &arg17, &arg18, &arg19, &arg20, &arg21)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ReleaseSession(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ReleaseSession", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ActivateSession(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ActivateSession", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ActivateSessionOnSeat(arg0 string, arg1 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ActivateSessionOnSeat", 0, arg0, arg1).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) LockSession(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.LockSession", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) UnlockSession(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.UnlockSession", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) LockSessions() (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.LockSessions", 0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) UnlockSessions() (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.UnlockSessions", 0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) KillSession(arg0 string, arg1 string, arg2 int32) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.KillSession", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) KillUser(arg0 uint32, arg1 int32) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.KillUser", 0, arg0, arg1).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) TerminateSession(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.TerminateSession", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) TerminateUser(arg0 uint32) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.TerminateUser", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) TerminateSeat(arg0 string) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.TerminateSeat", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) SetUserLinger(arg0 uint32, arg1 bool, arg2 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.SetUserLinger", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) AttachDevice(arg0 string, arg1 string, arg2 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.AttachDevice", 0, arg0, arg1, arg2).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) FlushDevices(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.FlushDevices", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) PowerOff(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.PowerOff", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) Reboot(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.Reboot", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) Suspend(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.Suspend", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) Hibernate(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.Hibernate", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) HybridSleep(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.HybridSleep", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanPowerOff() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanPowerOff", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanReboot() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanReboot", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanSuspend() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanSuspend", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanHibernate() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanHibernate", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanHybridSleep() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanHybridSleep", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ScheduleShutdown(arg0 string, arg1 uint64) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.ScheduleShutdown", 0, arg0, arg1).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CancelScheduledShutdown() (arg0 bool, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CancelScheduledShutdown", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) Inhibit(arg0 string, arg1 string, arg2 string, arg3 string) (arg4 dbus.UnixFD, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.Inhibit", 0, arg0, arg1, arg2, arg3).Store(&arg4)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) CanRebootToFirmwareSetup() (arg0 string, _err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.CanRebootToFirmwareSetup", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) SetRebootToFirmwareSetup(arg0 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.SetRebootToFirmwareSetup", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) SetWallMessage(arg0 string, arg1 bool) (_err error) {
	_err = obj.core.Call("org.freedesktop.login1.Manager.SetWallMessage", 0, arg0, arg1).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Manager) ConnectSessionNew(callback func(arg0 string, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.SessionNew" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*string)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(string), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectSessionRemoved(callback func(arg0 string, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.SessionRemoved" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*string)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(string), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectUserNew(callback func(arg0 uint32, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.UserNew" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*uint32)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(uint32), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectUserRemoved(callback func(arg0 uint32, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.UserRemoved" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*uint32)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(uint32), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectSeatNew(callback func(arg0 string, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.SeatNew" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*string)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(string), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectSeatRemoved(callback func(arg0 string, arg1 dbus.ObjectPath)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.SeatRemoved" || 2 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*string)(nil)).Elem() {
				continue
			}
			if reflect.TypeOf(v.Body[1]) != reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(string), v.Body[1].(dbus.ObjectPath))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectPrepareForShutdown(callback func(arg0 bool)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.PrepareForShutdown" || 1 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*bool)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(bool))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

func (obj *Manager) ConnectPrepareForSleep(callback func(arg0 bool)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.login1.Manager.PrepareForSleep" || 1 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*bool)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(bool))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

type dbusPropertyManagerEnableWallMessages struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerEnableWallMessages) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "org.freedesktop.login1.Manager", "EnableWallMessages", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property EnableWallMessages of org.freedesktop.login1.Manager is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyManagerEnableWallMessages) Set(v bool) {
	this.SetValue(v)
}

func (this *dbusPropertyManagerEnableWallMessages) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerEnableWallMessages) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "EnableWallMessages").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerEnableWallMessages) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerSetWallMessage_ struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerSetWallMessage_) SetValue(v interface{} /*string*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*string)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "org.freedesktop.login1.Manager", "SetWallMessage_", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property SetWallMessage_ of org.freedesktop.login1.Manager is an string but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyManagerSetWallMessage_) Set(v string) {
	this.SetValue(v)
}

func (this *dbusPropertyManagerSetWallMessage_) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerSetWallMessage_) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "SetWallMessage_").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerSetWallMessage_) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerNAutoVTs struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerNAutoVTs) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.NAutoVTs is not writable")
}

func (this *dbusPropertyManagerNAutoVTs) Get() uint32 {
	v, _ := this.GetValue()
	return v.(uint32)
}
func (this *dbusPropertyManagerNAutoVTs) GetValue() (interface{} /*uint32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "NAutoVTs").Store(&r)
	if err == nil && r.Signature().String() == "u" {
		return r.Value().(uint32), nil
	}
	return *new(uint32), err
}
func (this *dbusPropertyManagerNAutoVTs) GetType() reflect.Type {
	return reflect.TypeOf((*uint32)(nil)).Elem()
}

type dbusPropertyManagerKillOnlyUsers struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerKillOnlyUsers) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.KillOnlyUsers is not writable")
}

func (this *dbusPropertyManagerKillOnlyUsers) Get() []string {
	v, _ := this.GetValue()
	return v.([]string)
}
func (this *dbusPropertyManagerKillOnlyUsers) GetValue() (interface{} /*[]string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "KillOnlyUsers").Store(&r)
	if err == nil && r.Signature().String() == "as" {
		return r.Value().([]string), nil
	}
	return *new([]string), err
}
func (this *dbusPropertyManagerKillOnlyUsers) GetType() reflect.Type {
	return reflect.TypeOf((*[]string)(nil)).Elem()
}

type dbusPropertyManagerKillExcludeUsers struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerKillExcludeUsers) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.KillExcludeUsers is not writable")
}

func (this *dbusPropertyManagerKillExcludeUsers) Get() []string {
	v, _ := this.GetValue()
	return v.([]string)
}
func (this *dbusPropertyManagerKillExcludeUsers) GetValue() (interface{} /*[]string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "KillExcludeUsers").Store(&r)
	if err == nil && r.Signature().String() == "as" {
		return r.Value().([]string), nil
	}
	return *new([]string), err
}
func (this *dbusPropertyManagerKillExcludeUsers) GetType() reflect.Type {
	return reflect.TypeOf((*[]string)(nil)).Elem()
}

type dbusPropertyManagerKillUserProcesses struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerKillUserProcesses) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.KillUserProcesses is not writable")
}

func (this *dbusPropertyManagerKillUserProcesses) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerKillUserProcesses) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "KillUserProcesses").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerKillUserProcesses) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerRebootToFirmwareSetup struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerRebootToFirmwareSetup) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.RebootToFirmwareSetup is not writable")
}

func (this *dbusPropertyManagerRebootToFirmwareSetup) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerRebootToFirmwareSetup) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "RebootToFirmwareSetup").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerRebootToFirmwareSetup) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerIdleHint struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerIdleHint) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.IdleHint is not writable")
}

func (this *dbusPropertyManagerIdleHint) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerIdleHint) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "IdleHint").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerIdleHint) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerIdleSinceHint struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerIdleSinceHint) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.IdleSinceHint is not writable")
}

func (this *dbusPropertyManagerIdleSinceHint) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerIdleSinceHint) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "IdleSinceHint").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerIdleSinceHint) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerIdleSinceHintMonotonic struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerIdleSinceHintMonotonic) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.IdleSinceHintMonotonic is not writable")
}

func (this *dbusPropertyManagerIdleSinceHintMonotonic) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerIdleSinceHintMonotonic) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "IdleSinceHintMonotonic").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerIdleSinceHintMonotonic) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerBlockInhibited struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerBlockInhibited) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.BlockInhibited is not writable")
}

func (this *dbusPropertyManagerBlockInhibited) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerBlockInhibited) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "BlockInhibited").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerBlockInhibited) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerDelayInhibited struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerDelayInhibited) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.DelayInhibited is not writable")
}

func (this *dbusPropertyManagerDelayInhibited) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerDelayInhibited) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "DelayInhibited").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerDelayInhibited) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerInhibitDelayMaxUSec struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerInhibitDelayMaxUSec) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.InhibitDelayMaxUSec is not writable")
}

func (this *dbusPropertyManagerInhibitDelayMaxUSec) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerInhibitDelayMaxUSec) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "InhibitDelayMaxUSec").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerInhibitDelayMaxUSec) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerHandlePowerKey struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHandlePowerKey) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HandlePowerKey is not writable")
}

func (this *dbusPropertyManagerHandlePowerKey) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerHandlePowerKey) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HandlePowerKey").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerHandlePowerKey) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerHandleSuspendKey struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHandleSuspendKey) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HandleSuspendKey is not writable")
}

func (this *dbusPropertyManagerHandleSuspendKey) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerHandleSuspendKey) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HandleSuspendKey").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerHandleSuspendKey) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerHandleHibernateKey struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHandleHibernateKey) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HandleHibernateKey is not writable")
}

func (this *dbusPropertyManagerHandleHibernateKey) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerHandleHibernateKey) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HandleHibernateKey").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerHandleHibernateKey) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerHandleLidSwitch struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHandleLidSwitch) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HandleLidSwitch is not writable")
}

func (this *dbusPropertyManagerHandleLidSwitch) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerHandleLidSwitch) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HandleLidSwitch").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerHandleLidSwitch) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerHandleLidSwitchDocked struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHandleLidSwitchDocked) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HandleLidSwitchDocked is not writable")
}

func (this *dbusPropertyManagerHandleLidSwitchDocked) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerHandleLidSwitchDocked) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HandleLidSwitchDocked").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerHandleLidSwitchDocked) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerHoldoffTimeoutUSec struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerHoldoffTimeoutUSec) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.HoldoffTimeoutUSec is not writable")
}

func (this *dbusPropertyManagerHoldoffTimeoutUSec) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerHoldoffTimeoutUSec) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "HoldoffTimeoutUSec").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerHoldoffTimeoutUSec) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerIdleAction struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerIdleAction) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.IdleAction is not writable")
}

func (this *dbusPropertyManagerIdleAction) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyManagerIdleAction) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "IdleAction").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyManagerIdleAction) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyManagerIdleActionUSec struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerIdleActionUSec) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.IdleActionUSec is not writable")
}

func (this *dbusPropertyManagerIdleActionUSec) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerIdleActionUSec) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "IdleActionUSec").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerIdleActionUSec) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerPreparingForShutdown struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerPreparingForShutdown) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.PreparingForShutdown is not writable")
}

func (this *dbusPropertyManagerPreparingForShutdown) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerPreparingForShutdown) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "PreparingForShutdown").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerPreparingForShutdown) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerPreparingForSleep struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerPreparingForSleep) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.PreparingForSleep is not writable")
}

func (this *dbusPropertyManagerPreparingForSleep) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerPreparingForSleep) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "PreparingForSleep").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerPreparingForSleep) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerScheduledShutdown struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerScheduledShutdown) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.ScheduledShutdown is not writable")
}

func (this *dbusPropertyManagerScheduledShutdown) Get() []interface{} {
	v, _ := this.GetValue()
	return v.([]interface{})
}
func (this *dbusPropertyManagerScheduledShutdown) GetValue() (interface{} /*[]interface {}*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "ScheduledShutdown").Store(&r)
	if err == nil && r.Signature().String() == "(st)" {
		return r.Value().([]interface{}), nil
	}
	return *new([]interface{}), err
}
func (this *dbusPropertyManagerScheduledShutdown) GetType() reflect.Type {
	return reflect.TypeOf((*[]interface{})(nil)).Elem()
}

type dbusPropertyManagerDocked struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerDocked) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.Docked is not writable")
}

func (this *dbusPropertyManagerDocked) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerDocked) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "Docked").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerDocked) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerRemoveIPC struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerRemoveIPC) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.RemoveIPC is not writable")
}

func (this *dbusPropertyManagerRemoveIPC) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyManagerRemoveIPC) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "RemoveIPC").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyManagerRemoveIPC) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyManagerRuntimeDirectorySize struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerRuntimeDirectorySize) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.RuntimeDirectorySize is not writable")
}

func (this *dbusPropertyManagerRuntimeDirectorySize) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerRuntimeDirectorySize) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "RuntimeDirectorySize").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerRuntimeDirectorySize) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerInhibitorsMax struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerInhibitorsMax) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.InhibitorsMax is not writable")
}

func (this *dbusPropertyManagerInhibitorsMax) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerInhibitorsMax) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "InhibitorsMax").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerInhibitorsMax) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerNCurrentInhibitors struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerNCurrentInhibitors) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.NCurrentInhibitors is not writable")
}

func (this *dbusPropertyManagerNCurrentInhibitors) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerNCurrentInhibitors) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "NCurrentInhibitors").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerNCurrentInhibitors) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerSessionsMax struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerSessionsMax) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.SessionsMax is not writable")
}

func (this *dbusPropertyManagerSessionsMax) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerSessionsMax) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "SessionsMax").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerSessionsMax) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerNCurrentSessions struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerNCurrentSessions) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.NCurrentSessions is not writable")
}

func (this *dbusPropertyManagerNCurrentSessions) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerNCurrentSessions) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "NCurrentSessions").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerNCurrentSessions) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

type dbusPropertyManagerUserTasksMax struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyManagerUserTasksMax) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.login1.Manager.UserTasksMax is not writable")
}

func (this *dbusPropertyManagerUserTasksMax) Get() uint64 {
	v, _ := this.GetValue()
	return v.(uint64)
}
func (this *dbusPropertyManagerUserTasksMax) GetValue() (interface{} /*uint64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.login1.Manager", "UserTasksMax").Store(&r)
	if err == nil && r.Signature().String() == "t" {
		return r.Value().(uint64), nil
	}
	return *new(uint64), err
}
func (this *dbusPropertyManagerUserTasksMax) GetType() reflect.Type {
	return reflect.TypeOf((*uint64)(nil)).Elem()
}

func NewManager(destName string, path dbus.ObjectPath) (*Manager, error) {
	if !path.IsValid() {
		return nil, errors.New("The path of '" + string(path) + "' is invalid.")
	}

	core := getBus().Object(destName, path)

	obj := &Manager{Path: path, DestName: destName, core: core, signals: make(map[<-chan *dbus.Signal]struct{})}

	obj.EnableWallMessages = &dbusPropertyManagerEnableWallMessages{&property.BaseObserver{}, core}
	obj.SetWallMessage_ = &dbusPropertyManagerSetWallMessage_{&property.BaseObserver{}, core}
	obj.NAutoVTs = &dbusPropertyManagerNAutoVTs{&property.BaseObserver{}, core}
	obj.KillOnlyUsers = &dbusPropertyManagerKillOnlyUsers{&property.BaseObserver{}, core}
	obj.KillExcludeUsers = &dbusPropertyManagerKillExcludeUsers{&property.BaseObserver{}, core}
	obj.KillUserProcesses = &dbusPropertyManagerKillUserProcesses{&property.BaseObserver{}, core}
	obj.RebootToFirmwareSetup = &dbusPropertyManagerRebootToFirmwareSetup{&property.BaseObserver{}, core}
	obj.IdleHint = &dbusPropertyManagerIdleHint{&property.BaseObserver{}, core}
	obj.IdleSinceHint = &dbusPropertyManagerIdleSinceHint{&property.BaseObserver{}, core}
	obj.IdleSinceHintMonotonic = &dbusPropertyManagerIdleSinceHintMonotonic{&property.BaseObserver{}, core}
	obj.BlockInhibited = &dbusPropertyManagerBlockInhibited{&property.BaseObserver{}, core}
	obj.DelayInhibited = &dbusPropertyManagerDelayInhibited{&property.BaseObserver{}, core}
	obj.InhibitDelayMaxUSec = &dbusPropertyManagerInhibitDelayMaxUSec{&property.BaseObserver{}, core}
	obj.HandlePowerKey = &dbusPropertyManagerHandlePowerKey{&property.BaseObserver{}, core}
	obj.HandleSuspendKey = &dbusPropertyManagerHandleSuspendKey{&property.BaseObserver{}, core}
	obj.HandleHibernateKey = &dbusPropertyManagerHandleHibernateKey{&property.BaseObserver{}, core}
	obj.HandleLidSwitch = &dbusPropertyManagerHandleLidSwitch{&property.BaseObserver{}, core}
	obj.HandleLidSwitchDocked = &dbusPropertyManagerHandleLidSwitchDocked{&property.BaseObserver{}, core}
	obj.HoldoffTimeoutUSec = &dbusPropertyManagerHoldoffTimeoutUSec{&property.BaseObserver{}, core}
	obj.IdleAction = &dbusPropertyManagerIdleAction{&property.BaseObserver{}, core}
	obj.IdleActionUSec = &dbusPropertyManagerIdleActionUSec{&property.BaseObserver{}, core}
	obj.PreparingForShutdown = &dbusPropertyManagerPreparingForShutdown{&property.BaseObserver{}, core}
	obj.PreparingForSleep = &dbusPropertyManagerPreparingForSleep{&property.BaseObserver{}, core}
	obj.ScheduledShutdown = &dbusPropertyManagerScheduledShutdown{&property.BaseObserver{}, core}
	obj.Docked = &dbusPropertyManagerDocked{&property.BaseObserver{}, core}
	obj.RemoveIPC = &dbusPropertyManagerRemoveIPC{&property.BaseObserver{}, core}
	obj.RuntimeDirectorySize = &dbusPropertyManagerRuntimeDirectorySize{&property.BaseObserver{}, core}
	obj.InhibitorsMax = &dbusPropertyManagerInhibitorsMax{&property.BaseObserver{}, core}
	obj.NCurrentInhibitors = &dbusPropertyManagerNCurrentInhibitors{&property.BaseObserver{}, core}
	obj.SessionsMax = &dbusPropertyManagerSessionsMax{&property.BaseObserver{}, core}
	obj.NCurrentSessions = &dbusPropertyManagerNCurrentSessions{&property.BaseObserver{}, core}
	obj.UserTasksMax = &dbusPropertyManagerUserTasksMax{&property.BaseObserver{}, core}

	dbusAddMatch("type='signal',path='" + string(path) + "',interface='org.freedesktop.DBus.Properties',sender='" + destName + "',member='PropertiesChanged'")
	dbusAddMatch("type='signal',path='" + string(path) + "',interface='org.freedesktop.login1.Manager',sender='" + destName + "',member='PropertiesChanged'")
	sigChan := obj._createSignalChan()
	go func() {
		typeString := reflect.TypeOf("")
		typeKeyValues := reflect.TypeOf(map[string]dbus.Variant{})
		typeArrayValues := reflect.TypeOf([]string{})
		for v := range sigChan {
			if v.Name == "org.freedesktop.DBus.Properties.PropertiesChanged" &&
				len(v.Body) == 3 &&
				reflect.TypeOf(v.Body[0]) == typeString &&
				reflect.TypeOf(v.Body[1]) == typeKeyValues &&
				reflect.TypeOf(v.Body[2]) == typeArrayValues &&
				v.Body[0].(string) == "org.freedesktop.login1.Manager" {
				props := v.Body[1].(map[string]dbus.Variant)
				for key, _ := range props {
					if false {
					} else if key == "EnableWallMessages" {
						obj.EnableWallMessages.Notify()

					} else if key == "SetWallMessage_" {
						obj.SetWallMessage_.Notify()

					} else if key == "NAutoVTs" {
						obj.NAutoVTs.Notify()

					} else if key == "KillOnlyUsers" {
						obj.KillOnlyUsers.Notify()

					} else if key == "KillExcludeUsers" {
						obj.KillExcludeUsers.Notify()

					} else if key == "KillUserProcesses" {
						obj.KillUserProcesses.Notify()

					} else if key == "RebootToFirmwareSetup" {
						obj.RebootToFirmwareSetup.Notify()

					} else if key == "IdleHint" {
						obj.IdleHint.Notify()

					} else if key == "IdleSinceHint" {
						obj.IdleSinceHint.Notify()

					} else if key == "IdleSinceHintMonotonic" {
						obj.IdleSinceHintMonotonic.Notify()

					} else if key == "BlockInhibited" {
						obj.BlockInhibited.Notify()

					} else if key == "DelayInhibited" {
						obj.DelayInhibited.Notify()

					} else if key == "InhibitDelayMaxUSec" {
						obj.InhibitDelayMaxUSec.Notify()

					} else if key == "HandlePowerKey" {
						obj.HandlePowerKey.Notify()

					} else if key == "HandleSuspendKey" {
						obj.HandleSuspendKey.Notify()

					} else if key == "HandleHibernateKey" {
						obj.HandleHibernateKey.Notify()

					} else if key == "HandleLidSwitch" {
						obj.HandleLidSwitch.Notify()

					} else if key == "HandleLidSwitchDocked" {
						obj.HandleLidSwitchDocked.Notify()

					} else if key == "HoldoffTimeoutUSec" {
						obj.HoldoffTimeoutUSec.Notify()

					} else if key == "IdleAction" {
						obj.IdleAction.Notify()

					} else if key == "IdleActionUSec" {
						obj.IdleActionUSec.Notify()

					} else if key == "PreparingForShutdown" {
						obj.PreparingForShutdown.Notify()

					} else if key == "PreparingForSleep" {
						obj.PreparingForSleep.Notify()

					} else if key == "ScheduledShutdown" {
						obj.ScheduledShutdown.Notify()

					} else if key == "Docked" {
						obj.Docked.Notify()

					} else if key == "RemoveIPC" {
						obj.RemoveIPC.Notify()

					} else if key == "RuntimeDirectorySize" {
						obj.RuntimeDirectorySize.Notify()

					} else if key == "InhibitorsMax" {
						obj.InhibitorsMax.Notify()

					} else if key == "NCurrentInhibitors" {
						obj.NCurrentInhibitors.Notify()

					} else if key == "SessionsMax" {
						obj.SessionsMax.Notify()

					} else if key == "NCurrentSessions" {
						obj.NCurrentSessions.Notify()

					} else if key == "UserTasksMax" {
						obj.UserTasksMax.Notify()
					}
				}
			} else if v.Name == "org.freedesktop.login1.Manager.PropertiesChanged" && len(v.Body) == 1 && reflect.TypeOf(v.Body[0]) == typeKeyValues {
				for key, _ := range v.Body[0].(map[string]dbus.Variant) {
					if false {
					} else if key == "EnableWallMessages" {
						obj.EnableWallMessages.Notify()

					} else if key == "SetWallMessage_" {
						obj.SetWallMessage_.Notify()

					} else if key == "NAutoVTs" {
						obj.NAutoVTs.Notify()

					} else if key == "KillOnlyUsers" {
						obj.KillOnlyUsers.Notify()

					} else if key == "KillExcludeUsers" {
						obj.KillExcludeUsers.Notify()

					} else if key == "KillUserProcesses" {
						obj.KillUserProcesses.Notify()

					} else if key == "RebootToFirmwareSetup" {
						obj.RebootToFirmwareSetup.Notify()

					} else if key == "IdleHint" {
						obj.IdleHint.Notify()

					} else if key == "IdleSinceHint" {
						obj.IdleSinceHint.Notify()

					} else if key == "IdleSinceHintMonotonic" {
						obj.IdleSinceHintMonotonic.Notify()

					} else if key == "BlockInhibited" {
						obj.BlockInhibited.Notify()

					} else if key == "DelayInhibited" {
						obj.DelayInhibited.Notify()

					} else if key == "InhibitDelayMaxUSec" {
						obj.InhibitDelayMaxUSec.Notify()

					} else if key == "HandlePowerKey" {
						obj.HandlePowerKey.Notify()

					} else if key == "HandleSuspendKey" {
						obj.HandleSuspendKey.Notify()

					} else if key == "HandleHibernateKey" {
						obj.HandleHibernateKey.Notify()

					} else if key == "HandleLidSwitch" {
						obj.HandleLidSwitch.Notify()

					} else if key == "HandleLidSwitchDocked" {
						obj.HandleLidSwitchDocked.Notify()

					} else if key == "HoldoffTimeoutUSec" {
						obj.HoldoffTimeoutUSec.Notify()

					} else if key == "IdleAction" {
						obj.IdleAction.Notify()

					} else if key == "IdleActionUSec" {
						obj.IdleActionUSec.Notify()

					} else if key == "PreparingForShutdown" {
						obj.PreparingForShutdown.Notify()

					} else if key == "PreparingForSleep" {
						obj.PreparingForSleep.Notify()

					} else if key == "ScheduledShutdown" {
						obj.ScheduledShutdown.Notify()

					} else if key == "Docked" {
						obj.Docked.Notify()

					} else if key == "RemoveIPC" {
						obj.RemoveIPC.Notify()

					} else if key == "RuntimeDirectorySize" {
						obj.RuntimeDirectorySize.Notify()

					} else if key == "InhibitorsMax" {
						obj.InhibitorsMax.Notify()

					} else if key == "NCurrentInhibitors" {
						obj.NCurrentInhibitors.Notify()

					} else if key == "SessionsMax" {
						obj.SessionsMax.Notify()

					} else if key == "NCurrentSessions" {
						obj.NCurrentSessions.Notify()

					} else if key == "UserTasksMax" {
						obj.UserTasksMax.Notify()
					}
				}
			}
		}
	}()

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SessionNew'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SessionRemoved'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='UserNew'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='UserRemoved'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SeatNew'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='SeatRemoved'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='PrepareForShutdown'")

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.login1.Manager',sender='" + obj.DestName + "',member='PrepareForSleep'")

	runtime.SetFinalizer(obj, func(_obj *Manager) { DestroyManager(_obj) })
	return obj, nil
}
