File indexing completed on 2024-05-12 05:21:23
0001 /* 0002 This file is part of KOrganizer. 0003 0004 SPDX-FileCopyrightText: 1999 Preston Brown <pbrown@kde.org> 0005 SPDX-FileCopyrightText: 2000, 2001, 2003 Cornelius Schumacher <schumacher@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0008 */ 0009 0010 #pragma once 0011 0012 #include <KontactInterface/PimUniqueApplication> 0013 0014 class QUrl; 0015 0016 class KOrganizerApp : public KontactInterface::PimUniqueApplication 0017 { 0018 Q_OBJECT 0019 public: 0020 KOrganizerApp(int &argc, char **argv[]); 0021 ~KOrganizerApp() override; 0022 0023 /** 0024 Create new instance of KOrganizer. If there is already running a 0025 KOrganizer only an additional main window is opened. 0026 */ 0027 int activate(const QStringList &args, const QString &workingDir) override; 0028 0029 private: 0030 /** 0031 Process calendar from URL \arg url. If url is empty open the default 0032 calendar based on the resource framework. 0033 */ 0034 void processCalendar(const QUrl &url, bool show = true); 0035 };