Files
ANSLIB/MediaClient/MediaClientForMobile/formClass/MediaClient.h
2026-03-28 11:39:04 +11:00

91 lines
2.5 KiB
C++

/***************************************************************************************
*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
* Copyright (C) 2014-2024, Happytimesoft Corporation, all rights reserved.
*
* Redistribution and use in binary forms, with or without modification, are permitted.
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
****************************************************************************************/
#ifndef MEDIACLIENT_H
#define MEDIACLIENT_H
#include <QDialog>
#include "ui_MediaClient.h"
#include "config.h"
class MediaClient : public QDialog
{
Q_OBJECT
public:
MediaClient(QWidget *parent = Q_NULLPTR, Qt::WindowFlags flags = Qt::Widget);
~MediaClient();
private slots:
void slotLayoutOne();
void slotLayoutTwo();
void slotLayoutFour();
void slotLayoutSix();
void slotLayoutNine();
void slotLayoutChanged(int index);
void slotPlay();
void slotPause();
void slotStop();
void slotCallState(QWidget* pWidget, int event);
void slotSnapshot();
void slotRecord();
void slotVolume();
void slotSnapshotResult(bool ret);
void slotRecordResult(bool ret);
void slotUpdateStatistics(int bytes);
void slotOrientationChanged(Qt::ScreenOrientation orientation);
void slotWidgetSelecting(QWidget * pWidget);
void slotSystemSetting();
void slotOpenSnapshot();
void slotOpenRecording();
void slotAbout();
protected:
void closeEvent(QCloseEvent * event);
private:
void initLog();
void initDialog();
void connSignalSlot();
void saveChannel(QList<CHANNEL> &channels, VideoWidget * widget);
void connVideoWidget(VideoWidget * widget);
void showBitrate(int bitrate);
void setupLayout(Qt::ScreenOrientation orientation);
void loadSystemConfig();
void loadChannels();
private:
Ui::MediaClient ui;
VideoWidget * m_curWidget;
int m_layoutMode;
uint64 m_recvBytes;
QString m_url;
QString m_user;
QString m_pass;
SysConfig m_syscfg;
};
#endif