geoclue2

package
v0.0.0-...-77ac5d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

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

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 Client

type Client interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewClient

func NewClient(conn *dbus.Conn, path dbus.ObjectPath) (Client, error)

type Location

type Location interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewLocation

func NewLocation(conn *dbus.Conn, path dbus.ObjectPath) (Location, error)

type Manager

type Manager interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewManager

func NewManager(conn *dbus.Conn) Manager

type MockClient

type MockClient struct {
	MockInterfaceClient // interface org.freedesktop.GeoClue2.Client
	proxy.MockObject
}

type MockInterfaceClient

type MockInterfaceClient struct {
	mock.Mock
}

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 (*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

type MockInterfaceLocation struct {
	mock.Mock
}

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 (*MockInterfaceLocation) Timestamp

func (v *MockInterfaceLocation) Timestamp() PropTimestamp

type MockInterfaceManager

type MockInterfaceManager struct {
	mock.Mock
}

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

type MockPropTimestamp struct {
	mock.Mock
}

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

type PropTimestamp interface {
	Get(flags dbus.Flags) (value Timestamp, err error)
	Set(flags dbus.Flags, value Timestamp) error
	ConnectChanged(cb func(hasValue bool, value Timestamp)) error
}

type Timestamp

type Timestamp struct {
	Seconds      uint64
	Microseconds uint64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL