summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DownloadEngine.h')
-rw-r--r--src/DownloadEngine.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h
index ac16be10..31489e2e 100644
--- a/src/DownloadEngine.h
+++ b/src/DownloadEngine.h
@@ -97,9 +97,15 @@ private:
bool isTimeout() const;
- SharedHandle<SocketCore> getSocket() const;
-
- const std::map<std::string, std::string>& getOptions() const;
+ const SharedHandle<SocketCore>& getSocket() const
+ {
+ return _socket;
+ }
+
+ const std::map<std::string, std::string>& getOptions() const
+ {
+ return _options;
+ }
};
// key = IP address:port, value = SocketPoolEntry
@@ -226,9 +232,15 @@ public:
const std::deque<std::string>& ipaddrs,
uint16_t port);
- SharedHandle<CookieStorage> getCookieStorage() const;
+ const SharedHandle<CookieStorage>& getCookieStorage() const
+ {
+ return _cookieStorage;
+ }
- SharedHandle<BtRegistry> getBtRegistry() const;
+ const SharedHandle<BtRegistry>& getBtRegistry() const
+ {
+ return _btRegistry;
+ }
cuid_t newCUID();
@@ -238,7 +250,10 @@ public:
void setAuthConfigFactory(const SharedHandle<AuthConfigFactory>& factory);
- SharedHandle<AuthConfigFactory> getAuthConfigFactory() const;
+ const SharedHandle<AuthConfigFactory>& getAuthConfigFactory() const
+ {
+ return _authConfigFactory;
+ }
void setRefreshInterval(time_t interval);
};