SpikeStream Application Library  0.2
spikestream::NetworkManager Class Reference

#include <NetworkManager.h>

List of all members.

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

Detailed Description

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 & Destructor Documentation

Constructor

Definition at line 11 of file NetworkManager.cpp.

Destructor

Definition at line 16 of file NetworkManager.cpp.


Member Function Documentation

Cancels the load operation.

Definition at line 25 of file NetworkManager.cpp.

Definition at line 19 of file NetworkManager.h.

void spikestream::NetworkManager::progress ( int  stepsCompleted,
int  totalSteps,
QString  message,
bool  showCancelButton 
) [signal]

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.


Member Data Documentation

Deleting network task.

Definition at line 30 of file NetworkManager.h.

Task of loading the network

Definition at line 33 of file NetworkManager.h.

Task of saving the network

Definition at line 36 of file NetworkManager.h.

undefined task id

Definition at line 27 of file NetworkManager.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines