QRODS
Public Slots | Signals | Public Member Functions | List of all members
FileContentsClient Class Reference
Inheritance diagram for FileContentsClient:
AbstractHTTPClient

Public Slots

void replyFinished (QNetworkReply *reply)
 FileContentsClient::replyFinished Certifies that the reply has been received. More...
 

Signals

void modelChanged ()
 

Public Member Functions

 FileContentsClient (QString &baseURL, QString user, QString pass, QObject *parent=0)
 FileContentsClient::FileContentsClient Constructor method. More...
 
void uploadFile (QString &remotePath, QString &localPath)
 FileContentsClient::uploadFile Uploads a file. More...
 
void getFile (QString &remotePath, QString &localPath)
 FileContentsClient::getFile Gets a file. More...
 
- Public Member Functions inherited from AbstractHTTPClient
 AbstractHTTPClient (QString &baseURL, QString user, QString pass, QObject *parent=0)
 AbstractHTTPClient::AbstractHTTPClient Constructor method. More...
 
QString baseURL ()
 AbstractHTTPClient::baseURL Returns the base URL. More...
 
void setBaseURL (QString &str)
 
void setUserName (QString &str)
 AbstractHTTPClient::setUserName Sets user name. More...
 
void setPassword (QString &str)
 AbstractHTTPClient::setPassword Sets the password. More...
 
void setContentType (QString &str)
 AbstractHTTPClient::setContentType Sets the MIME type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHTTPClient
QByteArray doGet (QString &url)
 AbstractHTTPClient::doGet HTTP gets operation. More...
 
QByteArray doPut (QString &url, QByteArray &content)
 AbstractHTTPClient::doPut Put operation. More...
 
QByteArray doPost (QString &url, QByteArray &content)
 AbstractHTTPClient::doPost Post operation. More...
 
QByteArray doDelete (QString &url)
 AbstractHTTPClient::doDelete Delete operation. More...
 
QNetworkReply * doAsyncGet (QString &url)
 AbstractHTTPClient::doAsyncGet Asynchronous get operation. More...
 
QNetworkReply * doAsyncGet (QString &url, const char *accept)
 AbstractHTTPClient::doAsyncGet Asynchronous get operation. More...
 
void prepareRequest (QNetworkRequest &request)
 AbstractHTTPClient::prepareRequest Prepares Requests. More...
 
- Protected Attributes inherited from AbstractHTTPClient
QNetworkAccessManager * manager
 

Constructor & Destructor Documentation

FileContentsClient::FileContentsClient ( QString &  bURL,
QString  user,
QString  pass,
QObject *  parent = 0 
)
explicit

FileContentsClient::FileContentsClient Constructor method.

This is a constructor for FileContentsClient class.

Parameters
bURLthe base URL.
parentthe parent Qt widget.

Member Function Documentation

void FileContentsClient::getFile ( QString &  remotePath,
QString &  localPath 
)

FileContentsClient::getFile Gets a file.

Gets a file.

Parameters
remotePatha string that is the destination path.
localPatha string that is the source path.
void FileContentsClient::replyFinished ( QNetworkReply *  reply)
slot

FileContentsClient::replyFinished Certifies that the reply has been received.

Certifies that the reply has been received.

Parameters
replya QNetworkReply.
void FileContentsClient::uploadFile ( QString &  remotePath,
QString &  localPath 
)

FileContentsClient::uploadFile Uploads a file.

Uploads a file to the server.

Parameters
remotePaththe path in the server.
localPaththe local path.

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