Blame view

LiveChat/FeiTalk/gui/italkingwidget.h 2.93 KB
9f17d59e   陈明泉   no message
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  #ifndef ITALKINGWIDGET_H
  #define ITALKINGWIDGET_H
  
  #include <QWidget>
  #include <QSlider>
  #include <QTimer>
  
  #include "Notification.h"
  #include "ui_test.h"
  #include "islider.h"
  #include "msgmemo.h"
  #include "gotye/GotyeAPI.h"
  #include "gotye/GotyeDelegate.h"
  #include "../JusDoodle/DoodlePch.h"
  USING_NS_GOTYEAPI;
  
  namespace Ui {
  class TalkingWidget;
  }
  
  class IVideoItemTeach;
  
  class ITalkingWidget : public QWidget ,public GotyeDelegate
  {
      Q_OBJECT
  public:
      explicit ITalkingWidget(QWidget *parent = 0);
  
6e10e93e   陈明泉   no message
29
      virtual void onReceiveMessage(const GotyeMessage& message, bool* downloadMediaIfNeed);
9f17d59e   陈明泉   no message
30
      void onVideoEvent(int eventType, const Notification &_info);
9f17d59e   陈明泉   no message
31
      void slotClickedBtnDecline();
9f17d59e   陈明泉   no message
32
33
34
35
36
37
38
39
40
41
42
43
44
      void stopLocalVideo();
      void showSessTermed();
      void stopRemoteVideo();
      void initShowUI();
      bool eventFilter(QObject *obj, QEvent *e);
      int getSendUid();
      void callCourse();
  
  
  signals:
      void StopCall();
      void stopCalling();
      void hideMain();//最小化
6e10e93e   陈明泉   no message
45
      void send_callTimeSec(int);//通话时长
9f17d59e   陈明泉   no message
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
      
  public slots:
  
  private:
      Ui::TalkingWidget *ui;//通话界面UI
      ISlider *volSlider;
      QTimer MyTimer;
      QTimer trayHideTimer;
      int receiverUid;
      msgMemo *ui_msgMemo;
  
  
  public:
  //    IVideoItemTeach *videoItemTeacher;//教师视频窗口
      QWidget *videoItemTeacher;//教师视频窗口
      QLabel *hint_label;
6e10e93e   陈明泉   no message
62
63
64
  
      int callTimeSec;//通话时长
      int pptNmu;
9f17d59e   陈明泉   no message
65
66
67
68
69
70
71
72
73
      //Explanation m_explanation;
      //Ui::balanceLabels ui_explanation;
      //QWidget m_explanation;
  
      
  public slots:
  //    void on_pushButtonMin_clicked();
      void startLocalVideo();
      void startRemoteVideo();
6e10e93e   陈明泉   no message
74
      void slotClickedBtnAnswer();
9f17d59e   陈明泉   no message
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  
  private slots:
      void on_pushButtonClose_clicked();
      void on_pushButtonCloseVideo_clicked();
      void on_pushButtonMic_clicked();
      void on_pushButtonCameraChange_clicked();
      void on_pushButtonVol_clicked();
      void MicLabelShow();
      void CameraLabelShow();
      void volSliderShow();
      void volSliderHide();
      void SetSpkVol(int value);
      void displayTime();
      void on_pushButton_clicked();
      void on_pushButton_picture_clicked();
      void on_pushButtonMessage_clicked();
      void closeTheCurrentCall(QString);
      void otherVideoReceive(bool flag);
      void widgettrayHide();
      void widgettrayShow();
      void repulseCurrentCall();
      void doResponse(int cmd, int, QString, QString result);
      void showCourseUi();
      void upCourseUi();
6e10e93e   陈明泉   no message
99
100
101
      void CallNetChanged(int num);//信号强度
      void slotClickedBtnEnd(); //结束通话
      void ui_msgmemo_ishow(); //msgmemo show
9f17d59e   陈明泉   no message
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  
  private:
      bool videoFlag;
      bool isClictMic;
      bool isClictCamera;
      bool isClictVol;
      int m_nRemoteWidth;
      int m_nRemoteHeight;
      QTimer *m_timer;
      QTimer *m_courseTimer;
      QTimer *m_hanging_up_timer;
  //    QTimer *m_hanging_up_timer;
      QString Myhead;
      QString otherhead;
9f17d59e   陈明泉   no message
116
117
118
119
  
      unsigned int m_dwSessId;
      JusDoodle::DoodleSession *pSess;
      QJsonArray pptarray;
9f17d59e   陈明泉   no message
120
121
122
  };
  
  #endif // ITALKINGWIDGET_H