mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
implement settings, fix bugs and enhance ui
- 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.
This commit is contained in:
@@ -20,10 +20,10 @@ public:
|
||||
// TODO:public or private?
|
||||
// Image list management
|
||||
QNetworkReply *fetchImageList();
|
||||
GetImagesSortedFinalResult parseImageList(int deviceMajorVersion,
|
||||
int deviceMinorVersion,
|
||||
const char *mounted_sig,
|
||||
uint64_t mounted_sig_len);
|
||||
QList<ImageInfo> parseImageList(int deviceMajorVersion,
|
||||
int deviceMinorVersion,
|
||||
const char *mounted_sig,
|
||||
uint64_t mounted_sig_len);
|
||||
QList<ImageInfo> getAllImages() const;
|
||||
|
||||
// Download management
|
||||
@@ -75,12 +75,10 @@ private:
|
||||
QMap<QString, ImageInfo> m_availableImages;
|
||||
QMap<QNetworkReply *, DownloadItem *> m_activeDownloads;
|
||||
|
||||
void sortVersions(GetImagesSortedResult &sortedResult);
|
||||
|
||||
QMap<QString, QMap<QString, QString>> parseDiskDir();
|
||||
// TODO:move this to header
|
||||
bool m_isImageListReady = false;
|
||||
GetImagesSortedResult
|
||||
QList<ImageInfo>
|
||||
getImagesSorted(QMap<QString, QMap<QString, QString>> imageFiles,
|
||||
int deviceMajorVersion, int deviceMinorVersion,
|
||||
const char *mounted_sig, uint64_t mounted_sig_len);
|
||||
|
||||
Reference in New Issue
Block a user