You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
#ifndef __ONVIF_SOURCE_CHOOSER_WIDGET_HEADER__
|
|
#define __ONVIF_SOURCE_CHOOSER_WIDGET_HEADER__
|
|
|
|
#ifdef __linux__
|
|
#include <QDialog>
|
|
#else
|
|
#include "../gui.h"
|
|
#endif
|
|
|
|
//#include "../../data/protocol/onvifDeviceNode.h"
|
|
#include "../../data/protocol/onvifMediaObserver.h"
|
|
#include "../controls/VideoThumbWidget.h"
|
|
#include "../../data/media/video/videoAVLIBSource.h"
|
|
|
|
class guiAddSourceDialog;
|
|
class OnvifClientDevice;
|
|
|
|
class OnvifSourceFinderDialog : public QDialog {
|
|
private:
|
|
onvifMediaObserver *m_pOnvifObserver;
|
|
OnvifClientDevice *m_pDeviceNode;
|
|
guiAddSourceDialog *m_pParentDialog;
|
|
char m_pSelectedProfileToken[256];
|
|
char m_pSelectedVideoMRL[MAX_PATH_LEN];
|
|
char m_pSelectedPictureMRL[MAX_PATH_LEN];
|
|
/* GUI */
|
|
QHBoxLayout *m_pHL;
|
|
QVBoxLayout *m_pVL1;
|
|
QVBoxLayout *m_pVL2;
|
|
QTreeWidget *m_pTreeWidget;
|
|
|
|
QTableWidget *m_pTableWidget;
|
|
QProgressBar *m_pProgressBar;
|
|
|
|
QListWidget *m_pProfileslist;
|
|
|
|
QLineEdit *m_pTxtLogin;
|
|
QLineEdit *m_pTxtPassword;
|
|
|
|
QPushButton *m_pButtonCmdConnect;
|
|
QPushButton *m_pButtonCmdSearch;
|
|
QSpacerItem *m_pVSpacer;
|
|
|
|
QPushButton *m_pButtonCmdUseProfile;
|
|
|
|
QTimer *m_pTimer;
|
|
char m_pDevURL[MAX_PATH_LEN];
|
|
int m_nSelectedProfile;
|
|
public:
|
|
explicit OnvifSourceFinderDialog( guiAddSourceDialog *parent = NULL );
|
|
~OnvifSourceFinderDialog();
|
|
|
|
public slots:
|
|
void connectToSelectedSource();
|
|
void startDevicesDiscovery();
|
|
void startAskDevice();
|
|
void updateProgress();
|
|
void treeItemClicked(QTreeWidgetItem *item,int column);
|
|
void listItemClicked(QListWidgetItem *item);
|
|
void listItemDblClicked(QListWidgetItem *item);
|
|
void startPrevewNetStream(void);
|
|
void useSelectedProfile(void);
|
|
};
|
|
|
|
|
|
|
|
#endif
|