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

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 Zone struct {
	Path     dbus.ObjectPath
	DestName string
	core     *dbus.Object
}

func (obj *Zone) BottomLeftAction() (arg0 string, _err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.BottomLeftAction", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) BottomRightAction() (arg0 string, _err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.BottomRightAction", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) EnableZoneDetected(arg0 bool) (_err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.EnableZoneDetected", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) SetBottomLeft(arg0 string) (_err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.SetBottomLeft", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) SetBottomRight(arg0 string) (_err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.SetBottomRight", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) SetTopLeft(arg0 string) (_err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.SetTopLeft", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) SetTopRight(arg0 string) (_err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.SetTopRight", 0, arg0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) TopLeftAction() (arg0 string, _err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.TopLeftAction", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *Zone) TopRightAction() (arg0 string, _err error) {
	_err = obj.core.Call("com.deepin.daemon.Zone.TopRightAction", 0).Store(&arg0)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

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

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

	obj := &Zone{Path: path, DestName: destName, core: core}

	return obj, nil
}
