2 * Copyright (c) 1998 Denis Perchine <dyp@perchine.com>
3 * Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
4 * Former maintainer: Adriaan de Groot <groot@kde.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
24 #include <kiconloader.h>
25 #include <kapplication.h>
28 #include <kcmdlineargs.h>
29 #include <kaboutdata.h>
32 #include "ku_global.h"
34 #include "ku_mainwidget.h"
36 static const char *description
=
37 I18N_NOOP("KDE User Editor");
39 int main(int argc
, char **argv
)
42 KAboutData
aboutData("kuser", 0, ki18n("KUser"),
43 _KU_VERSION
, ki18n(description
), KAboutData::License_GPL
,
44 ki18n("(c) 1997-2000, Denis Perchine\n(c) 2004, Szombathelyi György"));
45 aboutData
.addAuthor(ki18n("Denis Perchine"), ki18n("kuser author"),
46 "dyp@perchine.com", "http://www.perchine.com/dyp/");
47 aboutData
.addAuthor(ki18n("Szombathelyi György"), ki18n("kuser author"),
48 "gyurco@freemail.hu");
49 KCmdLineArgs::init(argc
, argv
, &aboutData
);
50 KU_MainWidget
*mw
= 0;
53 KGlobal::locale()->insertCatalog("libkldap");
54 KConfigGroup
group( KGlobal::config(), "general" );
55 KU_Global::initCfg( group
.readEntry( "connection", "default" ) );
57 mw
= new KU_MainWidget();
58 mw
->setCaption(i18n("KDE User Manager"));
63 KU_Global::kcfg()->writeConfig();