|
VizKit
3.3.7
|
Providing networking functionality. More...
#include <VisualNetwork.h>
Static Public Member Functions | |
| static void | dispose (void) |
| Disposes resources and allocations of VisualNetwork (VisualDownloadQueue). | |
| static bool | addToDownloadQueue (VisualString &aURL, VisualObject *visualObject, const VisualItemIdentifier &identifier) |
| Adds an URL to the download queue. | |
| static bool | removeDownload (const VisualItemIdentifier &identifier) |
| Removes an item from the download queue. | |
| static bool | removeDownloadForObject (const VisualItemIdentifier &visualObjectIdentifier) |
| Removes an item from the download queue. | |
| static bool | startDownloadThreadIfNeeded (void) |
| If download items are waiting to be fetched, the download process is started. | |
| static VisualString * | createNormalizedURLString (const VisualString &str) |
| Ensures a normalized URL reference (by escaping special characters). | |
Private Member Functions | |
| VisualNetwork () | |
| The constructor. | |
| ~VisualNetwork () | |
| The destructor. | |
Providing networking functionality.
| VizKit::VisualNetwork::VisualNetwork | ( | ) | [private] |
The constructor.
VisualNetwork is a collection of static methods. Class does not need any instances. Constructor is private and not implemented.
| VizKit::VisualNetwork::~VisualNetwork | ( | ) | [private] |
The destructor.
VisualNetwork is a collection of static methods. Class does not need any instances. Destructor is private and not implemented.
| bool VisualNetwork::addToDownloadQueue | ( | VisualString & | aURL, |
| VisualObject * | visualObject, | ||
| const VisualItemIdentifier & | identifier | ||
| ) | [static] |
Adds an URL to the download queue.
| aURL | The URL from where to fetch the data. |
| visualObject | The object requesting remote data. |
| identifier | Identifier of the download item. |
| VisualString * VisualNetwork::createNormalizedURLString | ( | const VisualString & | str | ) | [static] |
Ensures a normalized URL reference (by escaping special characters).
| str | A possibly non-escaped URL string. |
| void VisualNetwork::dispose | ( | void | ) | [static] |
Disposes resources and allocations of VisualNetwork (VisualDownloadQueue).
| bool VisualNetwork::removeDownload | ( | const VisualItemIdentifier & | identifier | ) | [static] |
Removes an item from the download queue.
| identifier | Identifier of the download item. |
| bool VisualNetwork::removeDownloadForObject | ( | const VisualItemIdentifier & | visualObjectIdentifier | ) | [static] |
Removes an item from the download queue.
| visualObjectIdentifier | Identifier of the object. |
| bool VisualNetwork::startDownloadThreadIfNeeded | ( | void | ) | [static] |
If download items are waiting to be fetched, the download process is started.