QRODS
|
Public Slots | |
void | replyFinished (QNetworkReply *reply) |
CollectionClient::replyFinished Comfirms that the getCollectionData() method has finished. More... | |
Signals | |
void | collectionData (QList< FileListingEntry * > *) |
void | getPageData (FileListingEntry *, QList< FileListingEntry * > *) |
void | getPageData (FileListingEntry *, int firstIndex, int endIndex) |
void | modelChanged () |
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 |
|
explicit |
CollectionClient::CollectionClient Constructor method.
This is a constructor for CollectionClient class.
bURL | the base URL. |
parent | the parent Qt widget. |
void CollectionClient::addCollection | ( | QString & | path | ) |
CollectionClient::addCollection Adds a collection.
Adds a collection.
path | a string that represents the path in which a collection will be added. |
void CollectionClient::getCollectionDataAsync | ( | QString & | path | ) |
CollectionClient::getCollectionDataAsync Asynchronously gets a collection data.
Gets a collection data asynchronously.
path | the path that represents the specified collection data. |
void CollectionClient::getCollectionDataLazy | ( | QString & | path | ) |
CollectionClient::getCollectionDataLazy Gets a collection data through a lazyloading method.
Gets a collection data through a lazyloading method.
path | the path that represents the specified collection data. |
void CollectionClient::getCollectionDataLazy | ( | FileListingEntry * | entry | ) |
CollectionClient::getCollectionDataLazy Gets a collection data by a FileListingEntry.
Gets a collection data through a lazyloading method by a FileListingEntry.
entry | the FileListingEntry. |
void CollectionClient::getCollectionDataPaged | ( | QString & | path, |
QString & | type, | ||
int | offset | ||
) |
CollectionClient::getCollectionDataPaged Gets a collection data in form of pages.
Gets a collection data in form of pages.
path | the path that represents the specified collection. |
type | a string that represents the type. |
offset | an integer representing the offset. |
void CollectionClient::getCollectionDataPaged | ( | FileListingEntry * | entry, |
QString & | type, | ||
int | offset | ||
) |
CollectionClient::getCollectionDataPaged Gets a collection data in form of pages from a FileListingEntry.
Gets a collection data in form of pages from a FileListingEntry.
entry | the entry that is a FileListingEntry. |
type | a string that is the type. |
offset | an integer that is the offset. |
void CollectionClient::getNextPage | ( | ) |
CollectionClient::getNextPage Gets next page.
Gets the next page of a collection data.
void CollectionClient::getNextPage | ( | FileListingEntry * | entry | ) |
CollectionClient::getNextPage Gets next page by a FileListingEntry.
Gets the next page of a collection data by a FileListingEntry.
entry | the entry that represents a FileListingEntry. |
bool CollectionClient::hasMorePages | ( | ) |
CollectionClient::hasMorePages Identify or not next pages.
Method that peforms a check to identify or not next pages.
void CollectionClient::removeCollection | ( | QString & | path | ) |
CollectionClient::removeCollection Removes a collection.
Removes a collection.
path | a string that represents the path of the collection to be removed. |
|
slot |
CollectionClient::replyFinished Comfirms that the getCollectionData() method has finished.
Slot that is fired when getCollectionDataAsync() finishes.
reply | a QNetworkReply. |
void CollectionClient::setJSONParser | ( | ) |
CollectionClient::setJSONParser Sets a JSONParser.
Sets a JSONParser.
void CollectionClient::setXMLParser | ( | ) |
CollectionClient::setXMLParser Sets a XMLParser.
Sets a XMLParser.