TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
TTemporaryFile Class Reference

#include <ttemporaryfile.h>

Inheritance diagram for TTemporaryFile:
Inheritance graph
[legend]
Collaboration diagram for TTemporaryFile:
Collaboration graph
[legend]

Public Member Functions

 TTemporaryFile ()
 
bool open ()
 
QString absoluteFilePath () const
 

Protected Member Functions

bool open (OpenMode flags)
 

Detailed Description

The TTemporaryFile class is a temporary file device on an action context of web application.

After an action of a controller returns, temporary files created in the action will be deleted. Because this class inherits QTemporaryFile, you can use same functions as that.

See also
http://doc.qt.io/qt-5/qtemporaryfile.html

Constructor & Destructor Documentation

◆ TTemporaryFile()

TTemporaryFile::TTemporaryFile ( )

Constructor.

Member Function Documentation

◆ absoluteFilePath()

QString TTemporaryFile::absoluteFilePath ( ) const

Returns an absolute path including the file name.

◆ open() [1/2]

bool TTemporaryFile::open ( )

Creates a unique file name for the temporary file, and opens it in QIODevice::ReadWrite mode.

The file is guaranteed to have been created by this function (i.e., it has never existed before).

◆ open() [2/2]

bool TTemporaryFile::open ( OpenMode  flags)
protected

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