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

Public Slots

void replyFinished (QNetworkReply *reply)
 DataObjectClient::replyFinished Confirms that the operation getDAtaObjectMetadataAsync() has finished. More...
 

Signals

void metaData (QList< MetadataEntry * > *)
 
void entryAdded (MetadataEntry *)
 
void entryRemoved (MetadataEntry *)
 
void modelChanged ()
 

Public Member Functions

 DataObjectClient (QString &baseURL, QString user, QString pass, QObject *parent=0)
 DataObjectClient::DataObjectClient Constructor for DataObjectClient class. More...
 
void removeDataObject (QString &path, bool force=false)
 DataObjectClient::removeDataObject Removes a data object. More...
 
void addCollectionMetadata (QString &path, QList< MetadataEntry > &)
 
void addCollectionMetadata (QString &path, MetadataEntry &)
 DataObjectClient::addCollectionMetadata Adds a collection metadata. More...
 
void deleteDataObjectMetadata (QString &path, MetadataEntry &)
 
QList< MetadataEntry * > * getDataObjectMetadata (QString &path)
 DataObjectClient::getDataObjectMetadata Gets metadata. More...
 
void getDataObjectMetadataAsync (QString &path)
 DataObjectClient::getDataObjectMetadataAsync Gets data object. 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

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

DataObjectClient::DataObjectClient Constructor for DataObjectClient class.

This is a constructor for DataObjectClient class.

Parameters
bURLa string that represents the base URL.
parentthe parent Qt widget.

Member Function Documentation

void DataObjectClient::addCollectionMetadata ( QString &  path,
MetadataEntry entry 
)

DataObjectClient::addCollectionMetadata Adds a collection metadata.

Adds a collection metadata.

Parameters
patha string that represents the path for the collection metadata to be added.
entryentry that represents the MetadataEntry.
QList< MetadataEntry * > * DataObjectClient::getDataObjectMetadata ( QString &  path)

DataObjectClient::getDataObjectMetadata Gets metadata.

Gets data object metadata.

Parameters
patha string that represents the path of the metadata.
Returns
returns a QList composed of MetadataEntry entities.
void DataObjectClient::getDataObjectMetadataAsync ( QString &  path)

DataObjectClient::getDataObjectMetadataAsync Gets data object.

Gets data object metadata asynchronously.

Parameters
paththe path that represents the metadata object.
void DataObjectClient::removeDataObject ( QString &  path,
bool  force = false 
)

DataObjectClient::removeDataObject Removes a data object.

Removes a data object.

Parameters
patha string that represents the path of the object to be removed.
forcea boolean for ensuring the remove operation.
void DataObjectClient::replyFinished ( QNetworkReply *  reply)
slot

DataObjectClient::replyFinished Confirms that the operation getDAtaObjectMetadataAsync() has finished.

Confirms that the operation getDAtaObjectMetadataAsync() has finished.

Parameters
replyreply that is a QNetworkReply.

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