home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / DevTools / SmartPackage / Sources / SmartInstaller / SmartInstaller.h < prev    next >
Encoding:
Text File  |  1994-04-18  |  1.0 KB  |  44 lines

  1.  
  2. /*
  3.  * SmartInstaller.h: the heart of the Smart Installer application.
  4.  *
  5.  * Copyright (C) 1994, Yves Arrouye <Yves.Arrouye@imag.fr>
  6.  *
  7.  */
  8.  
  9. /*
  10.  * The Smart Installer application and the Smart Package utility suite may be
  11.  * copied and distributed freely, as long as an acknowledgement of the author's
  12.  * work, with its name and address, is kept. The code may not be distributed if
  13.  * it has been modified. Modified code propositions should be directed to the
  14.  * author who will made them if necessary and redistribute the packages.
  15.  *
  16.  */
  17.  
  18. #import <appkit/appkit.h>
  19.  
  20. @interface SmartInstaller:Object
  21. {
  22.     char rootName[MAXPATHLEN + 1];    // Base name of the package, no ext
  23.  
  24.     const char* fromDir;    // Where is the package
  25.     const char* destDir;    // Where will it be installed (unused now)
  26.     
  27.     BOOL isOnRoot;
  28.     
  29.     int active;
  30. }
  31.  
  32. + (BOOL)isLocationRoot;
  33.  
  34. - setOnRoot:(BOOL)flag;
  35. - (BOOL)isOnRoot;
  36.  
  37. - initPackage:(const char*)from andDestination:(const char*)to;
  38.  
  39. - setPackage:(const char*)from andDestination:(const char*)to;
  40.  
  41. - (int)installPackage;
  42.  
  43. @end
  44.