Documentation ¶
Overview ¶
SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
SPDX-License-Identifier: GPL-3.0-or-later
Index ¶
- Constants
- type Client
- type Location
- type Manager
- type MockClient
- type MockInterfaceClient
- func (v *MockInterfaceClient) Active() proxy.PropBool
- func (v *MockInterfaceClient) ConnectLocationUpdated(cb func(old dbus.ObjectPath, new dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
- func (v *MockInterfaceClient) DesktopId() proxy.PropString
- func (v *MockInterfaceClient) DistanceThreshold() proxy.PropUint32
- func (v *MockInterfaceClient) GoStart(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceClient) GoStop(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceClient) Location() proxy.PropObjectPath
- func (v *MockInterfaceClient) RequestedAccuracyLevel() proxy.PropUint32
- func (v *MockInterfaceClient) Start(flags dbus.Flags) error
- func (v *MockInterfaceClient) Stop(flags dbus.Flags) error
- func (v *MockInterfaceClient) TimeThreshold() proxy.PropUint32
- type MockInterfaceLocation
- func (v *MockInterfaceLocation) Accuracy() proxy.PropDouble
- func (v *MockInterfaceLocation) Altitude() proxy.PropDouble
- func (v *MockInterfaceLocation) Description() proxy.PropString
- func (v *MockInterfaceLocation) Heading() proxy.PropDouble
- func (v *MockInterfaceLocation) Latitude() proxy.PropDouble
- func (v *MockInterfaceLocation) Longitude() proxy.PropDouble
- func (v *MockInterfaceLocation) Speed() proxy.PropDouble
- func (v *MockInterfaceLocation) Timestamp() PropTimestamp
- type MockInterfaceManager
- func (v *MockInterfaceManager) AddAgent(flags dbus.Flags, id string) error
- func (v *MockInterfaceManager) AvailableAccuracyLevel() proxy.PropUint32
- func (v *MockInterfaceManager) GetClient(flags dbus.Flags) (dbus.ObjectPath, error)
- func (v *MockInterfaceManager) GoAddAgent(flags dbus.Flags, ch chan *dbus.Call, id string) *dbus.Call
- func (v *MockInterfaceManager) GoGetClient(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceManager) InUse() proxy.PropBool
- type MockLocation
- type MockManager
- type MockPropTimestamp
- type PropTimestamp
- type Timestamp
Constants ¶
View Source
const ( AccuracyLevelNone = 0 AccuracyLevelCountry = 1 AccuracyLevelCity = 4 AccuracyLevelNeighborhood = 5 AccuracyLevelStreet = 6 AccuracyLevelExact = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
func NewLocation ¶
type Manager ¶
func NewManager ¶
func NewManager(conn *dbus.Conn) Manager
type MockClient ¶
type MockClient struct { MockInterfaceClient // interface org.freedesktop.GeoClue2.Client proxy.MockObject }
type MockInterfaceClient ¶
func (*MockInterfaceClient) Active ¶
func (v *MockInterfaceClient) Active() proxy.PropBool
func (*MockInterfaceClient) ConnectLocationUpdated ¶
func (v *MockInterfaceClient) ConnectLocationUpdated(cb func(old dbus.ObjectPath, new dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
func (*MockInterfaceClient) DesktopId ¶
func (v *MockInterfaceClient) DesktopId() proxy.PropString
func (*MockInterfaceClient) DistanceThreshold ¶
func (v *MockInterfaceClient) DistanceThreshold() proxy.PropUint32
func (*MockInterfaceClient) GoStart ¶
func (v *MockInterfaceClient) GoStart(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfaceClient) GoStop ¶
func (v *MockInterfaceClient) GoStop(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfaceClient) Location ¶
func (v *MockInterfaceClient) Location() proxy.PropObjectPath
func (*MockInterfaceClient) RequestedAccuracyLevel ¶
func (v *MockInterfaceClient) RequestedAccuracyLevel() proxy.PropUint32
func (*MockInterfaceClient) Start ¶
func (v *MockInterfaceClient) Start(flags dbus.Flags) error
func (*MockInterfaceClient) Stop ¶
func (v *MockInterfaceClient) Stop(flags dbus.Flags) error
func (*MockInterfaceClient) TimeThreshold ¶
func (v *MockInterfaceClient) TimeThreshold() proxy.PropUint32
type MockInterfaceLocation ¶
func (*MockInterfaceLocation) Accuracy ¶
func (v *MockInterfaceLocation) Accuracy() proxy.PropDouble
func (*MockInterfaceLocation) Altitude ¶
func (v *MockInterfaceLocation) Altitude() proxy.PropDouble
func (*MockInterfaceLocation) Description ¶
func (v *MockInterfaceLocation) Description() proxy.PropString
func (*MockInterfaceLocation) Heading ¶
func (v *MockInterfaceLocation) Heading() proxy.PropDouble
func (*MockInterfaceLocation) Latitude ¶
func (v *MockInterfaceLocation) Latitude() proxy.PropDouble
func (*MockInterfaceLocation) Longitude ¶
func (v *MockInterfaceLocation) Longitude() proxy.PropDouble
func (*MockInterfaceLocation) Speed ¶
func (v *MockInterfaceLocation) Speed() proxy.PropDouble
func (*MockInterfaceLocation) Timestamp ¶
func (v *MockInterfaceLocation) Timestamp() PropTimestamp
type MockInterfaceManager ¶
func (*MockInterfaceManager) AddAgent ¶
func (v *MockInterfaceManager) AddAgent(flags dbus.Flags, id string) error
func (*MockInterfaceManager) AvailableAccuracyLevel ¶
func (v *MockInterfaceManager) AvailableAccuracyLevel() proxy.PropUint32
func (*MockInterfaceManager) GetClient ¶
func (v *MockInterfaceManager) GetClient(flags dbus.Flags) (dbus.ObjectPath, error)
func (*MockInterfaceManager) GoAddAgent ¶
func (v *MockInterfaceManager) GoAddAgent(flags dbus.Flags, ch chan *dbus.Call, id string) *dbus.Call
func (*MockInterfaceManager) GoGetClient ¶
func (v *MockInterfaceManager) GoGetClient(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfaceManager) InUse ¶
func (v *MockInterfaceManager) InUse() proxy.PropBool
type MockLocation ¶
type MockLocation struct { MockInterfaceLocation // interface org.freedesktop.GeoClue2.Location proxy.MockObject }
type MockManager ¶
type MockManager struct { MockInterfaceManager // interface org.freedesktop.GeoClue2.Manager proxy.MockObject }
type MockPropTimestamp ¶
func (MockPropTimestamp) ConnectChanged ¶
func (p MockPropTimestamp) ConnectChanged(cb func(hasValue bool, value Timestamp)) error
func (MockPropTimestamp) Get ¶
func (p MockPropTimestamp) Get(flags dbus.Flags) (value Timestamp, err error)
func (MockPropTimestamp) Set ¶
func (p MockPropTimestamp) Set(flags dbus.Flags, value Timestamp) error
type PropTimestamp ¶
Click to show internal directories.
Click to hide internal directories.