<commit_before>﻿#ifndef CGEN3UIMANAGER_H
#define CGEN3UIMANAGER_H
//#include "UI/Alert/AlertUI.h"
//#include "UI/AudioPassThru/AudioPassThru.h"
//#include "UI/Choiceset/Choiceset.h"
//#include "UI/Choiceset/ChoicesetVR.h"
//#include "UI/Command/Command.h"
//#include "UI/ScrollableMessage/ScrollMsg.h"
//#include "UI/Show/Show.h"
//#include "UI/Config/Config.h"
//#include "UI/Slider/Slider.h"
//#include "UI/Notify/Notify.h"
//#include "UI/Common/AppBase.h"
//#include "UI/TextSpeech/textspeech.h"
#include "UIInterface.h"
#include "AppListInterface.h"
#include "QMessageBox"
//#include "Gen3UI/MainWindow/MainWindow.h"


#ifdef SDL_SUPPORT_LIB
//#include "AudioTrans/MspVRAudio.h"
#endif

class CGen3UIManager : public QWidget, public UIInterface
{
    Q_OBJECT
public:
    explicit CGen3UIManager(AppListInterface * pList, QWidget *parent = NULL);
    ~CGen3UIManager();

    void onAppActive();
    void onAppStop();
    //hmi
    void onAppShow(int type);
    void onAppUnregister(int appId);

    void onVideoStreamStart();
    void onVideoStreamStop();

    void tsSpeak(int VRID, std::string strText);

    void OnEndAudioPassThru();
signals:
    //void finishMainHMI();
    void onAppShowSignal(int type);
    void onAppActivatedSignal(AppDataInterface* pInterface);
    void OnAppUnregisterSignal(int appId);

    void onVideoStartSignal();
    void onVideoStopSignal();

public slots:
    void initAppHMI();
    void AppShowSlot(int type);
    void OnAppUnregisterSlot(int appId);

    void onVideoStartSlots();
    void onVideoStopSlots();

    void OnAppUnregister();
private:<commit_msg>fix bug when stop videostream<commit_after>﻿#ifndef CGEN3UIMANAGER_H
#define CGEN3UIMANAGER_H
//#include "UI/Alert/AlertUI.h"
//#include "UI/AudioPassThru/AudioPassThru.h"
//#include "UI/Choiceset/Choiceset.h"
//#include "UI/Choiceset/ChoicesetVR.h"
//#include "UI/Command/Command.h"
//#include "UI/ScrollableMessage/ScrollMsg.h"
//#include "UI/Show/Show.h"
//#include "UI/Config/Config.h"
//#include "UI/Slider/Slider.h"
//#include "UI/Notify/Notify.h"
//#include "UI/Common/AppBase.h"
//#include "UI/TextSpeech/textspeech.h"
#include "UIInterface.h"
#include "AppListInterface.h"
#include "QMessageBox"
//#include "Gen3UI/MainWindow/MainWindow.h"


#ifdef SDL_SUPPORT_LIB
//#include "AudioTrans/MspVRAudio.h"
#endif

class CGen3UIManager : public QWidget, public UIInterface
{
    Q_OBJECT
public:
    explicit CGen3UIManager(AppListInterface * pList, QWidget *parent = NULL);
    ~CGen3UIManager();

    void onAppActive();
    void onAppStop();
    //hmi
    void onAppShow(int type);
    void onAppUnregister(int appId);

    void onVideoStreamStart();
    void onVideoStreamStop();

    void tsSpeak(int VRID, std::string strText);

    void OnEndAudioPassThru();
signals:
    //void finishMainHMI();
    void onAppShowSignal(int type);
    void onAppActivatedSignal(AppDataInterface* pInterface);
    void OnAppUnregisterSignal(int appId);

    void onVideoStartSignal();
    void onVideoStopSignal();

public slots:
    void initAppHMI();
    void AppShowSlot(int type);
    void OnAppUnregisterSlot(int appId);

    void onVideoStartSlots();
    void onVideoStopSlots();
private:
{'fraction_non_alphanumeric': 0.13452492944496708, 'fraction_numerical': 0.0037629350893697085, 'mean_word_length': 4.406779661016949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4402115', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1135, 'n_words': 223}