File indexing completed on 2024-12-08 04:34:23
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Olivier de Gaalon <olivier.jg@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 * 0006 */ 0007 0008 #pragma once 0009 0010 #include "libruqolawidgets_private_export.h" 0011 #include <QWidget> 0012 0013 class QTabBar; 0014 class AccountManager; 0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT AccountsOverviewWidget : public QWidget 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit AccountsOverviewWidget(QWidget *parent = nullptr); 0020 ~AccountsOverviewWidget() override; 0021 void updateButtons(); 0022 0023 void showNextView(); 0024 void showPreviousView(); 0025 0026 private: 0027 LIBRUQOLAWIDGETS_NO_EXPORT void updateCurrentTab(); 0028 LIBRUQOLAWIDGETS_NO_EXPORT void goToView(int index); 0029 0030 QTabBar *const mTabBar; 0031 AccountManager *const mAccountManager; 0032 };