Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
Classes | Public Types | Public Member Functions | List of all members
FlashItem Class Reference

The data for a generic flash item. More...

#include <client.h>

Classes

class  Vector
 Class to handle with lists of FlashItem. More...
 

Public Types

enum  Attributess : uint32_t {
  attrTypeAbsPath = 0x00000001 , attrTypeReserved = 0x00000002 , attrTypeSystem = 0x00000004 , attrTypeIllegal = 0x00000008 ,
  attrTypeInUse = 0x00000010 , attrTypeHidden = 0x00000020 , attrTypeReadOnly = 0x00000040 , attrTypeElType = 0xF0000000 ,
  attrTypeElFile = 0x00000000 , attrTypeElFolder = 0x10000000 , attrTypeElOsFile = 0x20000000 , attrTypeElOsTest = 0x30000000 ,
  attrTypeElFlatOsFile = 0x40000000 , attrTypeElOldLang = 0x50000000
}
 The available element attributes. More...
 

Public Member Functions

 FlashItem ()
 Class constructor.
 
 FlashItem (const FlashItem &src)
 Copy class constructor.
 
void copyFrom (const FlashItem &src)
 Makes a copy from source object.
 
time_t dateTime () const
 Get the element date and time.
 
void setDateTime (time_t value)
 Set the element date and time.
 
Attributess attributes () const
 Get the element attributes.
 
void setAttributes (Attributess value)
 Set the element attributes.
 
uint16_t deviceId () const
 Get the element device identifier.
 
void setDeviceId (uint16_t value)
 Set the element device identifier.
 
uint32_t size () const
 Get the element size [uint8_t].
 
void setSize (uint32_t value)
 Get the element size [uint8_t].
 
String name () const
 Get the element name.
 
void setName (String value)
 Set the element name.
 

Detailed Description

The data for a generic flash item.

Member Enumeration Documentation

◆ Attributess

enum Attributess : uint32_t

The available element attributes.

Enumerator
attrTypeAbsPath 

The item has absolute path.

attrTypeReserved 

The item is special reserved.

attrTypeSystem 

The item is system reserved.

attrTypeIllegal 

The item is illegal.

attrTypeInUse 

The item is in use.

attrTypeHidden 

The item is hidden.

attrTypeReadOnly 

The item is read only.

attrTypeElType 

The item type mask.

attrTypeElFile 

The item is a file.

attrTypeElFolder 

The item is a folder.

attrTypeElOsFile 

The item is a special standard OS file (obsolete).

attrTypeElOsTest 

The item is a special standard Test file (obsolete).

attrTypeElFlatOsFile 

The item is a special standard OS flat file (obsolete).

attrTypeElOldLang 

The item is a special old OS file (obsolete).

Constructor & Destructor Documentation

◆ FlashItem() [1/2]

FlashItem ( )

Class constructor.

◆ FlashItem() [2/2]

FlashItem ( const FlashItem & src)

Copy class constructor.

Parameters
srcThe source object

Member Function Documentation

◆ attributes()

Attributess attributes ( ) const

Get the element attributes.

Returns
The parameter value

◆ copyFrom()

void copyFrom ( const FlashItem & src)

Makes a copy from source object.

Parameters
srcThe source object

◆ dateTime()

QDateTime dateTime ( ) const

Get the element date and time.

Returns
The parameter value
Remarks
The type of data and time (creation, last modification or last access) is set appropriately in the request command.

◆ deviceId()

uint16_t deviceId ( ) const

Get the element device identifier.

Returns
The parameter value

◆ name()

String name ( ) const

Get the element name.

Returns
The parameter value

◆ setAttributes()

void setAttributes ( Attributess value)

Set the element attributes.

Parameters
valueThe value to set

◆ setDateTime()

void setDateTime ( time_t value)

Set the element date and time.

Parameters
valueThe value to set
Remarks
The type of data and time (creation, last modification or last access) is set appropriately in the request command.

◆ setDeviceId()

void setDeviceId ( uint16_t value)

Set the element device identifier.

Parameters
valueThe value to set

◆ setName()

void setName ( String value)

Set the element name.

Parameters
valueThe value to set

◆ setSize()

void setSize ( uint32_t value)

Get the element size [uint8_t].

Parameters
valueThe value to set

◆ size()

uint32_t size ( ) const

Get the element size [uint8_t].

Returns
The parameter value