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

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

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

	TPadEnable         *dbusPropertyTouchPadTPadEnable
	LeftHanded         *dbusPropertyTouchPadLeftHanded
	DisableIfTyping    *dbusPropertyTouchPadDisableIfTyping
	NaturalScroll      *dbusPropertyTouchPadNaturalScroll
	EdgeScroll         *dbusPropertyTouchPadEdgeScroll
	HorizScroll        *dbusPropertyTouchPadHorizScroll
	VertScroll         *dbusPropertyTouchPadVertScroll
	TapClick           *dbusPropertyTouchPadTapClick
	MotionAcceleration *dbusPropertyTouchPadMotionAcceleration
	MotionThreshold    *dbusPropertyTouchPadMotionThreshold
	DoubleClick        *dbusPropertyTouchPadDoubleClick
	DragThreshold      *dbusPropertyTouchPadDragThreshold
	DeltaScroll        *dbusPropertyTouchPadDeltaScroll
	Exist              *dbusPropertyTouchPadExist
	DeviceList         *dbusPropertyTouchPadDeviceList
}

func (obj *TouchPad) _createSignalChan() <-chan *dbus.Signal {
	obj.signalsLocker.Lock()
	ch := getBus().Signal()
	obj.signals[ch] = struct{}{}
	obj.signalsLocker.Unlock()
	return ch
}
func (obj *TouchPad) _deleteSignalChan(ch <-chan *dbus.Signal) {
	obj.signalsLocker.Lock()
	delete(obj.signals, ch)
	getBus().DetachSignal(ch)
	obj.signalsLocker.Unlock()
}
func DestroyTouchPad(obj *TouchPad) {
	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='com.deepin.daemon.InputDevice.TouchPad',sender='" + obj.DestName + "',member='PropertiesChanged'")

	obj.TPadEnable.Reset()
	obj.LeftHanded.Reset()
	obj.DisableIfTyping.Reset()
	obj.NaturalScroll.Reset()
	obj.EdgeScroll.Reset()
	obj.HorizScroll.Reset()
	obj.VertScroll.Reset()
	obj.TapClick.Reset()
	obj.MotionAcceleration.Reset()
	obj.MotionThreshold.Reset()
	obj.DoubleClick.Reset()
	obj.DragThreshold.Reset()
	obj.DeltaScroll.Reset()
	obj.Exist.Reset()
	obj.DeviceList.Reset()
}

