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

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 ()
 

Public Member Functions

 CollectionClient (QString &bURL, QString user, QString pass, QObject *parent=0)
 CollectionClient::CollectionClient Constructor method. More...
 
void setJSONParser ()
 CollectionClient::setJSONParser Sets a JSONParser. More...
 
void setXMLParser ()
 CollectionClient::setXMLParser Sets a XMLParser. More...
 
void getCollectionDataAsync (QString &path)
 CollectionClient::getCollectionDataAsync Asynchronously gets a collection data. More...
 
void getCollectionDataLazy (QString &path)
 CollectionClient::getCollectionDataLazy Gets a collection data through a lazyloading method. More...
 
void getCollectionDataPaged (QString &path, QString &type, int offset)
 CollectionClient::getCollectionDataPaged Gets a collection data in form of pages. More...
 
void getNextPage ()
 CollectionClient::getNextPage Gets next page. More...
 
bool hasMorePages ()
 CollectionClient::hasMorePages Identify or not next pages. More...
 
void getCollectionDataLazy (FileListingEntry *)
 CollectionClient::getCollectionDataLazy Gets a collection data by a FileListingEntry. More...
 
void getNextPage (FileListingEntry *)
 CollectionClient::getNextPage Gets next page by a FileListingEntry. More...
 
void getCollectionDataPaged (FileListingEntry *entry, QString &type, int offset)
 CollectionClient::getCollectionDataPaged Gets a collection data in form of pages from a FileListingEntry. More...
 
void addCollection (QString &path)
 CollectionClient::addCollection Adds a collection. More...
 
void removeCollection (QString &path)
 CollectionClient::removeCollection Removes a collection. More...
 
void setRemoteZone (QString &zone)
 
- 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

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

CollectionClient::CollectionClient Constructor method.

This is a constructor for CollectionClient class.

Parameters
bURLthe base URL.
parentthe parent Qt widget.

Member Function Documentation

void CollectionClient::addCollection ( QString &  path)

CollectionClient::addCollection Adds a collection.

Adds a collection.

Parameters
patha 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.

Parameters
paththe 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.

Parameters
paththe 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.

Parameters
entrythe 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.

Parameters
paththe path that represents the specified collection.
typea string that represents the type.
offsetan 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.

Parameters
entrythe entry that is a FileListingEntry.
typea string that is the type.
offsetan 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.

Parameters
entrythe 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.

Returns
returns true if there are next pages.
void CollectionClient::removeCollection ( QString &  path)

CollectionClient::removeCollection Removes a collection.

Removes a collection.

Parameters
patha string that represents the path of the collection to be removed.
void CollectionClient::replyFinished ( QNetworkReply *  reply)
slot

CollectionClient::replyFinished Comfirms that the getCollectionData() method has finished.

Slot that is fired when getCollectionDataAsync() finishes.

Parameters
replya QNetworkReply.
void CollectionClient::setJSONParser ( )
void CollectionClient::setXMLParser ( )

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