Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
QTFileTransfer.h
////////// |
// |
// File: QTFileTransfer.h |
// |
// Contains: Sample code for transferring a file asynchronously from a web server. |
// |
// Written by: Tim Monroe |
// |
// Copyright: © 1998 by Apple Computer, Inc., all rights reserved. |
// |
// Change History (most recent first): |
// |
// <1> 11/11/98 rtm first file |
// |
////////// |
#include <FixMath.h> |
#include <Movies.h> |
#include <QuickTimeComponents.h> |
#include <Script.h> |
#include <string.h> |
#define TESTING_FTP_TRANSFER 1 // compiler flag for our test shell |
////////// |
// |
// constants |
// |
////////// |
#define kDataBufferSize 1024*10 // the size, in bytes, of our data buffer |
// type and creator for the transferred file |
#define kTransFileType FOUR_CHAR_CODE('TEXT') |
#define kTransFileCreator FOUR_CHAR_CODE('CWIE') |
////////// |
// |
// function prototypes |
// |
////////// |
OSErr QTFileTrans_CopyRemoteFileToLocalFile (char *theURL, FSSpecPtr theFSSpecPtr); |
PASCAL_RTN void QTFileTrans_ReadDataCompletionProc (Ptr theRequest, long theRefCon, OSErr theErr); |
PASCAL_RTN void QTFileTrans_WriteDataCompletionProc (Ptr theRequest, long theRefCon, OSErr theErr); |
void QTFileTrans_CloseDownHandlers (void); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14