func (obj *TouchPad) Reset() (_err error) {
	_err = obj.core.Call("com.deepin.daemon.InputDevice.TouchPad.Reset", 0).Store()
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

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

func (this *dbusPropertyTouchPadTPadEnable) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "TPadEnable", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property TPadEnable of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadTPadEnable) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadLeftHanded) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "LeftHanded", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property LeftHanded of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadLeftHanded) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadDisableIfTyping) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "DisableIfTyping", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property DisableIfTyping of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadDisableIfTyping) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadNaturalScroll) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "NaturalScroll", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property NaturalScroll of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadNaturalScroll) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadEdgeScroll) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "EdgeScroll", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property EdgeScroll of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadEdgeScroll) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadHorizScroll) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "HorizScroll", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property HorizScroll of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadHorizScroll) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadVertScroll) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "VertScroll", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property VertScroll of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadVertScroll) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadTapClick) SetValue(v interface{} /*bool*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*bool)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "TapClick", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property TapClick of com.deepin.daemon.InputDevice.TouchPad is an bool but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadTapClick) Set(v bool) {
	this.SetValue(v)
}

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

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

func (this *dbusPropertyTouchPadMotionAcceleration) SetValue(v interface{} /*float64*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*float64)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "MotionAcceleration", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property MotionAcceleration of com.deepin.daemon.InputDevice.TouchPad is an float64 but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadMotionAcceleration) Set(v float64) {
	this.SetValue(v)
}

func (this *dbusPropertyTouchPadMotionAcceleration) Get() float64 {
	v, _ := this.GetValue()
	return v.(float64)
}
func (this *dbusPropertyTouchPadMotionAcceleration) GetValue() (interface{} /*float64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "MotionAcceleration").Store(&r)
	if err == nil && r.Signature().String() == "d" {
		return r.Value().(float64), nil
	}
	return *new(float64), err
}
func (this *dbusPropertyTouchPadMotionAcceleration) GetType() reflect.Type {
	return reflect.TypeOf((*float64)(nil)).Elem()
}

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

func (this *dbusPropertyTouchPadMotionThreshold) SetValue(v interface{} /*float64*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*float64)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "MotionThreshold", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property MotionThreshold of com.deepin.daemon.InputDevice.TouchPad is an float64 but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadMotionThreshold) Set(v float64) {
	this.SetValue(v)
}

func (this *dbusPropertyTouchPadMotionThreshold) Get() float64 {
	v, _ := this.GetValue()
	return v.(float64)
}
func (this *dbusPropertyTouchPadMotionThreshold) GetValue() (interface{} /*float64*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "MotionThreshold").Store(&r)
	if err == nil && r.Signature().String() == "d" {
		return r.Value().(float64), nil
	}
	return *new(float64), err
}
func (this *dbusPropertyTouchPadMotionThreshold) GetType() reflect.Type {
	return reflect.TypeOf((*float64)(nil)).Elem()
}

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

func (this *dbusPropertyTouchPadDoubleClick) SetValue(v interface{} /*int32*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*int32)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "DoubleClick", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property DoubleClick of com.deepin.daemon.InputDevice.TouchPad is an int32 but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadDoubleClick) Set(v int32) {
	this.SetValue(v)
}

func (this *dbusPropertyTouchPadDoubleClick) Get() int32 {
	v, _ := this.GetValue()
	return v.(int32)
}
func (this *dbusPropertyTouchPadDoubleClick) GetValue() (interface{} /*int32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "DoubleClick").Store(&r)
	if err == nil && r.Signature().String() == "i" {
		return r.Value().(int32), nil
	}
	return *new(int32), err
}
func (this *dbusPropertyTouchPadDoubleClick) GetType() reflect.Type {
	return reflect.TypeOf((*int32)(nil)).Elem()
}

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

func (this *dbusPropertyTouchPadDragThreshold) SetValue(v interface{} /*int32*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*int32)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "DragThreshold", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property DragThreshold of com.deepin.daemon.InputDevice.TouchPad is an int32 but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadDragThreshold) Set(v int32) {
	this.SetValue(v)
}

func (this *dbusPropertyTouchPadDragThreshold) Get() int32 {
	v, _ := this.GetValue()
	return v.(int32)
}
func (this *dbusPropertyTouchPadDragThreshold) GetValue() (interface{} /*int32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "DragThreshold").Store(&r)
	if err == nil && r.Signature().String() == "i" {
		return r.Value().(int32), nil
	}
	return *new(int32), err
}
func (this *dbusPropertyTouchPadDragThreshold) GetType() reflect.Type {
	return reflect.TypeOf((*int32)(nil)).Elem()
}

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

func (this *dbusPropertyTouchPadDeltaScroll) SetValue(v interface{} /*int32*/) {
	if reflect.TypeOf(v) == reflect.TypeOf((*int32)(nil)).Elem() {
		this.core.Call("org.freedesktop.DBus.Properties.Set", 0, "com.deepin.daemon.InputDevice.TouchPad", "DeltaScroll", dbus.MakeVariant(v))
	} else {
		fmt.Println("The property DeltaScroll of com.deepin.daemon.InputDevice.TouchPad is an int32 but Set with an ", reflect.TypeOf(v))
	}
}
func (this *dbusPropertyTouchPadDeltaScroll) Set(v int32) {
	this.SetValue(v)
}

