Overte C++ Documentation
ArchiveDownloadInterface Class Reference

The ArchiveDownloadInterface API provides some facilities for working with the file system. More...

#include <ArchiveDownloadInterface.h>

Inherits QObject.

Public Slots

QString convertUrlToPath (QUrl url)
 Extracts a filename from a URL, where the filename is specified in the query part of the URL as filename=. More...
 
QString getTempDir ()
 

Signals

void unzipResult (QString zipFile, QStringList unzipFile, bool autoAdd, bool isZip, bool isBlocks)
 

Detailed Description

The ArchiveDownloadInterface API provides some facilities for working with the file system.

Member Function Documentation

◆ convertUrlToPath

QString ArchiveDownloadInterface::convertUrlToPath ( QUrl  url)
slot

Extracts a filename from a URL, where the filename is specified in the query part of the URL as filename=.

Parameters
url- The URL to extract the filename from.
Returns
The filename specified in the URL; an empty string if no filename is specified.

◆ getTempDir

QString ArchiveDownloadInterface::getTempDir ( )
slot

Creates a new, unique directory for temporary use.

Returns
The path of the newly created temporary directory.

◆ unzipResult

void ArchiveDownloadInterface::unzipResult ( QString  zipFile,
QStringList  unzipFile,
bool  autoAdd,
bool  isZip,
bool  isBlocks 
)
signal

Triggered when runUnzip completes.

Parameters
zipFile- The file that was unzipped.
unzipFiles- The paths of the unzipped files in a newly created temporary directory. Includes entries for any subdirectories created. An empty array if the zipFile could not be unzipped.
autoAdd- The value that runUnzip was called with.
isZip- true if runUnzip was called with isZip == true, unless there is no FBX or OBJ file in the unzipped file(s) in which case the value is false.
isBlocks- The value that runUnzip was called with.

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