blob: f025897d23f8195321674300e0d3e47f5d5e8b60 [file] [log] [blame]
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyev1cf5c432017-01-13 23:22:15 -08003 * Copyright (c) 2013-2017, Regents of the University of California.
Jared Lindblom06405c42013-01-17 20:48:39 -08004 *
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -08005 * This file is part of ChronoShare, a decentralized file sharing application over NDN.
Jared Lindblom06405c42013-01-17 20:48:39 -08006 *
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -08007 * ChronoShare is free software: you can redistribute it and/or modify it under the terms
8 * of the GNU General Public License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
Jared Lindblom06405c42013-01-17 20:48:39 -080010 *
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -080011 * ChronoShare is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
Jared Lindblom06405c42013-01-17 20:48:39 -080014 *
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -080015 * You should have received copies of the GNU General Public License along with
16 * ChronoShare, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * See AUTHORS.md for complete list of ChronoShare authors and contributors.
Jared Lindblom06405c42013-01-17 20:48:39 -080019 */
20
Alexander Afanasyevf4cde4e2016-12-25 13:42:57 -080021#include "chronosharegui.hpp"
Lijing Wang152449c2015-05-31 16:25:16 -070022#include "core/logging.hpp"
23
Jared Lindblom06405c42013-01-17 20:48:39 -080024#include <QApplication>
25
Alexander Afanasyeveda3b7a2016-12-25 11:26:40 -080026int
27main(int argc, char* argv[])
Jared Lindblom06405c42013-01-17 20:48:39 -080028{
Alexander Afanasyev83a53002013-01-24 11:12:01 -080029 QApplication app(argc, argv);
Jared Lindblomb4032e22013-01-17 23:50:51 -080030
Alexander Afanasyev83a53002013-01-24 11:12:01 -080031 // do not quit when last window closes
32 app.setQuitOnLastWindowClosed(false);
33
34 // invoke gui
Lijing Wang152449c2015-05-31 16:25:16 -070035 ndn::chronoshare::ChronoShareGui gui;
Alexander Afanasyev83a53002013-01-24 11:12:01 -080036
37 return app.exec();
Jared Lindblom06405c42013-01-17 20:48:39 -080038}