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 ¶
- type MediaPlayer
- type MockInterfaceMediaPlayer
- func (v *MockInterfaceMediaPlayer) CanQuit() proxy.PropBool
- func (v *MockInterfaceMediaPlayer) CanRaise() proxy.PropBool
- func (v *MockInterfaceMediaPlayer) DesktopEntry() proxy.PropString
- func (v *MockInterfaceMediaPlayer) GoQuit(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceMediaPlayer) GoRaise(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceMediaPlayer) Identity() proxy.PropString
- func (v *MockInterfaceMediaPlayer) Quit(flags dbus.Flags) error
- func (v *MockInterfaceMediaPlayer) Raise(flags dbus.Flags) error
- type MockInterfacePlayer
- func (v *MockInterfacePlayer) CanControl() proxy.PropBool
- func (v *MockInterfacePlayer) CanGoNext() proxy.PropBool
- func (v *MockInterfacePlayer) CanGoPrevious() proxy.PropBool
- func (v *MockInterfacePlayer) CanPause() proxy.PropBool
- func (v *MockInterfacePlayer) CanPlay() proxy.PropBool
- func (v *MockInterfacePlayer) CanSeek() proxy.PropBool
- func (v *MockInterfacePlayer) ConnectSeeked(cb func(Position int64)) (dbusutil.SignalHandlerId, error)
- func (v *MockInterfacePlayer) GoNext(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) GoPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) GoPlay(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) GoPlayPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) GoPrevious(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) GoSeek(flags dbus.Flags, ch chan *dbus.Call, Offset int64) *dbus.Call
- func (v *MockInterfacePlayer) GoSetPosition(flags dbus.Flags, ch chan *dbus.Call, TrackId dbus.ObjectPath, Position int64) *dbus.Call
- func (v *MockInterfacePlayer) GoStop(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfacePlayer) Metadata() PropPlayerMetadata
- func (v *MockInterfacePlayer) Next(flags dbus.Flags) error
- func (v *MockInterfacePlayer) Pause(flags dbus.Flags) error
- func (v *MockInterfacePlayer) Play(flags dbus.Flags) error
- func (v *MockInterfacePlayer) PlayPause(flags dbus.Flags) error
- func (v *MockInterfacePlayer) PlaybackStatus() proxy.PropString
- func (v *MockInterfacePlayer) Position() proxy.PropInt64
- func (v *MockInterfacePlayer) Previous(flags dbus.Flags) error
- func (v *MockInterfacePlayer) Seek(flags dbus.Flags, Offset int64) error
- func (v *MockInterfacePlayer) SetPosition(flags dbus.Flags, TrackId dbus.ObjectPath, Position int64) error
- func (v *MockInterfacePlayer) Stop(flags dbus.Flags) error
- func (v *MockInterfacePlayer) Volume() proxy.PropDouble
- type MockMediaPlayer
- type MockPropPlayerMetadata
- type PropPlayerMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaPlayer ¶
type MediaPlayer interface { MediaPlayer2() mediaPlayer // interface org.mpris.MediaPlayer2 Player() player // interface org.mpris.MediaPlayer2.Player proxy.Object }
func NewMediaPlayer ¶
func NewMediaPlayer(conn *dbus.Conn, serviceName string) MediaPlayer
type MockInterfaceMediaPlayer ¶
func (*MockInterfaceMediaPlayer) CanQuit ¶
func (v *MockInterfaceMediaPlayer) CanQuit() proxy.PropBool
func (*MockInterfaceMediaPlayer) CanRaise ¶
func (v *MockInterfaceMediaPlayer) CanRaise() proxy.PropBool
func (*MockInterfaceMediaPlayer) DesktopEntry ¶
func (v *MockInterfaceMediaPlayer) DesktopEntry() proxy.PropString
func (*MockInterfaceMediaPlayer) GoQuit ¶
func (v *MockInterfaceMediaPlayer) GoQuit(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfaceMediaPlayer) GoRaise ¶
func (v *MockInterfaceMediaPlayer) GoRaise(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfaceMediaPlayer) Identity ¶
func (v *MockInterfaceMediaPlayer) Identity() proxy.PropString
func (*MockInterfaceMediaPlayer) Quit ¶
func (v *MockInterfaceMediaPlayer) Quit(flags dbus.Flags) error
func (*MockInterfaceMediaPlayer) Raise ¶
func (v *MockInterfaceMediaPlayer) Raise(flags dbus.Flags) error
type MockInterfacePlayer ¶
func (*MockInterfacePlayer) CanControl ¶
func (v *MockInterfacePlayer) CanControl() proxy.PropBool
func (*MockInterfacePlayer) CanGoNext ¶
func (v *MockInterfacePlayer) CanGoNext() proxy.PropBool
func (*MockInterfacePlayer) CanGoPrevious ¶
func (v *MockInterfacePlayer) CanGoPrevious() proxy.PropBool
func (*MockInterfacePlayer) CanPause ¶
func (v *MockInterfacePlayer) CanPause() proxy.PropBool
func (*MockInterfacePlayer) CanPlay ¶
func (v *MockInterfacePlayer) CanPlay() proxy.PropBool
func (*MockInterfacePlayer) CanSeek ¶
func (v *MockInterfacePlayer) CanSeek() proxy.PropBool
func (*MockInterfacePlayer) ConnectSeeked ¶
func (v *MockInterfacePlayer) ConnectSeeked(cb func(Position int64)) (dbusutil.SignalHandlerId, error)
func (*MockInterfacePlayer) GoNext ¶
func (v *MockInterfacePlayer) GoNext(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) GoPause ¶
func (v *MockInterfacePlayer) GoPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) GoPlay ¶
func (v *MockInterfacePlayer) GoPlay(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) GoPlayPause ¶
func (v *MockInterfacePlayer) GoPlayPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) GoPrevious ¶
func (v *MockInterfacePlayer) GoPrevious(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) GoSeek ¶
func (v *MockInterfacePlayer) GoSeek(flags dbus.Flags, ch chan *dbus.Call, Offset int64) *dbus.Call
func (*MockInterfacePlayer) GoSetPosition ¶
func (v *MockInterfacePlayer) GoSetPosition(flags dbus.Flags, ch chan *dbus.Call, TrackId dbus.ObjectPath, Position int64) *dbus.Call
func (*MockInterfacePlayer) GoStop ¶
func (v *MockInterfacePlayer) GoStop(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
func (*MockInterfacePlayer) Metadata ¶
func (v *MockInterfacePlayer) Metadata() PropPlayerMetadata
func (*MockInterfacePlayer) Next ¶
func (v *MockInterfacePlayer) Next(flags dbus.Flags) error
func (*MockInterfacePlayer) Pause ¶
func (v *MockInterfacePlayer) Pause(flags dbus.Flags) error
func (*MockInterfacePlayer) Play ¶
func (v *MockInterfacePlayer) Play(flags dbus.Flags) error
func (*MockInterfacePlayer) PlayPause ¶
func (v *MockInterfacePlayer) PlayPause(flags dbus.Flags) error
func (*MockInterfacePlayer) PlaybackStatus ¶
func (v *MockInterfacePlayer) PlaybackStatus() proxy.PropString
func (*MockInterfacePlayer) Position ¶
func (v *MockInterfacePlayer) Position() proxy.PropInt64
func (*MockInterfacePlayer) Previous ¶
func (v *MockInterfacePlayer) Previous(flags dbus.Flags) error
func (*MockInterfacePlayer) Seek ¶
func (v *MockInterfacePlayer) Seek(flags dbus.Flags, Offset int64) error
func (*MockInterfacePlayer) SetPosition ¶
func (v *MockInterfacePlayer) SetPosition(flags dbus.Flags, TrackId dbus.ObjectPath, Position int64) error
func (*MockInterfacePlayer) Stop ¶
func (v *MockInterfacePlayer) Stop(flags dbus.Flags) error
func (*MockInterfacePlayer) Volume ¶
func (v *MockInterfacePlayer) Volume() proxy.PropDouble
type MockMediaPlayer ¶
type MockMediaPlayer struct { MockInterfaceMediaPlayer // interface org.mpris.MediaPlayer2 MockInterfacePlayer // interface org.mpris.MediaPlayer2.Player proxy.MockObject }
type MockPropPlayerMetadata ¶
func (MockPropPlayerMetadata) ConnectChanged ¶
func (p MockPropPlayerMetadata) ConnectChanged(cb func(hasValue bool, value map[string]dbus.Variant)) error
func (MockPropPlayerMetadata) Get ¶
func (p MockPropPlayerMetadata) Get(flags dbus.Flags) (value map[string]dbus.Variant, err error)
func (MockPropPlayerMetadata) Set ¶
func (p MockPropPlayerMetadata) Set(flags dbus.Flags, value map[string]dbus.Variant) error
Click to show internal directories.
Click to hide internal directories.