Phonebook - AMX CAFE DUET STANDARD NETLINX API (SNAPI) COMPONENTS AND LISTENERS Instruction Manual

Standard netlinx api (snapi) r 1.8.0 components/listeners
Table of Contents

Advertisement

Phonebook

Component
Name: Phonebook
Interface: IPhonebookComponent
Component Functions:
Name:
Channel:
Level: Command:
closeSearchDB(search-
Handle)
deleteRecord(recordID)
getPhonebookCapacity()
queryDB(si)
queryDB(si)
queryDB(si)
searchDB(sr)
updateRecord(sdr)
Standard NetLinx API (SNAPI) R 1.8.0
IPhonebookComponent
Constant:
PHONEBOOKCLOSESEARCH-
<key>
PHONEBOOKDELETE-<id>
?PHONEBOOKCAPACITY
PHONEBOOKNEXT-
<key>[,<count>,<position>]
PHONEBOOKPREV-
<key>[,<count>]
PHONEBOOKREFRESH-
<key>[,<count>]
PHONEBOOKSEARCH-
<key>,ID=<id>
PHONEBOOKUPDATE-
<id>,<name>,<number>
Notes:
Close the search associated with search key = <key>
Delete phonebook record with index/id of <id>
Query for the phonebook capacity. Responds with PHONEBOOKCAPACITY-<count>
where count is 1 to x and x is the maximum supported phonebook index (see specific
module documentation)
Request next <count> records starting with record <position> for the phonebook search
associated with search key <key>. If <count> is not present, it is assumed to be 1. If
<position> is not present, it is assumed th be the next record in the search result set
based on the last PHONEBOOKNEXT or PHONEBOOKPREV command. Responses
with PHONEBOOKNEXT-<key>,<count>,<position> where <key> is the search key,
<count> is the number of records to expect and <position> is the position of the first
record to be returned between 1 through the total number of records.
Request previous <count> records for the phonebook search associated with search
key <key>. If <count> is not present, it is assumed to be 1. Responses with PHONE-
BOOKPREV-<key>,<count>,<position> where <key> is the search key, <count> is the
number of records to expect and <position> is the position of the first record to be
returned between 1 through the total number of records.
Refresh <count> records starting with the last starting position used with a PHONE-
BOOKNEXT or PHONEBOOKPREV command for the phonebook search associated
with search key <key>. If <count> is not present, it is assumed to be 1. Responses
with PHONEBOOKNEXT-<key>,<count>,<position> where <key> is the search key,
<count> is the number of records to expect and <position> is the position of the first
record to be returned between 1 through the total number of records.
Search the phonebook database for records with ID equal to <id>. If <id> is "*", all
records are returned. <key> is a search key used in other search operations, such as
closeSearchDB(). It can be any string you like, such as a panel device number or inter-
nal key that makes sense for your program. All future DB operation associated with this
search will reference this key value.
Update phonebook record with index/id of <id>, where <name> is the new name and
<number> is the new number
95

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cafe duet

Table of Contents