mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
8d7b027992
- Added new settings keys in SettingsManager for download path, auto-check updates, auto-raise window, switch to new device, unmount iFuse on exit, theme, and connection timeout. - Implemented methods to get and set these new settings. - Updated SettingsWidget to include UI elements for the new settings, including checkboxes and a combo box for theme selection. - Refactored loadSettings and saveSettings methods to handle new settings. - Removed deprecated settings UI elements to streamline the interface. - Introduced VirtualLocation widget for managing virtual location settings with a map interface. - Integrated QML for map visualization and input handling for latitude and longitude. - Added functionality to apply virtual location settings to the connected device.
35 lines
750 B
C++
35 lines
750 B
C++
#ifndef REALTIMESCREEN_H
|
|
#define REALTIMESCREEN_H
|
|
|
|
#include "iDescriptor.h"
|
|
#include <QLabel>
|
|
#include <QTimer>
|
|
#include <QWidget>
|
|
#include <libimobiledevice/libimobiledevice.h>
|
|
#include <libimobiledevice/screenshotr.h>
|
|
|
|
class RealtimeScreenWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RealtimeScreenWidget(iDescriptorDevice *device,
|
|
QWidget *parent = nullptr);
|
|
~RealtimeScreenWidget();
|
|
|
|
private:
|
|
void initializeScreenshotService();
|
|
void updateScreenshot();
|
|
void startCapturing();
|
|
|
|
iDescriptorDevice *m_device;
|
|
QTimer *m_timer;
|
|
QLabel *m_imageLabel;
|
|
QLabel *m_statusLabel;
|
|
screenshotr_client_t m_shotrClient;
|
|
int m_fps;
|
|
|
|
signals:
|
|
};
|
|
|
|
#endif // REALTIMESCREEN_H
|