Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstdweb::File Class Reference

#include <qstdweb_p.h>

+ Collaboration diagram for qstdweb::File:

Public Member Functions

 File ()=default
 
 File (const emscripten::val &file)
 
 ~File ()
 
 File (const File &other)
 
 File (File &&other)
 
Fileoperator= (const File &other)
 
Fileoperator= (File &&other)
 
Blob slice (uint64_t begin, uint64_t end) const
 
std::string name () const
 
uint64_t size () const
 
std::string type () const
 
void stream (uint32_t offset, uint32_t length, char *buffer, std::function< void()> completed) const
 
void stream (char *buffer, std::function< void()> completed) const
 
emscripten::val val () const
 
void fileUrlRegistration () const
 
const QStringfileUrlPath () const
 
emscripten::val file () const
 

Detailed Description

Definition at line 87 of file qstdweb_p.h.

Constructor & Destructor Documentation

◆ File() [1/4]

qstdweb::File::File ( )
default

◆ File() [2/4]

qstdweb::File::File ( const emscripten::val & file)
explicit

Definition at line 466 of file qstdweb.cpp.

◆ ~File()

qstdweb::File::~File ( )
default

◆ File() [3/4]

qstdweb::File::File ( const File & other)
default

◆ File() [4/4]

qstdweb::File::File ( File && other)
default

Member Function Documentation

◆ file()

emscripten::val qstdweb::File::file ( ) const
inline

Definition at line 108 of file qstdweb_p.h.

◆ fileUrlPath()

const QString & qstdweb::File::fileUrlPath ( ) const
inline

Definition at line 107 of file qstdweb_p.h.

◆ fileUrlRegistration()

void qstdweb::File::fileUrlRegistration ( ) const

◆ name()

std::string qstdweb::File::name ( ) const

Definition at line 488 of file qstdweb.cpp.

◆ operator=() [1/2]

File & qstdweb::File::operator= ( const File & other)
default

◆ operator=() [2/2]

File & qstdweb::File::operator= ( File && other)
default

◆ size()

uint64_t qstdweb::File::size ( ) const

Definition at line 493 of file qstdweb.cpp.

Referenced by stream().

+ Here is the caller graph for this function:

◆ slice()

Blob qstdweb::File::slice ( uint64_t begin,
uint64_t end ) const

Definition at line 483 of file qstdweb.cpp.

References begin().

+ Here is the call graph for this function:

◆ stream() [1/2]

void qstdweb::File::stream ( char * buffer,
std::function< void()> completed ) const

Definition at line 513 of file qstdweb.cpp.

References size().

+ Here is the call graph for this function:

◆ stream() [2/2]

void qstdweb::File::stream ( uint32_t offset,
uint32_t length,
char * buffer,
std::function< void()> completed ) const

Definition at line 505 of file qstdweb.cpp.

◆ type()

std::string qstdweb::File::type ( ) const

Definition at line 518 of file qstdweb.cpp.

◆ val()

emscripten::val qstdweb::File::val ( ) const

Definition at line 523 of file qstdweb.cpp.


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