Objectively
Ultra-lightweight object oriented framework for GNU C.
Loading...
Searching...
No Matches
URLSessionUploadTask Struct Reference

#include <URLSessionUploadTask.h>

Overview

Use upload tasks to send files directly from disk.

Definition at line 43 of file URLSessionUploadTask.h.

Inheritance diagram for URLSessionUploadTask:
URLSessionTask Object

Properties

FILE * file
 The FILE to upload.
 
URLSessionTask urlSessionTask
 The superclass.
 
- Properties inherited from URLSessionTask
size_t bytesExpectedToReceive
 The count of bytes this task expects to receive.
 
size_t bytesExpectedToSend
 The count of bytes this task expects to send.
 
size_t bytesReceived
 The count of bytes received.
 
size_t bytesSent
 The count of bytes sent.
 
URLSessionTaskCompletion completion
 The completion function.
 
ident data
 User data.
 
char * error
 The error buffer.
 
Object object
 The superclass.
 
URLSessionTaskProgress progress
 The progress function.
 
struct URLRequestrequest
 The request.
 
struct URLResponseresponse
 The response.
 
struct URLSessionsession
 The session.
 
URLSessionTaskState state
 The state.
 
- Properties inherited from Object
Classclazz
 Every instance of Object begins with a pointer to its Class.
 
unsigned int magic
 A header to allow introspection of Object types.
 

Methods

Class_URLSessionUploadTask (void)
 The URLSessionUploadTask archetype.
 
- Methods inherited from URLSessionTask
Class_URLSessionTask (void)
 The URLSessionTask archetype.
 
void cancel (URLSessionTask *)
 Cancels this task.
 
void execute (URLSessionTask *)
 Executes this task synchronously, on the calling thread.
 
URLSessionTaskinitWithRequestInSession (URLSessionTask *, struct URLRequest *, struct URLSession *, URLSessionTaskCompletion)
 Initializes this task with the given URLRequest.
 
void resume (URLSessionTask *)
 Starts or resumes this task.
 
void setup (URLSessionTask *)
 Sets up this task.
 
void suspend (URLSessionTask *)
 Suspends this task.
 
void teardown (URLSessionTask *)
 Tears down this task.
 
- Methods inherited from Object
Class_Object (void)
 The Object archetype.
 
Objectcopy (const Object *self)
 Creates a shallow copy of this Object.
 
void dealloc (Object *self)
 Frees all resources held by this Object.
 
Stringdescription (const Object *self)
 
int hash (const Object *self)
 
Objectinit (Object *self)
 Initializes this Object.
 
bool isEqual (const Object *self, const Object *other)
 Tests equality of the other Object.
 
bool isKindOfClass (const Object *self, const Class *clazz)
 Tests for Class hierarchy membership.
 

Protected Attributes

URLSessionUploadTaskInterface * interface
 The interface.
 
- Protected Attributes inherited from URLSessionTask
URLSessionTaskInterface * interface
 The interface.
 
- Protected Attributes inherited from Object
ObjectInterface * interface
 The interface.
 

Property Details

◆ file

FILE* URLSessionUploadTask::file

The FILE to upload.

Definition at line 59 of file URLSessionUploadTask.h.

◆ interface

URLSessionUploadTaskInterface* URLSessionUploadTask::interface
protected

The interface.

Definition at line 54 of file URLSessionUploadTask.h.

◆ urlSessionTask

URLSessionTask URLSessionUploadTask::urlSessionTask

The superclass.

Definition at line 48 of file URLSessionUploadTask.h.

Method Details

◆ _URLSessionUploadTask()

Class * _URLSessionUploadTask ( void  )

The URLSessionUploadTask archetype.

Returns
The URLSessionUploadTask Class.

Definition at line 87 of file URLSessionUploadTask.c.

87 {
88 static Class *clazz;
89 static Once once;
90
91 do_once(&once, {
92 clazz = _initialize(&(const ClassDef) {
93 .name = "URLSessionUploadTask",
94 .superclass = _URLSessionTask(),
95 .instanceSize = sizeof(URLSessionUploadTask),
96 .interfaceOffset = offsetof(URLSessionUploadTask, interface),
97 .interfaceSize = sizeof(URLSessionUploadTaskInterface),
99 });
100 });
101
102 return clazz;
103}
static void initialize(Class *clazz)
Definition Array.c:710
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition Class.c:86
long Once
The Once type.
Definition Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition Class.h:41
The runtime representation of a Class.
Definition Class.h:95
Class * clazz
Every instance of Object begins with a pointer to its Class.
Definition Object.h:55
Class * _URLSessionTask(void)
The URLSessionTask archetype.
Use upload tasks to send files directly from disk.
URLSessionUploadTaskInterface * interface
The interface.

The documentation for this struct was generated from the following files: