ScummVM API documentation
Networking::ConnectionManager Class Referenceabstract
Inheritance diagram for Networking::ConnectionManager:
Common::Singleton< Networking::ConnectionManager > Common::NonCopyable Networking::ConnectionManagerCurl

Public Member Functions

RequestaddRequest (Request *request, RequestCallback callback=nullptr)
 

Static Public Member Functions

static uint32 getCloudRequestsPeriodInMicroseconds ()
 
- Static Public Member Functions inherited from Common::Singleton< Networking::ConnectionManager >
static bool hasInstance ()
 
static Networking::ConnectionManagerinstance ()
 
static void destroy ()
 

Friends

void connectionsThread (void *)
 

Additional Inherited Members

- Protected Types inherited from Common::Singleton< Networking::ConnectionManager >
typedef Networking::ConnectionManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< Networking::ConnectionManager >
static Networking::ConnectionManager_singleton
 

Member Function Documentation

◆ addRequest()

Request* Networking::ConnectionManager::addRequest ( Request request,
RequestCallback  callback = nullptr 
)

Use this method to add new Request into manager's queue. Manager will periodically call handle() method of these Requests until they set their state to FINISHED.

If Request's state is RETRY, handleRetry() is called instead.

The passed callback would be called after Request is deleted.

Note
This method starts the timer if it's not started yet.
Returns
the same Request pointer, just as a shortcut

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