Documentation ¶
Index ¶
Constants ¶
View Source
const (
DBusPath = "/com/deepin/daemon/Logined"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct { UserList string LastLogoutUser uint32 // contains filtered or unexported fields }
Manager manager logined user list
func (*Manager) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
type SessionInfo ¶
type SessionInfo struct { // Active bool Uid uint32 Desktop string Display string // contains filtered or unexported fields }
SessionInfo Show logined session info, if type is tty or ssh, no desktop and display
func (*SessionInfo) Equal ¶
func (info *SessionInfo) Equal(target *SessionInfo) bool
Equal Check whether equal with target
type SessionInfos ¶
type SessionInfos []*SessionInfo
SessionInfos Logined session list
func (SessionInfos) Add ¶
func (infos SessionInfos) Add(info *SessionInfo) (SessionInfos, bool)
Add Add user to list, if exist and equal, return false else replace it, return true
func (SessionInfos) Delete ¶
func (infos SessionInfos) Delete(p dbus.ObjectPath) (SessionInfos, bool)
Delete Delete user from list, if deleted, return true
func (SessionInfos) Index ¶
func (infos SessionInfos) Index(p dbus.ObjectPath) int32
Index Find the user position in list, if not found, return -1
Click to show internal directories.
Click to hide internal directories.