Documentation ¶
Index ¶
- Constants
- func CopyFile(src, dst string, copyFlag CopyFlag) error
- type CategoryID
- type CopyFlag
- type Item
- type ItemInfo
- type Manager
- func (m *Manager) GetAllItemInfos() (list []ItemInfo, busErr *dbus.Error)
- func (m *Manager) GetAllNewInstalledApps() (apps []string, busErr *dbus.Error)
- func (m *Manager) GetDisableScaling(id string) (value bool, busErr *dbus.Error)
- func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
- func (m *Manager) GetInterfaceName() string
- func (m *Manager) GetItemInfo(id string) (itemInfo ItemInfo, busErr *dbus.Error)
- func (m *Manager) GetUseProxy(id string) (value bool, busErr *dbus.Error)
- func (m *Manager) IsItemOnDesktop(id string) (result bool, busErr *dbus.Error)
- func (m *Manager) MarkLaunched(id string) *dbus.Error
- func (m *Manager) RequestRemoveFromDesktop(id string) (ok bool, busErr *dbus.Error)
- func (m *Manager) RequestSendToDesktop(id string) (ok bool, busErr *dbus.Error)
- func (m *Manager) RequestUninstall(sender dbus.Sender, id string, purge bool) *dbus.Error
- func (m *Manager) Search(key string) *dbus.Error
- func (m *Manager) SetDisableScaling(id string, value bool) *dbus.Error
- func (m *Manager) SetUseProxy(id string, value bool) *dbus.Error
- type MatchResult
- type MatchResults
- type Module
- type SearchScore
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 ¶
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 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
type Manager ¶
type Manager struct { // Properties: DisplayMode gsprop.Enum `prop:"access:rw"` Fullscreen gsprop.Bool `prop:"access:rw"` // contains filtered or unexported fields }
func (*Manager) GetAllItemInfos ¶
func (*Manager) GetAllNewInstalledApps ¶
func (*Manager) GetDisableScaling ¶
func (*Manager) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
func (*Manager) GetItemInfo ¶
func (*Manager) GetUseProxy ¶
func (*Manager) IsItemOnDesktop ¶
func (*Manager) MarkLaunched ¶
MarkLaunched 废弃
func (*Manager) RequestRemoveFromDesktop ¶
func (*Manager) RequestSendToDesktop ¶
func (*Manager) RequestUninstall ¶
purge is useless
func (*Manager) SetDisableScaling ¶
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) 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 (*Module) GetDependencies ¶
type SearchScore ¶
type SearchScore uint64
Click to show internal directories.
Click to hide internal directories.