main.cpp 1.67 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * Copyright (c) 2002 Christian Loose <christian.loose@hamburg.de>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this program; see the file COPYING.  If not, write to
16
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Dirk Mueller's avatar
Dirk Mueller committed
17
 * Boston, MA 02110-1301, USA.
18 19 20
 *
 */

Martin Koller's avatar
Martin Koller committed
21 22
#include <QApplication>

23
#include <kaboutdata.h>
Martin Koller's avatar
Martin Koller committed
24 25
#include <KLocalizedString>

26
#include "cvsservice.h"
Martin Koller's avatar
Martin Koller committed
27
#include "../version.h"
28 29


Martin Koller's avatar
Martin Koller committed
30
extern "C" Q_DECL_EXPORT int kdemain(int argc, char** argv)
31
{
Burkhard Lück's avatar
Burkhard Lück committed
32
    KLocalizedString::setApplicationDomain("cvsservice");
33

Martin Koller's avatar
Martin Koller committed
34 35
    QApplication app(argc, argv);

36
    KAboutData about("cvsservice5", i18n("CVS D-Bus service"), CERVISIA_VERSION,
Martin Koller's avatar
Martin Koller committed
37 38 39
                     i18n("D-Bus service for CVS"), KAboutLicense::LGPL,
                     i18n("Copyright (c) 2002-2003 Christian Loose"));

40 41
    about.setOrganizationDomain("kde.org");

Martin Koller's avatar
Martin Koller committed
42 43
    about.addAuthor(i18n("Christian Loose"), i18n("Developer"),
                    "christian.loose@hamburg.de");
44

Martin Koller's avatar
Martin Koller committed
45
    KAboutData::setApplicationData(about);
46

André Wöbbeking's avatar
André Wöbbeking committed
47 48 49
    // Don't quit if password dialog for login is closed
    app.setQuitOnLastWindowClosed(false);

50 51 52 53
    CvsService service;

    return app.exec();
}