blob: 29246e5cd61f57cb5de6e13be57ad9ec9c2a47df [file] [log] [blame]
Alexander Afanasyevfa2f6622016-12-25 12:28:00 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2013-2016, 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"
22#include "logging.hpp"
Jared Lindblom06405c42013-01-17 20:48:39 -080023#include <QApplication>
24
Alexander Afanasyeveda3b7a2016-12-25 11:26:40 -080025int
26main(int argc, char* argv[])
Jared Lindblom06405c42013-01-17 20:48:39 -080027{
Alexander Afanasyeveda3b7a2016-12-25 11:26:40 -080028 INIT_LOGGERS();
Jared Lindblom06405c42013-01-17 20:48:39 -080029
Alexander Afanasyev83a53002013-01-24 11:12:01 -080030 QApplication app(argc, argv);
Jared Lindblomb4032e22013-01-17 23:50:51 -080031
Alexander Afanasyev83a53002013-01-24 11:12:01 -080032 // do not quit when last window closes
33 app.setQuitOnLastWindowClosed(false);
34
35 // invoke gui
36 ChronoShareGui gui;
37
38 return app.exec();
Jared Lindblom06405c42013-01-17 20:48:39 -080039}