Messagelib

shownextmessagewidget.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_private_export.h"
10 #include <QWidget>
11 class QPushButton;
12 namespace MessageViewer
13 {
14 class MESSAGEVIEWER_TESTS_EXPORT ShowNextMessageWidget : public QWidget
15 {
16  Q_OBJECT
17 public:
18  explicit ShowNextMessageWidget(QWidget *parent = nullptr);
19  ~ShowNextMessageWidget() override;
20 
21  void updateButton(bool hasPreviousMessage, bool hasNextMessage);
22 Q_SIGNALS:
23  void showNextMessage();
24  void showPreviousMessage();
25 
26 private:
27  QPushButton *const mNextMessage;
28  QPushButton *const mPreviousMessage;
29 };
30 }
31 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.