File indexing completed on 2024-05-12 05:07:05
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 * This class represents the implementation of the 0027 * ViewInterface. 0028 */ 0029 class KMMViewInterface : public ViewInterface 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 KMMViewInterface(KMyMoneyView* view, QObject* parent, const char* name = 0); 0035 ~KMMViewInterface() 0036 { 0037 } 0038 0039 void addView(KMyMoneyViewBase* view, const QString& name, View idView, Icons::Icon icon) override; 0040 void removeView(View idView) override; 0041 0042 private: 0043 KMyMoneyView* m_view; 0044 }; 0045 0046 } // namespace 0047 #endif