accounts

package
v0.0.0-...-2fed64a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2013-2015 Canonical Ltd.

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License version 3, as published
by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranties of
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.

accounts exposes some properties that're stored in org.freedesktop.Accounts (specifically, the ones that we need are all under com.ubuntu.touch.AccountsService.Sound).

Index

Constants

This section is empty.

Variables

View Source
var BusAddress bus.Address = bus.Address{
	Interface: "org.freedesktop.DBus.Properties",
	Path:      "/org/freedesktop/Accounts/User",
	Name:      "org.freedesktop.Accounts",
}

accounts lives on a well-known bus.Address.

Note this one isn't it: the interface is for dbus.properties, and the path is missing the UID.

Functions

This section is empty.

Types

type Accounts

type Accounts interface {
	// Start() sets up the asynchronous updating of properties, and does the first update.
	Start() error
	// Cancel() stops the asynchronous updating of properties.
	Cancel() error
	// SilentMode() tells you whether the device is in silent mode.
	SilentMode() bool
	// Vibrate() tells you whether the device is allowed to vibrate.
	Vibrate() bool
	// MessageSoundFile() tells you the default sound filename.
	MessageSoundFile() string
	String() string
}

func New

func New(endp bus.Endpoint, log logger.Logger) Accounts

sets up a new Accounts structure, ready to be Start()ed.

Jump to

Keyboard shortcuts

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