/*************************************************************************************** * * 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 _UTILS_H_ #define _UTILS_H_ #include "sys_inc.h" #include "config.h" #include QString getSnapshotPath(); QString getRecordPath(); QString getOpenFilePath(); BOOL getEnableLogFlag(); int getVideoRenderMode(); BOOL getRtpMulticast(); BOOL getRtpOverUdp(); BOOL getRtspOverHttp(); int getRtspOverHttpPort(); BOOL getRtspOverWs(); int getRtspOverWsPort(); int getLogLevel(); int getSysLang(); int getRecordTime(); int getRecordSize(); int getHWDecoding(); int getLayoutMode(); BOOL getChannels(QList & channels); QString getTempFile(QString prefix, QString extName); void saveOpenFilePath(QString path); void saveEnableLogFlag(BOOL flag); void saveVideoRenderMode(int mode); void saveRtpMulticast(BOOL flag); void saveRtpOverUdp(BOOL flag); void saveRtspOverHttp(BOOL flag); void saveRtspOverHttpPort(int port); void saveRtspOverWs(BOOL flag); void saveRtspOverWsPort(int port); void saveLogLevel(int level); void saveSysLang(int lang); void saveRecordTime(int value); void saveRecordSize(int value); void saveHWDecoding(int value); void saveLayoutMode(int value); void saveChannels(QList & channels); BOOL isUrl(QString url); BOOL isRtspUrl(QString url); BOOL isRtmpUrl(QString url); BOOL isHttpUrl(QString url); BOOL isSrtUrl(QString url); #endif