messaging

package
v0.0.0-...-6789dc4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package messaging wraps the messaging menu indicator, allowing for persistent notifications to the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagingMenu

type MessagingMenu struct {
	Log logger.Logger
	Ch  chan *reply.MMActionReply
	// contains filtered or unexported fields
}

func New

func New(log logger.Logger) *MessagingMenu

New returns a new MessagingMenu

func (*MessagingMenu) Clear

func (mmu *MessagingMenu) Clear(app *click.AppId, tags ...string) int

func (*MessagingMenu) GetCh

func (mmu *MessagingMenu) GetCh() chan *reply.MMActionReply

GetCh returns the reply channel, exactly like mm.Ch.

func (*MessagingMenu) Present

func (mmu *MessagingMenu) Present(app *click.AppId, nid string, notification *launch_helper.Notification) bool

func (*MessagingMenu) RemoveNotification

func (mmu *MessagingMenu) RemoveNotification(notificationId string, fromUI bool)

func (*MessagingMenu) Tags

func (mmu *MessagingMenu) Tags(app *click.AppId) []string

Directories

Path Synopsis
package cmessaging wraps libmessaging-menu Copyright 2014 Canonical Ltd.
package cmessaging wraps libmessaging-menu Copyright 2014 Canonical Ltd.
reply is where we keep MMActionReply, so we can use it from messaging and cmessaging without going circular about it
reply is where we keep MMActionReply, so we can use it from messaging and cmessaging without going circular about it

Jump to

Keyboard shortcuts

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