home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DatabaseKit / AddressBook / Controller.h < prev    next >
Text File  |  1992-07-09  |  1KB  |  49 lines

  1. /* Controller.h 
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  * Written by: Mai Nguyen, NeXT Developer Support
  7.  */
  8.  
  9. #import <objc/Object.h>
  10. #import <objc/List.h>
  11.  
  12. @interface Controller:Object
  13. {
  14.       id     database;        /* The database to work from */
  15.     
  16.     id    theWindow;        /* the application main window    */
  17.       id    addressView;    /* the scrollview that displays record information */
  18.       id    cellMatrix;        /* the matrix contained in the scrollview  */
  19.     
  20.       id    recordList;        /* A DBRecordList instance to contain data records */
  21.      id    propertyList;    /* A DBPropertyList instance associated with the
  22.                            * record list.                     
  23.                          */     
  24.      int    recordCount;
  25.     id authorEntity;    /* Authors entity used as a source for the 
  26.                            record list */
  27.     id authId;            /* Used as the key for record modifications        */
  28.     id infoPanel;        
  29.     id SQLPanel;        /* Panel showing all SQL queries              */
  30.     id appender;        /* Appender object to append text              */
  31. }
  32. - appDidInit:sender;
  33. - initRecordList;
  34. - getRecordList;
  35. - getPropertyList;
  36. - (int)getRecordCount;
  37.  
  38. - addRecords:sender;
  39. - deleteRecords:sender;
  40. - updateRecords:sender;
  41.  
  42. - showSQLPanel:sender;
  43.  
  44. - showInfoPanel:sender;
  45.  
  46. /* DBDatabase delegate method */
  47. - (BOOL)db:aDb willEvaluateString:(const char*)aString usingBinder:aBinder;
  48. @end
  49.