FileData Class Reference
Implementation to send file over the network.
More...
#include <Types/FileData.h>
List of all members.
Public Member Functions |
| FileData (const QString &category, const QString &name, const QString &folder, const QByteArray &data) |
QByteArray | data () const |
| Gets the data in the form of a QByteArray (ready to be shared on the network).
|
int | load (const QByteArray &data, int index=0) |
| load some data from a QByteArray
|
const QString & | name () const |
const QString & | folder () const |
const QByteArray & | fileData () const |
void | setFolder (const QString &folder) |
Detailed Description
Implementation to send file over the network.
Constructor & Destructor Documentation
FileData::FileData |
( |
const QString & |
category, |
|
|
const QString & |
name, |
|
|
const QString & |
folder, |
|
|
const QByteArray & |
data | |
|
) |
| | [inline] |
- Parameters:
-
| category | |
| name | |
| folder | |
| data | |
Member Function Documentation
QByteArray FileData::data |
( |
|
) |
const [virtual] |
Gets the data in the form of a QByteArray (ready to be shared on the network).
- Returns:
Implements Data.
const QByteArray & FileData::fileData |
( |
|
) |
const [inline] |
const QString & FileData::folder |
( |
|
) |
const [inline] |
- Returns:
- folder of the file
int FileData::load |
( |
const QByteArray & |
data, |
|
|
int |
index = 0 | |
|
) |
| | [virtual] |
load some data from a QByteArray
- Parameters:
-
| data | the data to load |
| index | the where to read |
- Returns:
- the number of bytes read
Implements Data.
const QString & FileData::name |
( |
|
) |
const [inline] |
The documentation for this class was generated from the following files:
- Sources/Types/FileData.h
- Sources/Types/FileData.cpp