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 }
Click to show internal directories.
Click to hide internal directories.