General Change Notification: 4.1 Application Local GCN Lists: Creating Types and Lists

Up: GEOS SDK TechDocs | Up | Prev: 4 Application Local GCN Lists | Next: 4.2 Registering for Notification

It is a relatively simple matter to create your own notification types. Within an appropriate company-specific file merely create your own types and lists. (For example, all Geoworks application-local lists are within the file geoworks.h .)

Code Display 9-3 Creating New Notification Types and Lists

/* These types should be placed within an appropriate yourCompanyName.h file. */
/* First create a group of Notification types to use for your MANUFACTURER_ID. */
typedef enum {
    <yourCompanyName>_NT_CUSTOM_NOTIFICATION_NUMBER_ONE
    <yourCompanyName>_NT_CUSTOM_NOTIFICATION_NUMBER_TWO
    ...
} <yourCompanyName>NotificationTypes;
/* Then create whatever Notification list types you need. These list types
 * usually correspond one-to-one to the types enumerated above. It is possible,
 * however, for several lists to be interested in a single notification type. */
typedef enum {
    <yourCompanyName>_GAGCNLT_CUSTOM_LIST_TYPE_ONE
    <yourCompanyName>_GAGCNLT_CUSTOM_LIST_TYPE_TWO
    ...
} <yourCompanyName>GenAppGCNListTypes;

Up: GEOS SDK TechDocs | Up | Prev: 4 Application Local GCN Lists | Next: 4.2 Registering for Notification