Raspberry Cloud
Public Member Functions | Public Attributes | List of all members
UI Class Reference

#include <UI.h>

Public Member Functions

 UI (Application *_app)
 
 UI ()
 
bool addFile (string localFileID, string destinationFileID)
 
bool createDirectory (string directoryID)
 
string getFile (FileDescriptor fileDescriptor)
 
bool deleteFile (FileDescriptor fileDescriptor)
 
void setComputeOnPi (bool b)
 
list< FileDescriptor * > * getFileTree ()
 

Public Attributes

Applicationapp
 

Detailed Description

UI class It makes communication possible between the user and the program It will have a windowing system

Constructor & Destructor Documentation

UI::UI ( Application _app)

UI constructor

Parameters
_appthe application that hosts the data model

UI implementation

UI::UI ( )

UI default constructor

Member Function Documentation

bool UI::addFile ( string  localFileID,
string  destinationFileID 
)

It starts the process of adding a local file to the system

Parameters
localFileIDlocal path to the file to add
destinationFileIDremote path to the file to add
Returns
successful
bool UI::createDirectory ( string  directoryID)

It starts the process of creating a new directory

Parameters
directoryIDremote path to the directory to add
Returns
successful
bool UI::deleteFile ( FileDescriptor  fileDescriptor)

It starts the process of deleting a given file from the system

Parameters
fileDescriptordescriptor of the file to delete
Returns
successful
string UI::getFile ( FileDescriptor  fileDescriptor)

It starts the process of retrieving a given file

Parameters
fileDescriptordescriptor of the file to get
Returns
path to retrieved file
list< FileDescriptor * > * UI::getFileTree ( )

Getter to the fileTree attribute

Returns
pointer to set of files
void UI::setComputeOnPi ( bool  b)

It starts the process of setting the home network behaviour

Parameters
bwill the pi be working

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