HttpFiles_unzip

This class does unzipping the httpfiles.zip which are loaded additionally to the app. httpfiles.zip can contain files like Announcements or something else which are not statically linked to the app, but are static files.

File information

Filecommon/lib/httpfiles_unzip.h

Classes Httpfiles_unzipItem
Httpfiles_unzip

Classes

Httpfiles_unzipItem

Internal class. For every file in the zip folder there is httpfiles_unzipItem.

class Httpfiles_unzipItem : public istd::listElement<httpfiles_unzipitem>
{
    class httpfile * file;
    byte * data;
    char * path;
public:
    Httpfiles_unzipItem(char * filePath, byte * fileData, size_t fileLength);
    ~Httpfiles_unzipItem();
};

Httpfiles_unzip

Used to unzip the file. Used in the app-main.cpp after the AppService is started

class Httpfiles_unzip {
    class IInstanceLog * log;
    void ScanFiles(class IDirectory * dir, char * absoluteFilePath, char * filePath);
    void ReadFile(char * path, char * name);
    class istd::list<Httpfiles_unzipItem>listItems;
public:
    Httpfiles_unzip(class IInstanceLog * log, const char * appName);
    ~Httpfiles_unzip();
};

Httpfiles_unzip

Contructor.

Parameters
class IInstanceLog * log Used for Logging.
const char * appName Name of the app.