This section defines enumerated types and manifest constants used in the COM library.
The following enumerated constants specify notification content types. See the UP.SDK Developer's Guide for a description of notification and notification content types.
| Constant | Value | Description |
|---|---|---|
|
CNtfnTypePrefetch
|
1
| |
|
CNtfnTypeAlert
|
2
| |
|
CNtfnTypeCacheOp
|
3
| |
|
CNtfnTypeNone
|
0
| A dummy, invalid type, which you can use for catching errors. |
The following enumerated constants specify notification status codes returned by the UP.Link server in response to NtfnGetNtfnStatus, NtfnGetPrefetchStatus, and NtfnGetAlertStatus calls..
The following constants specify the IANA-assigned port numbers for secure and non-secure notifications.
The following constants specify HTTP status codes. The meaning of these codes varies slightly, depending on which method returns them. See the sections for the methods that return these code for complete descriptions..
| Constant | Value | Description |
|---|---|---|
|
CHTTPStatusOK
|
200
| |
|
CHTTPStatusNoContent
|
204
| |
|
CHTTPStatusBadRequest
|
400
| |
|
CHTTPStatusForbidden
|
403
| |
|
CHTTPStatusNotFound
|
404
| |
|
CHTTPStatusSvcUnavail
|
503
|
For more information on HTTP status codes, see the following RFC:
http://www.internic.net/rfc/rfc1945.txt
-1 error value, this indicates a general I/O failure has occured. The most common cause of this error is that a corporate firewall is blocking the destination notification port.
The following constants specify the notification protocols used by the Notification API.