frontend_handler.h
1 /*
2 * Nebula Atom
3 
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef NAF_HANDLERS_FRONTENDHANDLER
19 #define NAF_HANDLERS_FRONTENDHANDLER
20 
21 #include <string>
22 #include <map>
23 #include <vector>
24 
25 #include "handlers/root_handler.h"
26 #include "files/file_manager.h"
27 
28 
29 namespace NAF
30 {
31  namespace Handlers
32  {
33  class FrontendHandler;
34  }
35 }
36 
37 
39  public RootHandler
40 {
41  public:
43  ~FrontendHandler();
44 
45  Files::FileManager& get_file_manager()
46  {
47  auto& var = file_manager_;
48  return var;
49  }
50 
51  protected:
52  virtual void Process_() override;
53  virtual void DownloadProcess_();
54  virtual void UploadProcess_();
55  virtual void ModifyProcess_();
56  virtual void RemoveProcess_();
57 
58  private:
59  Files::FileManager file_manager_;
60 };
61 
62 #endif // NAF_HANDLERS_FRONTENDHANDLER
Definition: file_manager.h:73
Definition: frontend_handler.h:40
Definition: root_handler.h:97