FileTransferTools.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:4k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       FileTransferTools.h
  3.  
  4.      Contains:   CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology: System 7.5
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1988-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __FILETRANSFERTOOLS__
  18. #define __FILETRANSFERTOOLS__
  19. #ifndef __CONDITIONALMACROS__
  20. #include "ConditionalMacros.h"
  21. #endif
  22. #ifndef __DIALOGS__
  23. #include "Dialogs.h"
  24. #endif
  25. #ifndef __FILETRANSFERS__
  26. #include "FileTransfers.h"
  27. #endif
  28. #if PRAGMA_ONCE
  29. #pragma once
  30. #endif
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37. #if PRAGMA_STRUCT_ALIGN
  38.     #pragma options align=mac68k
  39. #elif PRAGMA_STRUCT_PACKPUSH
  40.     #pragma pack(push, 2)
  41. #elif PRAGMA_STRUCT_PACK
  42.     #pragma pack(2)
  43. #endif
  44. #if CALL_NOT_IN_CARBON
  45. enum {
  46.                                                                 /* DEFs */
  47.     fdefType                    = FOUR_CHAR_CODE('fdef'),
  48.     fsetType                    = FOUR_CHAR_CODE('fset'),
  49.     fvalType                    = FOUR_CHAR_CODE('fval'),
  50.     flocType                    = FOUR_CHAR_CODE('floc'),
  51.     fscrType                    = FOUR_CHAR_CODE('fscr'),
  52.     fbndType                    = FOUR_CHAR_CODE('fbnd'),
  53.     fverType                    = FOUR_CHAR_CODE('vers')
  54. };
  55. enum {
  56.                                                                 /* control */
  57.     ftInitMsg                   = 0,
  58.     ftDisposeMsg                = 1,
  59.     ftSuspendMsg                = 2,
  60.     ftResumeMsg                 = 3,
  61.     ftMenuMsg                   = 4,
  62.     ftEventMsg                  = 5,
  63.     ftActivateMsg               = 6,
  64.     ftDeactivateMsg             = 7,
  65.     ftGetErrorStringMsg         = 8,
  66.     ftAbortMsg                  = 52,
  67.     ftStartMsg                  = 100,
  68.     ftExecMsg                   = 102,
  69.     ftSendMsg                   = 103,
  70.     ftReceiveMsg                = 104
  71. };
  72. enum {
  73.                                                                 /* setup */
  74.     ftSpreflightMsg             = 0,
  75.     ftSsetupMsg                 = 1,
  76.     ftSitemMsg                  = 2,
  77.     ftSfilterMsg                = 3,
  78.     ftScleanupMsg               = 4
  79. };
  80. enum {
  81.                                                                 /* validate */
  82.     ftValidateMsg               = 0,
  83.     ftDefaultMsg                = 1
  84. };
  85. enum {
  86.                                                                 /* scripting */
  87.     ftMgetMsg                   = 0,
  88.     ftMsetMsg                   = 1
  89. };
  90. enum {
  91.                                                                 /* localization */
  92.     ftL2English                 = 0,
  93.     ftL2Intl                    = 1
  94. };
  95. struct FTSetupStruct {
  96.     DialogPtr                       theDialog;                  /* the dialog form the application */
  97.     short                           count;                      /* first appended item */
  98.     Ptr                             theConfig;                  /* the config record to setup */
  99.     short                           procID;                     /* procID of the tool */
  100. };
  101. typedef struct FTSetupStruct            FTSetupStruct;
  102. typedef FTSetupStruct *                 FTSetupPtr;
  103. #endif  /* CALL_NOT_IN_CARBON */
  104. #if PRAGMA_STRUCT_ALIGN
  105.     #pragma options align=reset
  106. #elif PRAGMA_STRUCT_PACKPUSH
  107.     #pragma pack(pop)
  108. #elif PRAGMA_STRUCT_PACK
  109.     #pragma pack()
  110. #endif
  111. #ifdef PRAGMA_IMPORT_OFF
  112. #pragma import off
  113. #elif PRAGMA_IMPORT
  114. #pragma import reset
  115. #endif
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. #endif /* __FILETRANSFERTOOLS__ */