• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Unionman Technology Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef LOGTEXTWIDGET_H
17 #define LOGTEXTWIDGET_H
18 
19 #include "StbItemWidget.h"
20 #include <QFile>
21 #include <QMutex>
22 #include <QWidget>
23 
24 namespace Ui {
25     class LogTextWidget;
26 }
27 
28 class LogTextWidget : public QWidget {
29     Q_OBJECT
30 
31 public:
32     explicit LogTextWidget(QWidget* parent = nullptr, QWidget* stbItemWidget = nullptr);
33     ~LogTextWidget();
34     void setLogText(QString logContent);
35     bool logLoadingIsCancelled;
36 
37 private slots:
38     void on_logTextClosepushButton_clicked();
39 
40     void on_logTextclearPushButton_clicked();
41 
42     void on_logTextrefreshPushButton_clicked();
43 
44 private:
45     Ui::LogTextWidget* ui;
46     QString mac;
47     QString sn;
48     QString ip;
49     QString deviceModel;
50     QWidget* ItemWidget;
51 };
52 
53 #endif // LOGTEXTWIDGET_H
54