xref: /glogg/src/session.cpp (revision f0708ca81489bc71275a0d193395638d59f0a661)
1d96f3f21SNicolas Bonnefon /*
2d96f3f21SNicolas Bonnefon  * Copyright (C) 2013 Nicolas Bonnefon and other contributors
3d96f3f21SNicolas Bonnefon  *
4d96f3f21SNicolas Bonnefon  * This file is part of glogg.
5d96f3f21SNicolas Bonnefon  *
6d96f3f21SNicolas Bonnefon  * glogg is free software: you can redistribute it and/or modify
7d96f3f21SNicolas Bonnefon  * it under the terms of the GNU General Public License as published by
8d96f3f21SNicolas Bonnefon  * the Free Software Foundation, either version 3 of the License, or
9d96f3f21SNicolas Bonnefon  * (at your option) any later version.
10d96f3f21SNicolas Bonnefon  *
11d96f3f21SNicolas Bonnefon  * glogg is distributed in the hope that it will be useful,
12d96f3f21SNicolas Bonnefon  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13d96f3f21SNicolas Bonnefon  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14d96f3f21SNicolas Bonnefon  * GNU General Public License for more details.
15d96f3f21SNicolas Bonnefon  *
16d96f3f21SNicolas Bonnefon  * You should have received a copy of the GNU General Public License
17d96f3f21SNicolas Bonnefon  * along with glogg.  If not, see <http://www.gnu.org/licenses/>.
18d96f3f21SNicolas Bonnefon  */
19d96f3f21SNicolas Bonnefon 
20d96f3f21SNicolas Bonnefon #include "session.h"
21d96f3f21SNicolas Bonnefon 
22d96f3f21SNicolas Bonnefon #include "viewinterface.h"
23d96f3f21SNicolas Bonnefon 
24d96f3f21SNicolas Bonnefon Session::Session()
25d96f3f21SNicolas Bonnefon {
26d96f3f21SNicolas Bonnefon }
27d96f3f21SNicolas Bonnefon 
28d96f3f21SNicolas Bonnefon Session::~Session()
29d96f3f21SNicolas Bonnefon {
30d96f3f21SNicolas Bonnefon     // FIXME Clean up all the data objects...
31d96f3f21SNicolas Bonnefon }
32*f0708ca8SNicolas Bonnefon 
33*f0708ca8SNicolas Bonnefon ViewInterface* Session::open( const std::string& file_name,
34*f0708ca8SNicolas Bonnefon         std::function<ViewInterface*()> view_factory )
35*f0708ca8SNicolas Bonnefon {
36*f0708ca8SNicolas Bonnefon     ViewInterface* view = view_factory();
37*f0708ca8SNicolas Bonnefon 
38*f0708ca8SNicolas Bonnefon     return view;
39*f0708ca8SNicolas Bonnefon }
40