NetActivity

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Overview

Package NetActivity is a monitoring, upload and download applet for Cairo-Dock.

Improvements since original DropToShare version:

Not using temp files.
Many new upload sites.
Code simple and maintainable (400 lines for 18 backends).

Dependencies:

xsel or xclip command for clipboard interaction when build without gtk.

Not implemented (yet):

Icon for the applet.
More menu options.
Save image copy (and display).
Custom upload scripts.

Index

Constants

View Source
const (
	// EmblemAction is the position of the "upload in progress" emblem.
	EmblemAction = cdtype.EmblemTopRight

	// EmblemDownload is the position of the "download in progress" emblem.
	EmblemDownload = cdtype.EmblemTopLeft
)

Variables

This section is empty.

Functions

func NewApplet

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

Types

type Applet

type Applet struct {
	cdtype.AppBase // Applet base and dock connection.
	// contains filtered or unexported fields
}

Applet defines a dock applet.

func (*Applet) DownloadVideo

func (app *Applet) DownloadVideo(data string)

DownloadVideo downloads the video from url.

func (*Applet) Init

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init load user configuration if needed and initialise applet.

func (app *Applet) UpToShareLastLink() string

UpToShareLastLink gets the link of the last item sent to a one-click hosting service.

func (app *Applet) UpToShareLinks() []uptoshare.Links

UpToShareLinks gets all links of items sent to one-click hosting services.

func (*Applet) UpToShareUploadString

func (app *Applet) UpToShareUploadString(data string)

UpToShareUploadString uploads data to a one-click site: file location or text.

func (*Applet) UploadFiles

func (app *Applet) UploadFiles(files ...string)

UploadFiles uploads data to a one-click site: file location or text.

Jump to

Keyboard shortcuts

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