home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  2.7 KB  |  132 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __FILETRANSFERTOOLS__
  18. #define __FILETRANSFERTOOLS__
  19.  
  20.  
  21. #ifndef __DIALOGS__
  22. #include <Dialogs.h>
  23. #endif
  24. /*    #include <Errors.h>                                            */
  25. /*        #include <ConditionalMacros.h>                            */
  26. /*    #include <Memory.h>                                            */
  27. /*        #include <Types.h>                                        */
  28. /*        #include <MixedMode.h>                                    */
  29. /*    #include <Windows.h>                                        */
  30. /*        #include <Quickdraw.h>                                    */
  31. /*            #include <QuickdrawText.h>                            */
  32. /*        #include <Events.h>                                        */
  33. /*            #include <OSUtils.h>                                */
  34. /*        #include <Controls.h>                                    */
  35. /*            #include <Menus.h>                                    */
  36. /*    #include <TextEdit.h>                                        */
  37.  
  38. #ifndef __FILETRANSFERS__
  39. #include <FileTransfers.h>
  40. #endif
  41. /*    #include <CTBUtilities.h>                                    */
  42. /*        #include <StandardFile.h>                                */
  43. /*            #include <Files.h>                                    */
  44. /*        #include <AppleTalk.h>                                    */
  45. /*    #include <Connections.h>                                    */
  46. /*    #include <Terminals.h>                                        */
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51.  
  52. #if GENERATINGPOWERPC
  53. #pragma options align=mac68k
  54. #endif
  55.  
  56. #ifdef __CFM68K__
  57. #pragma lib_export on
  58. #endif
  59.  
  60.  
  61. enum {
  62. /* DEFs */
  63.     fdefType                    = 'fdef',
  64.     fsetType                    = 'fset',
  65.     fvalType                    = 'fval',
  66.     flocType                    = 'floc',
  67.     fscrType                    = 'fscr',
  68.     fbndType                    = 'fbnd',
  69.     fverType                    = 'vers'
  70. };
  71.  
  72. enum {
  73. /* control */
  74.     ftInitMsg                    = 0,
  75.     ftDisposeMsg                = 1,
  76.     ftSuspendMsg                = 2,
  77.     ftResumeMsg                    = 3,
  78.     ftMenuMsg                    = 4,
  79.     ftEventMsg                    = 5,
  80.     ftActivateMsg                = 6,
  81.     ftDeactivateMsg                = 7,
  82.     ftGetErrorStringMsg            = 8,
  83.     ftAbortMsg                    = 52,
  84.     ftStartMsg                    = 100,
  85.     ftExecMsg                    = 102,
  86.     ftSendMsg                    = 103,
  87.     ftReceiveMsg                = 104,
  88. /* setup */
  89.     ftSpreflightMsg                = 0,
  90.     ftSsetupMsg                    = 1,
  91.     ftSitemMsg                    = 2,
  92.     ftSfilterMsg                = 3,
  93.     ftScleanupMsg                = 4,
  94. /* validate */
  95.     ftValidateMsg                = 0
  96. };
  97.  
  98. enum {
  99.     ftDefaultMsg                = 1,
  100. /* scripting */
  101.     ftMgetMsg                    = 0,
  102.     ftMsetMsg                    = 1,
  103. /* localization */
  104.     ftL2English                    = 0,
  105.     ftL2Intl                    = 1
  106. };
  107.  
  108. struct FTSetupStruct {
  109.     DialogPtr                        theDialog;                    /* the dialog form the application */
  110.     short                            count;                        /* first appended item */
  111.     Ptr                                theConfig;                    /* the config record to setup */
  112.     short                            procID;                        /* procID of the tool */
  113. };
  114. typedef struct FTSetupStruct FTSetupStruct;
  115.  
  116. typedef FTSetupStruct *FTSetupPtr;
  117.  
  118.  
  119. #ifdef __CFM68K__
  120. #pragma lib_export off
  121. #endif
  122.  
  123. #if GENERATINGPOWERPC
  124. #pragma options align=reset
  125. #endif
  126.  
  127. #ifdef __cplusplus
  128. }
  129. #endif
  130.  
  131. #endif /* __FILETRANSFERTOOLS__ */
  132.