[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
The message was designed (by Andreas Kromke) to inform other applications that the
-----------------
content of the scrap directory has changed. As I don't when the next MultiTOS will
be released it's perhaps useful that programmers know this.
With best regards, Filipe :-)
*SC_CHANGED-DEFINITION*
After an application created a new file in the scrap directory or changed
its contents it should send the message SC_CHANGED to all other apps in
the system.
When using old versions of TOS known protocols (XAcc/AV) can be used,
newer versions support appl_search and/or AES broadcast (shel_write(7, ..).
The last method is the recommended one if available.
The message looks like:
msg[0] = SC_CHANGED (Suggestion: 80 or 91)
msg[1] = apID
msg[2] = 0
msg[3] = bitmap representing the file format (following)
msg[4] 4 characters for the "best" format (e.g. ".RTF")
+ = with the least loss of information
msg[5] when importing the data
msg[6]
+ = reserved, 0
msg[7]
The following constants characterize the file format. Avoid using
SCF_INDEF whenever you can!
SCF_INDEF = $0000;
SCF_DBASE = $0001; data to be loaded into a database
(".DBF", ".CSV", ...)
SCF_TEXT = $0002; text files
(".TXT", ".ASC", ".RTF", ".DOC", ...)
SCF_VECTOR = $0004; vector graphics
(".GEM", ".EPS", ".CVG", ".DXF", ...)
SCF_RASTER = $0008; bitmap graphics
(".IMG", ".TIF", ".GIF", ".PCX", ".IFF", ...)
SCF_SHEET = $0010; spreadsheet data
(".DIF", ".WKS", ...)
SCF_SOUND = $0020; samples, MIDI files, sound, ...
(".MOD", ".SND", ...)
After examining this bit vector an application can decide to look for
the data in the scrap path or not. More than one bit can be set when
combined data were stored (e.g. bitmap and vector data in
one file).
There is no reply message to SC_CHANGED.
---
------------------------
ANDREAS KROMKE
UNIVERSITAET HANNOVER