Dongle/Messages

DONGLE_PROFILE_CREATED
Fired when a new profile is created in any Dongle database object. The following arguments are passed with this message:
 * db (table) - The database object in which the profile was created
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * profile_key (string) - The name of the new profile created

DONGLE_PROFILE_CHANGED
Fired when a dongle database object changes profiles. The following arguments are passed with this message:
 * db (table) - The database object in which the profile was changed
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * profile_key (string) - The name of the new profile

DONGLE_PROFILE_DELETED
Fired when a profile is deleted within a dongle database object The following arguments are passed with this message:
 * db (table) - The database object in which the profile was deleted
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * profile_key (string) - The name of the profile that was deleted

DONGLE_PROFILE_COPIED
Fired when a profile is copies into the current profile. The following arguments are passed with this message:
 * db (table) - The database object in which the profile was copied
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * src_profile (string) - The name of the profile that was copied from
 * dest_profile (string) - The name of the destination (current) profile

DONGLE_PROFILE_RESET
Fired when a profile is reset within a dongle database object. The following arguments are passed with this message:
 * db (table) - The database object in which the profile was reset
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * profile_key (string) - The name of the profile that was reset

DONGLE_DATABASE_RESET
Fired when a dongle database object is reset. The following arguments are passed with this message:
 * db (table) - The database object that was reset
 * parent (table) - The dongle object that initialized the given database object
 * sv_name (string) - The name of the SavedVariable the database represents
 * profile_key (string) - The name of the profile the database selected