source: filezilla/trunk/fuentes/src/include/engine_context.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 633 bytes
Line 
1#ifndef FILEZILLA_ENGINE_CONTEXT
2#define FILEZILLA_ENGINE_CONTEXT
3
4#include <memory>
5
6class CDirectoryCache;
7class CEventLoop;
8class COptionsBase;
9class CPathCache;
10class CRateLimiter;
11
12// There can be multiple engines, but there can be at most one context
13class CFileZillaEngineContext final
14{
15public:
16        CFileZillaEngineContext(COptionsBase & options);
17        ~CFileZillaEngineContext();
18
19        COptionsBase& GetOptions();
20        CEventLoop& GetEventLoop();
21        CRateLimiter& GetRateLimiter();
22        CDirectoryCache& GetDirectoryCache();
23        CPathCache& GetPathCache();
24
25protected:
26        COptionsBase& options_;
27
28        class Impl;
29        std::unique_ptr<Impl> impl_;
30};
31
32#endif
Note: See TracBrowser for help on using the repository browser.