Register a publisher and send a notification at a time.
パラメタ: |
|
---|
Send a subscription request and return ttl.
パラメタ: |
|
---|
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.
パラメタ: |
|
---|
ノート
In Growl 1.3.3, icon of url string does not work.
Send a notification to the GNTP server.
パラメタ: |
|
---|
ノート
In Growl 1.3.3, icon of url string does not work.
ノート
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.
パラメタ: | 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.
パラメタ: |
|
---|
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.
パラメタ: | 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:
パラメタ: |
|
---|
Send a notification to the GNTP server.
パラメタ: |
|
---|
ノート
In Growl 1.3.3, icon of url string does not work.
ノート
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.
パラメタ: | 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:
パラメタ: |
|
---|
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.
パラメタ: | callback – the callback run after closing the connection with the GNTP server. Defaults to None. |
---|
GNTP client.
パラメタ: |
|
---|
Represent notification type.
パラメタ: |
|
---|
ノート
In Growl 1.3.3, icon does not work.
Class for <uniqueid> data types.
パラメタ: | data – the binary content. |
---|
Return the <uniqueid> value.
Return the <uniquevalue> value.
Class for asynchronous resource.
パラメタ: | url – url string of the resource. |
---|
Base class for socket callback.
Each of the callbacks takes one positional argument, which is Response instance.
パラメタ: |
|
---|
ノート
TIMEDOUT callback does not occur in my Growl 1.3.3.
Run CLICKED event callback.
Run CLOSED event callback.
Run TIMEDOUT event callback.