Class Index | File Index

Classes


Class DownloadableSubscription


Extends RegularSubscription.

Defined in: subscriptionClasses.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Class for filter subscriptions updated by externally (by other extension)
Field Summary
Field Attributes Field Name and Description
 
Value of the X-Alternative-Locations header: comma-separated list of URLs with their weighting factors, e.g.
 
Status of the last download (ID of a string)
 
Number of download failures since last success
 
Hard expiration time of the filter subscription (in seconds since the beginning of the epoch)
 
Time when the subscription was considered for an update last time (in seconds since the beginning of the epoch).
 
Value of the Last-Modified header returned by the server on last download
 
Time of the last successful download (in seconds since the beginning of the epoch).
 
Next URL the downloaded should be attempted from (in case of redirects)
 
Minimal Adblock Plus version required for this subscription
 
Soft expiration time of the filter subscription (in seconds since the beginning of the epoch)
 
Should be true if requiredVersion is higher than current Adblock Plus version
Fields borrowed from class RegularSubscription:
homepage, lastDownload
Fields borrowed from class Subscription:
disabled, filters, fixedTitle, title, url
Method Summary
Method Attributes Method Name and Description
 
serialize(buffer)
See Subscription.serialize()
Methods borrowed from class Subscription:
serializeFilters, toString
Class Detail
DownloadableSubscription(url, title)
Class for filter subscriptions updated by externally (by other extension)
Parameters:
{String} url
see Subscription()
{String} title Optional
see Subscription()
Field Detail
{String} alternativeLocations
Value of the X-Alternative-Locations header: comma-separated list of URLs with their weighting factors, e.g.: http://foo.example.com/;q=0.5,http://bar.example.com/;q=2

{String} downloadStatus
Status of the last download (ID of a string)

{Number} errors
Number of download failures since last success

{Number} expires
Hard expiration time of the filter subscription (in seconds since the beginning of the epoch)

{Number} lastCheck
Time when the subscription was considered for an update last time (in seconds since the beginning of the epoch). This will be used to increase softExpiration if the user doesn't use Adblock Plus for some time.

{String} lastModified
Value of the Last-Modified header returned by the server on last download

lastSuccess
Time of the last successful download (in seconds since the beginning of the epoch).

{String} nextURL
Next URL the downloaded should be attempted from (in case of redirects)

{String} requiredVersion
Minimal Adblock Plus version required for this subscription

{Number} softExpiration
Soft expiration time of the filter subscription (in seconds since the beginning of the epoch)

{Boolean} upgradeRequired
Should be true if requiredVersion is higher than current Adblock Plus version
Method Detail
serialize(buffer)
See Subscription.serialize()
Parameters:
buffer

Documentation generated by JsDoc Toolkit 2.3.2 on Fri May 17 2013 12:20:32 GMT+0000 (UTC)