ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Cloud::StorageFile Class Reference

StorageFile represents a file storaged on remote cloud storage. More...

#include <storagefile.h>

Collaboration diagram for Cloud::StorageFile:

List of all members.

Public Member Functions

 StorageFile ()
 StorageFile (Common::String pth, uint32 sz, uint32 ts, bool dir)
 StorageFile (Common::String fileId, Common::String filePath, Common::String fileName, uint32 sz, uint32 ts, bool dir)
Common::String id () const
Common::String path () const
Common::String name () const
uint32 size () const
uint32 timestamp () const
bool isDirectory () const
void setPath (Common::String path_)

Private Attributes

Common::String _id
Common::String _path
Common::String _name
uint32 _size
uint32 _timestamp
bool _isDirectory

Detailed Description

StorageFile represents a file storaged on remote cloud storage.

It contains basic information about a file, and might be used when listing directories or syncing files.

Some storages (Google Drive, for example) don't have an actual path notation to address files. Instead, they are using ids. As resolving id by path is not a fast operation, it's required to use ids if they are known, but user-friendly paths are necessary too, because these are used by Requests.

If storage supports path notation, id would actually contain path.

Definition at line 43 of file storagefile.h.


Constructor & Destructor Documentation

Cloud::StorageFile::StorageFile (  ) 

Definition at line 27 of file storagefile.cpp.

Cloud::StorageFile::StorageFile ( Common::String  pth,
uint32  sz,
uint32  ts,
bool  dir 
)

Definition at line 36 of file storagefile.cpp.

Cloud::StorageFile::StorageFile ( Common::String  fileId,
Common::String  filePath,
Common::String  fileName,
uint32  sz,
uint32  ts,
bool  dir 
)

Definition at line 59 of file storagefile.cpp.


Member Function Documentation

Common::String Cloud::StorageFile::id (  )  const [inline]

Definition at line 53 of file storagefile.h.

bool Cloud::StorageFile::isDirectory (  )  const [inline]

Definition at line 58 of file storagefile.h.

Common::String Cloud::StorageFile::name (  )  const [inline]

Definition at line 55 of file storagefile.h.

Common::String Cloud::StorageFile::path (  )  const [inline]

Definition at line 54 of file storagefile.h.

void Cloud::StorageFile::setPath ( Common::String  path_  )  [inline]

Definition at line 60 of file storagefile.h.

uint32 Cloud::StorageFile::size (  )  const [inline]

Definition at line 56 of file storagefile.h.

uint32 Cloud::StorageFile::timestamp (  )  const [inline]

Definition at line 57 of file storagefile.h.


Member Data Documentation

Definition at line 44 of file storagefile.h.

Definition at line 46 of file storagefile.h.

Definition at line 44 of file storagefile.h.

Definition at line 44 of file storagefile.h.

Definition at line 45 of file storagefile.h.

Definition at line 45 of file storagefile.h.


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


Generated on Sat Sep 14 2019 05:03:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge