~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to importwizard/main.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2012 Montel Laurent <montel@kde.org>
 
3
 
 
4
  This program is free software; you can redistribute it and/or modify it
 
5
  under the terms of the GNU General Public License, version 2, as
 
6
  published by the Free Software Foundation.
 
7
 
 
8
  This program is distributed in the hope that it will be useful, but
 
9
  WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
  General Public License for more details.
 
12
 
 
13
  You should have received a copy of the GNU General Public License along
 
14
  with this program; if not, write to the Free Software Foundation, Inc.,
 
15
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
16
*/
 
17
 
 
18
 
 
19
#include <kcmdlineargs.h>
 
20
#include <kaboutdata.h>
 
21
#include <klocale.h>
 
22
#include <KApplication>
 
23
 
 
24
#include "importwizard.h"
 
25
 
 
26
#include "kdepim-version.h"
 
27
 
 
28
int main(int argc, char *argv[])
 
29
{
 
30
  KLocale::setMainCatalog("importwizard");
 
31
 
 
32
  //FIXME: "wizards" are "assistents" in new KDE slang
 
33
  KAboutData aboutData( "importwizard", 0, ki18n("importwizard"),
 
34
    KDEPIM_VERSION, ki18n("PIM Import Tool"), KAboutData::License_GPL_V2,
 
35
    ki18n("Copyright © 2012 importwizard authors"));
 
36
  aboutData.addAuthor(ki18n("Laurent Montel"), ki18n("Maintainer"), "montel@kde.org");
 
37
  aboutData.setProgramIconName("kontact-import-wizard");
 
38
  KCmdLineArgs::init( argc, argv, &aboutData );
 
39
 
 
40
  KCmdLineOptions options;
 
41
  KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
 
42
 
 
43
  KApplication a;
 
44
  ImportWizard *wizard = new ImportWizard();
 
45
  a.setTopWidget(wizard);
 
46
  wizard->show();
 
47
  int ret = a.exec();
 
48
  delete wizard;
 
49
  return ret;
 
50
}