launcher

package
v0.0.0-...-61f35a2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppStatusCreated  = "created"
	AppStatusModified = "updated"
	AppStatusDeleted  = "deleted"
)
View Source
const (
	JobStatusSucceed = "succeed"
	JobStatusFailed  = "failed"
	JobStatusEnd     = "end"
)
View Source
const (
	Poor         = 50
	BelowAverage = 60
	Average      = 70
	AboveAverage = 75
	Good         = 80
	VeryGood     = 85
	Excellent    = 90
	Highest      = 100
)
View Source
const (
	AppDirName                 = "applications"
	DirDefaultPerm os.FileMode = 0755
)

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string, copyFlag CopyFlag) error

CopyFile copys file.

Types

type CategoryID

type CategoryID int64
const (
	CategoryInternet CategoryID = iota
	CategoryChat
	CategoryMusic
	CategoryVideo
	CategoryGraphics
	CategoryGame
	CategoryOffice
	CategoryReading
	CategoryDevelopment
	CategorySystem
	CategoryOthers
)

func (CategoryID) Pinyin

func (cid CategoryID) Pinyin() string

func (CategoryID) String

func (cid CategoryID) String() string

type CopyFlag

type CopyFlag int

CopyFlag type

const (
	CopyFileNone CopyFlag = 1 << iota
	CopyFileNotKeepSymlink
	CopyFileOverWrite
)

copy file flags

type Item

type Item struct {
	Path string
	Name string // display name

	ID            string
	Icon          string
	CategoryID    CategoryID
	TimeInstalled int64
	// contains filtered or unexported fields
}

func NewItemWithDesktopAppInfo

func NewItemWithDesktopAppInfo(appInfo *desktopappinfo.DesktopAppInfo) *Item

func (*Item) String

func (item *Item) String() string

type ItemInfo

type ItemInfo struct {
	Path          string
	Name          string // display name
	ID            string
	Icon          string
	CategoryID    CategoryID
	TimeInstalled int64
}

type Manager

type Manager struct {

	// Properties:
	DisplayMode gsprop.Enum `prop:"access:rw"`
	Fullscreen  gsprop.Bool `prop:"access:rw"`
	// contains filtered or unexported fields
}

func NewManager

func NewManager(service *dbusutil.Service) (*Manager, error)

func (*Manager) GetAllItemInfos

func (m *Manager) GetAllItemInfos() (list []ItemInfo, busErr *dbus.Error)

func (*Manager) GetAllNewInstalledApps

func (m *Manager) GetAllNewInstalledApps() (apps []string, busErr *dbus.Error)

func (*Manager) GetDisableScaling

func (m *Manager) GetDisableScaling(id string) (value bool, busErr *dbus.Error)

func (*Manager) GetExportedMethods

func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods

func (*Manager) GetInterfaceName

func (m *Manager) GetInterfaceName() string

func (*Manager) GetItemInfo

func (m *Manager) GetItemInfo(id string) (itemInfo ItemInfo, busErr *dbus.Error)

func (*Manager) GetUseProxy

func (m *Manager) GetUseProxy(id string) (value bool, busErr *dbus.Error)

func (*Manager) IsItemOnDesktop

func (m *Manager) IsItemOnDesktop(id string) (result bool, busErr *dbus.Error)

func (*Manager) MarkLaunched

func (m *Manager) MarkLaunched(id string) *dbus.Error

MarkLaunched 废弃

func (*Manager) RequestRemoveFromDesktop

func (m *Manager) RequestRemoveFromDesktop(id string) (ok bool, busErr *dbus.Error)

func (*Manager) RequestSendToDesktop

func (m *Manager) RequestSendToDesktop(id string) (ok bool, busErr *dbus.Error)

func (*Manager) RequestUninstall

func (m *Manager) RequestUninstall(sender dbus.Sender, id string, purge bool) *dbus.Error

purge is useless

func (*Manager) Search

func (m *Manager) Search(key string) *dbus.Error

func (*Manager) SetDisableScaling

func (m *Manager) SetDisableScaling(id string, value bool) *dbus.Error

func (*Manager) SetUseProxy

func (m *Manager) SetUseProxy(id string, value bool) *dbus.Error

type MatchResult

type MatchResult struct {
	// contains filtered or unexported fields
}

func (*MatchResult) String

func (r *MatchResult) String() string

type MatchResults

type MatchResults []*MatchResult

func (MatchResults) Copy

func (results MatchResults) Copy() MatchResults

func (MatchResults) GetTruncatedOrderedIDs

func (results MatchResults) GetTruncatedOrderedIDs() []string

func (MatchResults) Len

func (p MatchResults) Len() int

impl sort interface

func (MatchResults) Less

func (p MatchResults) Less(i, j int) bool

func (MatchResults) Swap

func (p MatchResults) Swap(i, j int)

type Module

type Module struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func NewModule

func NewModule(logger *log.Logger) *Module

func (*Module) GetDependencies

func (d *Module) GetDependencies() []string

func (*Module) Start

func (d *Module) Start() error

func (*Module) Stop

func (d *Module) Stop() error

type SearchScore

type SearchScore uint64

Jump to

Keyboard shortcuts

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