#include <TrackerRequestSessionFactoryImpl.h> [code]
Inherits Protocols::BitTorrent::Trackers::TrackerRequestSessionFactory.
Inheritance diagram for Protocols::BitTorrent::Trackers::TrackerRequestSessionFactoryImpl:
See TrackerRequestSessionFactory class (interface) description for more info about the purpose of this class.
It does not throw its own exceptions and lets any thrown exceptions through to the user. In case an exception (e.g. bad_alloc) gets thrown, the instance of this class will be left in an unchanged state. Thus, the class meets the strong guarantee of exception safety.
Definition at line 58 of file TrackerRequestSessionFactoryImpl.h.
Public Member Functions | |
| TrackerRequestSessionFactoryImpl (TrackerRequestSessionFactoryStatus *) | |
| Constructor. | |
| ~TrackerRequestSessionFactoryImpl () | |
| Destructor. | |
| TrackerRequestSession * | createSession (const Torrent &) |
| Creates a TrackerRequestSession according to the torrent. | |
| void | destroySession (TrackerRequestSession *) |
| Destroys selected session. | |
| uint | holdedSessionsCount () const |
| void | trackerRequestSessionEstablished (TrackerRequestSession *) |
| Forwards the recieved notification to the factory notifications listener. | |
| void | trackerRequestSessionError (TrackerRequestSession *, const QString &) |
| Forwards the recieved notification to the factory notifications listener. | |
| void | trackerRequestSessionResponseRecieved (TrackerRequestSession *, const TrackerResponse &) |
| Forwards the recieved notification to the factory notifications listener. | |
| void | trackerRequestSessionClosing (TrackerRequestSession *) |
| Forwards the recieved notification to the factory notifications listener. | |
| void | trackerRequestSessionClosed (TrackerRequestSession *) |
| Forwards the recieved notification to the factory notifications listener. | |
Private Types | |
| typedef QPair< HttpRequestSession *, TrackerRequestSessionStatus * > | TrackerRequestSessionData |
| Data passed to sessions ctors. | |
| typedef QMap< TrackerRequestSession *, TrackerRequestSessionData > | TrackerRequestSessionsWithDataStorage |
| Storage of sessions with their data. | |
Private Member Functions | |
| CALITKO_TESTABLE | TrackerRequestSessionFactoryImpl (const TrackerRequestSessionFactoryImpl &) |
| TrackerRequestSessionFactoryImpl & | operator= (const TrackerRequestSessionFactoryImpl &) |
| bool | isHoldedSession (TrackerRequestSession *) const |
| Check whether the selected session is currently "holded" by the factory. | |
Private Attributes | |
| TrackerRequestSessionFactoryStatus * | status_ |
| TrackerRequestSessionsWithDataStorage | sessionsStorage_ |
|
|
Data passed to sessions ctors.
Definition at line 88 of file TrackerRequestSessionFactoryImpl.h. |
|
|
Storage of sessions with their data.
Definition at line 91 of file TrackerRequestSessionFactoryImpl.h. |
|
|
|
|
|
Constructor.
Definition at line 36 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Destructor. Destroys a TrackerRequestSessionFactoryImpl object. No status notifications are sent. Definition at line 48 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Creates a TrackerRequestSession according to the torrent.
Implements Protocols::BitTorrent::Trackers::TrackerRequestSessionFactory. Definition at line 67 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Destroys selected session.
Implements Protocols::BitTorrent::Trackers::TrackerRequestSessionFactory. Definition at line 114 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
"Holded" means that they (sessions) were created by this factory (instance) and were not destroyed yet. No status notifications are sent. Definition at line 130 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Check whether the selected session is currently "holded" by the factory.
Definition at line 234 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
|
|
|
Forwards the recieved notification to the factory notifications listener.
Definition at line 220 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Forwards the recieved notification to the factory notifications listener.
Definition at line 202 of file TrackerRequestSessionFactoryImpl.cpp. |
|
||||||||||||
|
Forwards the recieved notification to the factory notifications listener.
Definition at line 164 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Forwards the recieved notification to the factory notifications listener.
Definition at line 145 of file TrackerRequestSessionFactoryImpl.cpp. |
|
||||||||||||
|
Forwards the recieved notification to the factory notifications listener.
Definition at line 183 of file TrackerRequestSessionFactoryImpl.cpp. |
|
|
Definition at line 94 of file TrackerRequestSessionFactoryImpl.h. |
|
|
Definition at line 93 of file TrackerRequestSessionFactoryImpl.h. |