home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cl-lib07.zip / pm.zip / usr / include / pm / commandlist.h < prev    next >
C/C++ Source or Header  |  1995-06-27  |  738b  |  45 lines

  1. #ifndef _COMMANDLIST_H_
  2. #define _COMMANDLIST_H_
  3.  
  4. #include <objc/os2.h>
  5. #include <objc/Object.h>
  6.  
  7. typedef struct {
  8.   id  target;
  9.   SEL action;
  10. } Command;
  11.  
  12. @interface CommandList : Object
  13. {
  14.   ULONG        key;
  15.   void        *data;
  16.   CommandList *next;
  17. }
  18.  
  19. - init: (ULONG) aKey data: (void *) aData;
  20. - free;
  21.  
  22. - insert: (CommandList *) element;
  23. - (int) compare: (CommandList *) elem1 with: (CommandList *) elem2;
  24.  
  25. - find: (ULONG) aKey;
  26.  
  27. - setKey: (ULONG) aKey;
  28. - setData: (void *) aData;
  29. - setNext: (CommandList *) element;
  30. - (ULONG) key;
  31. - (void *) data;
  32. - next;
  33.  
  34. /*
  35.  * Methods for protocol "Archiving"
  36.  */
  37.  
  38. - awake;
  39. - read: (TypedStream *) aStream;
  40. - write: (TypedStream *) aStream;
  41.  
  42. @end
  43.  
  44. #endif
  45.