openshot-audio  0.1.5
Classes | Public Member Functions | Public Attributes | List of all members
URLConnectionState Class Reference
Inheritance diagram for URLConnectionState:
Thread

Public Member Functions

 URLConnectionState (NSURLRequest *req, const int maxRedirects)
 
 ~URLConnectionState ()
 
bool start (URL::OpenStreamProgressCallback *callback, void *context)
 
void stop ()
 
int read (char *dest, int numBytes)
 
void didReceiveResponse (NSURLResponse *response)
 
NSURLRequest * willSendRequest (NSURLRequest *newRequest, NSURLResponse *redirectResponse)
 
void didFailWithError (NSError *error)
 
void didReceiveData (NSData *newData)
 
void didSendBodyData (NSInteger totalBytesWritten, NSInteger)
 
void finishedLoading ()
 
void run () override
 
- Public Member Functions inherited from Thread
 Thread (const String &threadName)
 
virtual ~Thread ()
 
void startThread ()
 
void startThread (int priority)
 
bool stopThread (int timeOutMilliseconds)
 
bool isThreadRunning () const
 
void signalThreadShouldExit ()
 
bool threadShouldExit () const
 
bool waitForThreadToExit (int timeOutMilliseconds) const
 
bool setPriority (int priority)
 
void setAffinityMask (uint32 affinityMask)
 
bool wait (int timeOutMilliseconds) const
 
void notify () const
 
ThreadID getThreadId () const noexcept
 
const StringgetThreadName () const
 

Public Attributes

int64 contentLength
 
CriticalSection dataLock
 
NSObject * delegate
 
NSURLRequest * request
 
NSURLConnection * connection
 
NSMutableData * data
 
NSDictionary * headers
 
int statusCode
 
bool initialised
 
bool hasFailed
 
bool hasFinished
 
const int numRedirectsToFollow
 
int numRedirects
 
int latestTotalBytes
 

Additional Inherited Members

- Public Types inherited from Thread
typedef void * ThreadID
 
- Static Public Member Functions inherited from Thread
static bool setCurrentThreadPriority (int priority)
 
static void JUCE_CALLTYPE setCurrentThreadAffinityMask (uint32 affinityMask)
 
static void JUCE_CALLTYPE sleep (int milliseconds)
 
static void JUCE_CALLTYPE yield ()
 
static ThreadID JUCE_CALLTYPE getCurrentThreadId ()
 
static Thread *JUCE_CALLTYPE getCurrentThread ()
 
static void JUCE_CALLTYPE setCurrentThreadName (const String &newThreadName)
 

Constructor & Destructor Documentation

◆ URLConnectionState()

URLConnectionState::URLConnectionState ( NSURLRequest *  req,
const int  maxRedirects 
)
inline

◆ ~URLConnectionState()

URLConnectionState::~URLConnectionState ( )
inline

Member Function Documentation

◆ didFailWithError()

void URLConnectionState::didFailWithError ( NSError *  error)
inline

◆ didReceiveData()

void URLConnectionState::didReceiveData ( NSData *  newData)
inline

◆ didReceiveResponse()

void URLConnectionState::didReceiveResponse ( NSURLResponse *  response)
inline

◆ didSendBodyData()

void URLConnectionState::didSendBodyData ( NSInteger  totalBytesWritten,
NSInteger   
)
inline

◆ finishedLoading()

void URLConnectionState::finishedLoading ( )
inline

◆ read()

int URLConnectionState::read ( char *  dest,
int  numBytes 
)
inline

◆ run()

void URLConnectionState::run ( )
inlineoverridevirtual

Must be implemented to perform the thread's actual code.

Remember that the thread must regularly check the threadShouldExit() method whilst running, and if this returns true it should return from the run() method as soon as possible to avoid being forcibly killed.

See also
threadShouldExit, startThread

Implements Thread.

◆ start()

bool URLConnectionState::start ( URL::OpenStreamProgressCallback callback,
void *  context 
)
inline

◆ stop()

void URLConnectionState::stop ( )
inline

◆ willSendRequest()

NSURLRequest* URLConnectionState::willSendRequest ( NSURLRequest *  newRequest,
NSURLResponse *  redirectResponse 
)
inline

Member Data Documentation

◆ connection

NSURLConnection* URLConnectionState::connection

◆ contentLength

int64 URLConnectionState::contentLength

◆ data

NSMutableData* URLConnectionState::data

◆ dataLock

CriticalSection URLConnectionState::dataLock

◆ delegate

NSObject* URLConnectionState::delegate

◆ hasFailed

bool URLConnectionState::hasFailed

◆ hasFinished

bool URLConnectionState::hasFinished

◆ headers

NSDictionary* URLConnectionState::headers

◆ initialised

bool URLConnectionState::initialised

◆ latestTotalBytes

int URLConnectionState::latestTotalBytes

◆ numRedirects

int URLConnectionState::numRedirects

◆ numRedirectsToFollow

const int URLConnectionState::numRedirectsToFollow

◆ request

NSURLRequest* URLConnectionState::request

◆ statusCode

int URLConnectionState::statusCode

The documentation for this class was generated from the following file: