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
- func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance
- type Applet
- func (app *Applet) DownloadVideo(data string)
- func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)
- func (app *Applet) UpToShareLastLink() string
- func (app *Applet) UpToShareLinks() []uptoshare.Links
- func (app *Applet) UpToShareUploadString(data string)
- func (app *Applet) UploadFiles(files ...string)
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 ¶
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 ¶
DownloadVideo downloads the video from url.
func (*Applet) UpToShareLastLink ¶
UpToShareLastLink gets the link of the last item sent to a one-click hosting service.
func (*Applet) UpToShareLinks ¶
UpToShareLinks gets all links of items sent to one-click hosting services.
func (*Applet) UpToShareUploadString ¶
UpToShareUploadString uploads data to a one-click site: file location or text.
func (*Applet) UploadFiles ¶
UploadFiles uploads data to a one-click site: file location or text.
Click to show internal directories.
Click to hide internal directories.