blob: eab8e1a80948ae8f68af2de1e4559e0f9c2f4683 [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
25int main(int argc, char *argv[])
26{
Alexander Afanasyev83a53002013-01-24 11:12:01 -080027 INIT_LOGGERS ();
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
35 ChronoShareGui gui;
36
37 return app.exec();
Jared Lindblom06405c42013-01-17 20:48:39 -080038}