FileData Class Reference

Implementation to send file over the network. More...

#include <Types/FileData.h>

Inheritance diagram for FileData:
Data

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]
Returns:
the file
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]
Returns:
name of the file

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:45:59 2011 for MedCenter by  doxygen 1.6.3