home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / FileMover / HF-OM1.DMS / in.adf / OpusSDK.lha / SDK / include / dopus / notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-27  |  2.1 KB  |  63 lines

  1. #ifndef _DOPUS_NOTIFY
  2. #define _DOPUS_NOTIFY
  3.  
  4. /*****************************************************************************
  5.  
  6.  Notification
  7.  
  8.  *****************************************************************************/
  9.  
  10. // Notification message
  11. typedef struct
  12. {
  13.     struct Message        dn_Msg;        // Message header
  14.     ULONG            dn_Type;    // Type of message
  15.     ULONG            dn_UserData;    // User-supplied data
  16.     ULONG            dn_Data;    // Message-specific data
  17.     ULONG            dn_Flags;    // Flags
  18.     struct FileInfoBlock    *dn_Fib;    // FIB for some messages
  19.     char            dn_Name[1];    // Name for some messages
  20. } DOpusNotify;
  21.  
  22. // dn_Msg.mn_Node.ln_Type
  23. #define NT_DOPUS_NOTIFY        199
  24.  
  25. // dn_Type
  26. #define DN_WRITE_ICON        (1<<0)        // Icon written
  27. #define DN_APP_ICON_LIST    (1<<1)        // AppIcon added/removed
  28. #define DN_APP_MENU_LIST    (1<<2)        // AppMenu added/removed
  29. #define DN_CLOSE_WORKBENCH    (1<<3)        // Workbench closed
  30. #define DN_OPEN_WORKBENCH    (1<<4)        // Workbench opened
  31. #define DN_RESET_WORKBENCH    (1<<5)        // Workbench reset
  32. #define DN_DISKCHANGE        (1<<6)        // Disk inserted/removed
  33. #define DN_OPUS_QUIT        (1<<7)        // Main program quit
  34. #define DN_OPUS_HIDE        (1<<8)        // Main program hide
  35. #define DN_OPUS_SHOW        (1<<9)        // Main program show
  36. #define DN_OPUS_START        (1<<10)        // Main program start
  37. #define DN_DOS_ACTION        (1<<11)        // DOS action
  38. #define DN_REXX_UP        (1<<12)        // REXX started
  39. #define DN_FLUSH_MEM        (1<<13)        // Flush memory
  40.  
  41. // Flags with DN_WRITE_ICON
  42. #define DNF_ICON_REMOVED    (1<<0)        // Icon removed
  43. #define DNF_ICON_CHANGED    (1<<1)        // Image changed
  44.  
  45. // Flags with DN_DOS_ACTION
  46. #define DNF_DOS_CREATEDIR    (1<<0)        // CreateDir
  47. #define DNF_DOS_DELETEFILE    (1<<1)        // DeleteFile
  48. #define DNF_DOS_SETFILEDATE    (1<<2)        // SetFileDate
  49. #define DNF_DOS_SETCOMMENT    (1<<3)        // SetComment
  50. #define DNF_DOS_SETPROTECTION    (1<<4)        // SetProtection
  51. #define DNF_DOS_RENAME        (1<<5)        // Rename
  52. #define DNF_DOS_CREATE        (1<<6)        // Open file (create)
  53. #define DNF_DOS_CLOSE        (1<<7)        // Close file
  54. #define DNF_DOS_RELABEL        (1<<8)        // Relabel disk
  55.  
  56. APTR AddNotifyRequest(ULONG,ULONG,struct MsgPort *);
  57. void RemoveNotifyRequest(APTR);
  58. void ReplyFreeMsg(struct Message *);
  59. void SetNotifyRequest(APTR,ULONG,ULONG);
  60.  
  61.  
  62. #endif
  63.