2
* Copyright 2014 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Charles Kerr <charles.kerr@canonical.com>
20
#ifndef INDICATOR_TRANSFER_VIEW_CONSOLE_H
21
#define INDICATOR_TRANSFER_VIEW_CONSOLE_H
23
#include <transfer/view.h>
25
#include <core/connection.h>
27
#include <memory> // shared_ptr
35
* \brief a debugging view that dumps output to the console
37
class ConsoleView: public View
40
ConsoleView(const std::shared_ptr<Model>&, const std::shared_ptr<Controller>&);
42
void set_controller(const std::shared_ptr<Controller>&);
43
void set_model(const std::shared_ptr<Model>&);
46
std::shared_ptr<Model> m_model;
47
std::shared_ptr<Controller> m_controller;
48
std::set<core::ScopedConnection> m_connections;
49
static gboolean on_timer (gpointer);
52
} // namespace transfer
53
} // namespace indicator
56
#endif // INDICATOR_TRANSFER_VIEW_H