home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / News / Alexandra.0.82 / Source / AMGErrorHandling.subproj / EMErrorAction.h < prev    next >
Encoding:
Text File  |  1996-01-30  |  1.4 KB  |  69 lines

  1.  
  2. #import <objc/Object.h>
  3.  
  4.  
  5. // Es waere eigentlich RICHTIG objekt-orientiert, eine Generic ErrorAction und für
  6. // jede Massnahme dann eine entsprechende Subklasse zu implementieren. Aber das
  7. // sieht mir (ohne das FoundationKit) nach Overkill aus. Darum alles in einer 
  8. // Klasse a la Cell. Die Support-Variablen werden wie folgt verwendet:
  9. //
  10. //            (1)            (2)            (3)
  11. //    SYSLOG:    priority
  12. //  LOGFILE filename    
  13. //  DO:        port/host    selector    (port als NXProxy)
  14. //  MAIL:    to            subject        (mail-port als FILE descriptor)
  15. //  ALERT:    titel        okay-button
  16.  
  17. typedef enum
  18.     {
  19.     EMNoAction = 0,
  20.     EMActionSyslog,
  21.     EMActionLogfile, 
  22.     EMActionDO,
  23.     EMActionMail,
  24.     EMActionAlert
  25.     } EMErrorActionType;
  26.  
  27. @interface EMErrorAction:Object
  28.     {    
  29.     EMErrorActionType    type;            
  30.     char                *msgTemplate;
  31.     char                *support1;
  32.     char                *support2;
  33.     void                *support3;
  34.     }
  35.     
  36. - initType:(EMErrorActionType)aType;
  37. - (EMErrorActionType)type;
  38.  
  39. - setMsgTemplate:(const char *)text;
  40. - (const char *)msgTemplate;
  41.  
  42. - setPortname:(const char *)name;
  43. - (const char *)portName;
  44.  
  45. - setSelector:(const char *)name;
  46. - (const char *)selector;
  47.  
  48. - setPriority:(const char *)name;
  49. - (const char *)priority;
  50.  
  51. - setFilename:(const char *)name;
  52. - (const char *)filename;
  53.  
  54. - setRecipient:(const char *)name;
  55. - (const char *)recipient;
  56.  
  57. - setSubject:(const char *)subject;
  58. - (const char *)subject;
  59.  
  60. - setTitle:(const char *)title;
  61. - (const char *)title;
  62.  
  63. - setButton:(const char *)title;
  64. - (const char *)button;
  65.  
  66. @end
  67.  
  68.  
  69.