1/*
2 Copyright (C) 2014 by Elvis Angelaccio <elvis.angelaccio@kdemail.net>
3
4 This file is part of Kronometer.
5
6 Kronometer is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 Kronometer is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Kronometer. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#include <KApplication>
21#include <KAboutData>
22#include <KCmdLineArgs>
23#include <KIcon>
24
25#include "mainwindow.h"
26
27namespace
28{
29 const QByteArray APP_NAME = "kronometer";
30 const QByteArray VERSION = "1.4.2";
31 const QByteArray OTHER_TEXT = "";
32 const QByteArray HOME_PAGE_ADDRESS = "http://aelog.org/kronometer";
33
34 const QByteArray AUTHOR_EMAIL_ADDRESS = "elvis.angelaccio@kdemail.net";
35 const QByteArray AUTHOR_WEB_ADDRESS = "http://aelog.org";
36}
37
38int main (int argc, char **argv)
39{
40 KAboutData aboutData(
41 APP_NAME, APP_NAME,
42 ki18n("Kronometer"),
43 VERSION,
44 ki18n("Kronometer is a simple chronometer application built for KDE"),
45 KAboutData::License_GPL,
46 ki18n("Copyright (C) 2014 Elvis Angelaccio"),
47 ki18n(OTHER_TEXT),
48 HOME_PAGE_ADDRESS
49 );
50
51 aboutData.addAuthor(ki18n("Elvis Angelaccio"), ki18n("Developer"), AUTHOR_EMAIL_ADDRESS, AUTHOR_WEB_ADDRESS);
52
53 KCmdLineArgs::init(argc, argv, &aboutData);
54
55 KApplication app;
56
57 MainWindow* window = new MainWindow();
58 window->setWindowIcon(KIcon("kronometer"));
59 window->show();
60
61 return app.exec();
62}
63