func (this *dbusPropertyTouchPadDeltaScroll) Get() int32 {
	v, _ := this.GetValue()
	return v.(int32)
}
func (this *dbusPropertyTouchPadDeltaScroll) GetValue() (interface{} /*int32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "DeltaScroll").Store(&r)
	if err == nil && r.Signature().String() == "i" {
		return r.Value().(int32), nil
	}
	return *new(int32), err
}
func (this *dbusPropertyTouchPadDeltaScroll) GetType() reflect.Type {
	return reflect.TypeOf((*int32)(nil)).Elem()
}

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

func (this *dbusPropertyTouchPadExist) SetValue(notwritable interface{}) {
	fmt.Println("com.deepin.daemon.InputDevice.TouchPad.Exist is not writable")
}

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

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

func (this *dbusPropertyTouchPadDeviceList) SetValue(notwritable interface{}) {
	fmt.Println("com.deepin.daemon.InputDevice.TouchPad.DeviceList is not writable")
}

func (this *dbusPropertyTouchPadDeviceList) Get() [][]interface{} {
	v, _ := this.GetValue()
	return v.([][]interface{})
}
func (this *dbusPropertyTouchPadDeviceList) GetValue() (interface{} /*[][]interface {}*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "com.deepin.daemon.InputDevice.TouchPad", "DeviceList").Store(&r)
	if err == nil && r.Signature().String() == "a(sib)" {
		return r.Value().([][]interface{}), nil
	}
	return *new([][]interface{}), err
}
func (this *dbusPropertyTouchPadDeviceList) GetType() reflect.Type {
	return reflect.TypeOf((*[][]interface{})(nil)).Elem()
}

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

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

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

	obj.TPadEnable = &dbusPropertyTouchPadTPadEnable{&property.BaseObserver{}, core}
	obj.LeftHanded = &dbusPropertyTouchPadLeftHanded{&property.BaseObserver{}, core}
	obj.DisableIfTyping = &dbusPropertyTouchPadDisableIfTyping{&property.BaseObserver{}, core}
	obj.NaturalScroll = &dbusPropertyTouchPadNaturalScroll{&property.BaseObserver{}, core}
	obj.EdgeScroll = &dbusPropertyTouchPadEdgeScroll{&property.BaseObserver{}, core}
	obj.HorizScroll = &dbusPropertyTouchPadHorizScroll{&property.BaseObserver{}, core}
	obj.VertScroll = &dbusPropertyTouchPadVertScroll{&property.BaseObserver{}, core}
	obj.TapClick = &dbusPropertyTouchPadTapClick{&property.BaseObserver{}, core}
	obj.MotionAcceleration = &dbusPropertyTouchPadMotionAcceleration{&property.BaseObserver{}, core}
	obj.MotionThreshold = &dbusPropertyTouchPadMotionThreshold{&property.BaseObserver{}, core}
	obj.DoubleClick = &dbusPropertyTouchPadDoubleClick{&property.BaseObserver{}, core}
	obj.DragThreshold = &dbusPropertyTouchPadDragThreshold{&property.BaseObserver{}, core}
	obj.DeltaScroll = &dbusPropertyTouchPadDeltaScroll{&property.BaseObserver{}, core}
	obj.Exist = &dbusPropertyTouchPadExist{&property.BaseObserver{}, core}
	obj.DeviceList = &dbusPropertyTouchPadDeviceList{&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='com.deepin.daemon.InputDevice.TouchPad',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) == "com.deepin.daemon.InputDevice.TouchPad" {
				props := v.Body[1].(map[string]dbus.Variant)
				for key, _ := range props {
					if false {
					} else if key == "TPadEnable" {
						obj.TPadEnable.Notify()

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

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

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

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

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

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

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

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

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

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

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

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

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

					} else if key == "DeviceList" {
						obj.DeviceList.Notify()
					}
				}
			} else if v.Name == "com.deepin.daemon.InputDevice.TouchPad.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 == "TPadEnable" {
						obj.TPadEnable.Notify()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	runtime.SetFinalizer(obj, func(_obj *TouchPad) { DestroyTouchPad(_obj) })
	return obj, nil
}
