ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
File Struct Reference

#include <item.h>

Collaboration diagram for File:
Collaboration graph
[legend]

Public Types

enum  FileTypes {
  PRT_PROE =0, ASM, DRW, FRM,
  NEU_PROE, CATPART, CATPRODUCT, CATDRAWING,
  PRT_NX, SLDPRT, SLDASM, SLDDRW,
  PAR, PSM, DFT, IPT,
  IAM, IDW, STEP, IGES,
  DWG, DXF, STL, BLEND,
  PDF, OFFICE_WRITER, OFFICE_CALC, OFFICE_IMPRESS,
  OFFICE_DRAW, OFFICE_PROJECT, OFFICE_BASE, TYPES_COUNT,
  UNDEFINED
}
 

Public Member Functions

 File ()
 
void setName (QString name)
 
QString baseName ()
 
void detectFileType ()
 
QPixmap icon ()
 

Static Public Member Functions

static QString getInternalNameForFileType (FileTypes type)
 
static QString getLabelForFileType (FileTypes type)
 
static QString getRxForFileType (FileTypes type)
 
static QString getRxFromStringList (const QStringList &extensions)
 

Public Attributes

ItemparentItem
 
QString m_baseName
 
QString name
 
QString path
 
QString targetPath
 
QString cachePath
 A cache path for file. Including file name. More...
 
Thumbnailthumbnail
 
QList< Thumbnail * > thumbnails
 
QFile * openFtpFile
 
bool isChecked
 
QDateTime lastModified
 
FileTypes type
 
qint64 bytesDone
 
qint64 size
 
int version
 
bool newestVersion
 
DataTransfertransfer
 
DownloadModel::TransferHandlerType transferHandler
 

Member Enumeration Documentation

Enumerator
PRT_PROE 
ASM 
DRW 
FRM 
NEU_PROE 
CATPART 
CATPRODUCT 
CATDRAWING 
PRT_NX 
SLDPRT 
SLDASM 
SLDDRW 
PAR 
PSM 
DFT 
IPT 
IAM 
IDW 
STEP 
IGES 
DWG 
DXF 
STL 
BLEND 
PDF 
OFFICE_WRITER 
OFFICE_CALC 
OFFICE_IMPRESS 
OFFICE_DRAW 
OFFICE_PROJECT 
OFFICE_BASE 
TYPES_COUNT 
UNDEFINED 

Constructor & Destructor Documentation

File::File ( )
inline

Member Function Documentation

QString File::baseName ( )
void File::detectFileType ( )
QString File::getInternalNameForFileType ( File::FileTypes  type)
static
QString File::getLabelForFileType ( File::FileTypes  type)
static
QString File::getRxForFileType ( File::FileTypes  type)
static
QString File::getRxFromStringList ( const QStringList &  extensions)
static
QPixmap File::icon ( )
void File::setName ( QString  name)

Member Data Documentation

qint64 File::bytesDone
QString File::cachePath

A cache path for file. Including file name.

Datasource type: LOCAL: It's a synonym for File::path. File is not copied. <remote>: File is downloaded to Item::getPathForItem. see: ServersModel::cacheSpecificFile()

bool File::isChecked
QDateTime File::lastModified
QString File::m_baseName
QString File::name
bool File::newestVersion
QFile* File::openFtpFile
Item* File::parentItem
QString File::path
qint64 File::size
QString File::targetPath
Thumbnail* File::thumbnail
QList<Thumbnail*> File::thumbnails
DataTransfer* File::transfer
DownloadModel::TransferHandlerType File::transferHandler
FileTypes File::type
int File::version

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