File indexing completed on 2024-12-22 05:01:13

0001 /*
0002   This file is part of KDE Kontact.
0003 
0004   SPDX-FileCopyrightText: 2003 Sven Lüppken <sven@kde.org>
0005 
0006   SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include <KontactInterface/Plugin>
0012 
0013 class SummaryViewPart;
0014 class KSelectAction;
0015 class KAboutData;
0016 class SummaryView : public KontactInterface::Plugin
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     SummaryView(KontactInterface::Core *core, const KPluginMetaData &data, const QVariantList &);
0022     ~SummaryView() override;
0023 
0024     int weight() const override
0025     {
0026         return 100;
0027     }
0028 
0029     const KAboutData aboutData() override;
0030 
0031 protected:
0032     KParts::Part *createPart() override;
0033 
0034 private:
0035     void doSync();
0036     void syncAccount(QAction *act);
0037     void fillSyncActionSubEntries();
0038     SummaryViewPart *mPart = nullptr;
0039     KSelectAction *mSyncAction = nullptr;
0040     QAction *mAllSync = nullptr;
0041 };