Move unittestenv to correct location
[kdepim.git] / korganizer / korganizer_options.h
blob03a9a667e73f83a93490c59a9b35f7d29267ee31
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 1997-1999 Preston Brown <pbrown@kde.org>
5 Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution.
26 #ifndef KORG_KORGANIZER_OPTIONS_H
27 #define KORG_KORGANIZER_OPTIONS_H
29 #include <QCommandLineParser>
30 #include <KLocalizedString>
32 static void korganizer_options(QCommandLineParser *parser)
34 parser->addOption(QCommandLineOption(
35 QStringList() << QStringLiteral("i") << QStringLiteral("import"),
36 i18n("Import the specified files as separate calendars")));
37 parser->addOption(QCommandLineOption(
38 QStringList() << QStringLiteral("m") << QStringLiteral("merge"),
39 i18n("Merge the specified files into an existing calendar")));
41 parser->addPositionalArgument(
42 QStringLiteral("calendars"),
43 i18n("Calendar files or urls. Unless -i or -m is explicitly specified, "
44 "the user will be asked whether to import or merge"),
45 QStringLiteral("[calendar...]"));
48 #endif