sni

package
v0.0.0-...-ecb45ff Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusPassive doesn't convey important information to the user, it can
	// be considered an "idle" status and is likely that visualizations will
	// chose to hide it.
	StatusPassive Status = "Passive"
	// StatusActive tells that item is active, is more important that the
	// item will be shown in some way to the user.
	StatusActive Status = "Active"
	// StatusNeedsAttention carries really important information for the user,
	// such as battery charge running out and is wants to incentive the direct
	// user intervention. Visualizations should emphasize in some way the items
	// with NeedsAttention status.
	StatusNeedsAttention Status = "NeedsAttention"

	// CategoryApplicationStatus describes the status of a generic application,
	// for instance the current state of a media player. In the case where
	// the category of the item can not be known, such as when the item is
	// being proxied from another incompatible or emulated system,
	// ApplicationStatus can be used a sensible default fallback.
	CategoryApplicationStatus Category = "ApplicationStatus"
	// CategoryCommunications describes the status of communication oriented
	// applications, like an instant messenger or an email client.
	CategoryCommunications Category = "Communications"
	// CategorySystemServices describes services of the system not seen as
	// a stand alone application by the user, such as an indicator for the
	// activity of a disk indexing service.
	CategorySystemServices Category = "SystemServices"
	// CategoryHardware describes the state and control of a particular
	// hardware, such as an indicator of the battery charge or sound card
	// volume control.
	CategoryHardware Category = "Hardware"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string

type SniServer

type SniServer struct {
	*status_notifier_item.StatusNotifierItem
}

func NewSniServer

func NewSniServer() *SniServer

func (*SniServer) Activate

func (s *SniServer) Activate(x, y int32) (err *dbus.Error)

Activate is org.kde.StatusNotifierItem.Activate method.

func (*SniServer) ContextMenu

func (s *SniServer) ContextMenu(x, y int32) (err *dbus.Error)

ContextMenu is org.kde.StatusNotifierItem.ContextMenu method.

func (*SniServer) Scroll

func (s *SniServer) Scroll(delta int32, orientation string) (err *dbus.Error)

Scroll is org.kde.StatusNotifierItem.Scroll method.

func (*SniServer) SecondaryActivate

func (s *SniServer) SecondaryActivate(x, y int32) (err *dbus.Error)

SecondaryActivate is org.kde.StatusNotifierItem.SecondaryActivate method.

type Status

type Status string

Jump to

Keyboard shortcuts

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