|
|
|
@ -56,18 +56,18 @@ function Calibre:onCloseWirelessConnection()
|
|
|
|
|
self:closeWirelessConnection()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function Calibre:closeWirelessConnection()
|
|
|
|
|
if CalibreWireless.calibre_socket then
|
|
|
|
|
CalibreWireless:disconnect()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function Calibre:startWirelessConnection()
|
|
|
|
|
if not CalibreWireless.calibre_socket then
|
|
|
|
|
CalibreWireless:connect()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function Calibre:closeWirelessConnection()
|
|
|
|
|
if CalibreWireless.calibre_socket then
|
|
|
|
|
CalibreWireless:disconnect()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function Calibre:onDispatcherRegisterActions()
|
|
|
|
|
Dispatcher:registerAction("calibre_search", { category="none", event="CalibreSearch", title=_("Calibre metadata search"), general=true,})
|
|
|
|
|
Dispatcher:registerAction("calibre_browse_tags", { category="none", event="CalibreBrowseBy", arg="tags", title=_("Browse all calibre tags"), general=true,})
|
|
|
|
|