SpikeStream Application Library
0.2
|
#include <NetworkManager.h>
Signals | |
void | progress (int stepsCompleted, int totalSteps, QString message, bool showCancelButton) |
Public Member Functions | |
NetworkManager () | |
~NetworkManager () | |
void | cancel () |
int | getCurrentTask () |
void | run () |
void | startDeleteNetwork (unsigned networkID) |
void | startLoadNetwork (Network *network) |
void | startSaveNetwork (Network *network) |
Static Public Attributes | |
static const int | UNDEFINED_TASK = 0 |
static const int | DELETE_NETWORK_TASK = 1 |
static const int | LOAD_NETWORK_TASK = 2 |
static const int | SAVE_NETWORK_TASK = 3 |
Responsible for running heavy network-related tasks in a separate thread. Currently only loads networks, but should be made responsible for all tasks.
Definition at line 12 of file NetworkManager.h.
Constructor
Definition at line 11 of file NetworkManager.cpp.
Destructor
Definition at line 16 of file NetworkManager.cpp.
void NetworkManager::cancel | ( | ) |
Cancels the load operation.
Definition at line 25 of file NetworkManager.cpp.
int spikestream::NetworkManager::getCurrentTask | ( | ) | [inline] |
Definition at line 19 of file NetworkManager.h.
void spikestream::NetworkManager::progress | ( | int | stepsCompleted, |
int | totalSteps, | ||
QString | message, | ||
bool | showCancelButton | ||
) | [signal] |
void NetworkManager::run | ( | ) |
Definition at line 31 of file NetworkManager.cpp.
void NetworkManager::startDeleteNetwork | ( | unsigned | networkID | ) |
Stores the ID of the network and starts the load in separate thread.
Definition at line 106 of file NetworkManager.cpp.
void NetworkManager::startLoadNetwork | ( | Network * | network | ) |
Stores the pointer to the network and starts the load in separate thread.
Definition at line 114 of file NetworkManager.cpp.
void NetworkManager::startSaveNetwork | ( | Network * | network | ) |
Stores the pointer to the network and starts the save in separate thread.
Definition at line 123 of file NetworkManager.cpp.
const int spikestream::NetworkManager::DELETE_NETWORK_TASK = 1 [static] |
Deleting network task.
Definition at line 30 of file NetworkManager.h.
const int spikestream::NetworkManager::LOAD_NETWORK_TASK = 2 [static] |
Task of loading the network
Definition at line 33 of file NetworkManager.h.
const int spikestream::NetworkManager::SAVE_NETWORK_TASK = 3 [static] |
Task of saving the network
Definition at line 36 of file NetworkManager.h.
const int spikestream::NetworkManager::UNDEFINED_TASK = 0 [static] |
undefined task id
Definition at line 27 of file NetworkManager.h.