Register a publisher and send a notification at a time.
Parameters: |
|
---|
Send a subscription request and return ttl.
Parameters: |
|
---|
Publisher of Growl Notification Transport Protocol (GNTP).
This class supports REGISTER and NOTIFY requests. They are sent by register() and publish() methods respectively. These methods can accept the optional final callback as callback keyword argument, which run after closing the connection with the GNTP server.
event_defs is a list of str, unicode, double (of str and bool) or Event instance. It is converted to a list of Event instance as follows: str or unicode item becomes value of the name attribute of Event instance, whose other attributes are defaults. Double item is expanded to (name, enabled) tuple, and those values are passed to Event constructor. Event instance item is used directly.
Optional keyword arguments are passed to the gntp_client_class constructor.
Parameters: |
|
---|
Note
In Growl 1.3.3, icon of url string does not work.
Send a notification to the GNTP server.
Parameters: |
|
---|
Note
In Growl 1.3.3, icon of url string does not work.
Note
Growl for Windows v2.0+ and Growl v1.3+ require coalescing_id to be the same on both the original and updated notifcation, ignoring the value of id_.
Register this publisher to the GNTP server.
Parameters: | callback – the callback run after closing the connection with the GNTP server. Defaults to None. |
---|
Subscriber of Growl Notification Transport Protocol (GNTP).
This class supports SUBSCRIBE request.
Parameters: |
|
---|
Update ttl attribute.
Send a subscription request.
If callback is None, store_ttl() is used and ttl is updated by Subscription-TTL value of the response.
Parameters: | callback – the callback run after closing the connection with the GNTP server. Defaults to None. |
---|
Asynchronous Publisher of Growl Notification Transport Protocol (GNTP).
Same as Publisher except the following:
Parameters: |
|
---|
Send a notification to the GNTP server.
Parameters: |
|
---|
Note
In Growl 1.3.3, icon of url string does not work.
Note
Growl for Windows v2.0+ and Growl v1.3+ require coalescing_id to be the same on both the original and updated notifcation, ignoring the value of id_.
Register this publisher to the GNTP server.
Parameters: | callback – the callback run after closing the connection with the GNTP server. Defaults to None. |
---|
Asynchronous Subscriber of Growl Notification Transport Protocol (GNTP).
Same as Subscriber except the following:
Parameters: |
|
---|
Update ttl attribute.
Send a subscription request.
If callback is None, store_ttl() is used and ttl is updated by Subscription-TTL value of the response.
Parameters: | callback – the callback run after closing the connection with the GNTP server. Defaults to None. |
---|
GNTP client.
Parameters: |
|
---|
Represent notification type.
Parameters: |
|
---|
Note
In Growl 1.3.3, icon does not work.
Class for <uniqueid> data types.
Parameters: | data – the binary content. |
---|
Return the <uniqueid> value.
Return the <uniquevalue> value.
Class for asynchronous resource.
Parameters: | url – url string of the resource. |
---|
Base class for socket callback.
Each of the callbacks takes one positional argument, which is Response instance.
Parameters: |
|
---|
Note
TIMEDOUT callback does not occur in my Growl 1.3.3.
Run CLICKED event callback.
Run CLOSED event callback.
Run TIMEDOUT event callback.