File indexing completed on 2024-05-12 16:42:55
0001 /* 0002 SPDX-FileCopyrightText: 2005 Thomas Baumgart <ipwizard@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KMMVIEWINTERFACE_H 0008 #define KMMVIEWINTERFACE_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 // ---------------------------------------------------------------------------- 0014 // KDE Includes 0015 0016 class KMyMoneyView; 0017 0018 // ---------------------------------------------------------------------------- 0019 // Project Includes 0020 0021 #include "viewinterface.h" 0022 0023 namespace KMyMoneyPlugin 0024 { 0025 0026 /** 0027 * This class represents the implementation of the 0028 * ViewInterface. 0029 */ 0030 class KMMViewInterface : public ViewInterface 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 KMMViewInterface(KMyMoneyView* view, QObject* parent, const char* name = 0); 0036 ~KMMViewInterface() {} 0037 0038 void slotRefreshViews() override; 0039 0040 void addView(KMyMoneyViewBase* view, const QString& name, View idView, Icons::Icon icon) override; 0041 void removeView(View idView) override; 0042 0043 private: 0044 KMyMoneyView* m_view; 0045 }; 0046 0047 } // namespace 0048 #endif