krop's commit fixes my problem in a better way, reverting
[kdepim.git] / libkdepim / pimapplication.h
blob449616e4876700e552bc9e3943e7eca54a1bf3d8
1 /* This file is part of the KDE project
3 Copyright 2008 David Faure <faure@kde.org>
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Library General Public License as published
7 by the Free Software Foundation; either version 2 of the License or
8 ( at your option ) version 3 or, at the discretion of KDE e.V.
9 ( which shall act as a proxy as in section 14 of the GPLv3 ), 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.
21 #ifndef KDEPIM_PIMAPPLICATION_H
22 #define KDEPIM_PIMAPPLICATION_H
24 #include "kdepim_export.h"
25 #include <kuniqueapplication.h>
27 namespace KPIM {
29 /**
30 * KDEPIM applications which can be integrated into kontact should use
31 * PimApplication instead of KUniqueApplication.
32 * This makes command-line handling work, i.e. you can launch "korganizer"
33 * and if kontact is already running, it will load the korganizer part and
34 * switch to it.
36 class KDEPIM_EXPORT PimApplication : public KUniqueApplication
38 public:
39 explicit PimApplication();
41 /**
42 * @see KUniqueApplication::start
44 static bool start();
50 #endif