Backup.
This commit is contained in:
parent
3ba9078ef9
commit
2f89bc8681
|
@ -171,9 +171,7 @@ enum class BatteryStatus
|
||||||
};
|
};
|
||||||
typedef struct app_get_product_info
|
typedef struct app_get_product_info
|
||||||
{
|
{
|
||||||
app_get_product_info()
|
app_get_product_info();
|
||||||
{
|
|
||||||
}
|
|
||||||
std::string mModel;
|
std::string mModel;
|
||||||
std::string mCompany;
|
std::string mCompany;
|
||||||
std::string mSoc;
|
std::string mSoc;
|
||||||
|
@ -181,9 +179,7 @@ typedef struct app_get_product_info
|
||||||
} AppGetProductInfo;
|
} AppGetProductInfo;
|
||||||
typedef struct app_get_device_attr
|
typedef struct app_get_device_attr
|
||||||
{
|
{
|
||||||
app_get_device_attr()
|
app_get_device_attr();
|
||||||
{
|
|
||||||
}
|
|
||||||
std::string mUUID;
|
std::string mUUID;
|
||||||
std::string mSoftVersion;
|
std::string mSoftVersion;
|
||||||
std::string mOtaVersion;
|
std::string mOtaVersion;
|
||||||
|
@ -196,61 +192,33 @@ typedef struct app_get_device_attr
|
||||||
} AppGetDeviceAttr;
|
} AppGetDeviceAttr;
|
||||||
typedef struct app_get_media_info
|
typedef struct app_get_media_info
|
||||||
{
|
{
|
||||||
app_get_media_info()
|
app_get_media_info();
|
||||||
{
|
|
||||||
mPort = -1;
|
|
||||||
}
|
|
||||||
std::string mRtspUrl;
|
std::string mRtspUrl;
|
||||||
std::string mTransport;
|
std::string mTransport;
|
||||||
int mPort;
|
int mPort;
|
||||||
} AppGetMeidaInfo;
|
} AppGetMeidaInfo;
|
||||||
typedef struct app_get_sd_card_info
|
typedef struct app_get_sd_card_info
|
||||||
{
|
{
|
||||||
app_get_sd_card_info()
|
app_get_sd_card_info();
|
||||||
{
|
|
||||||
mStatus = SdCardStatus::END;
|
|
||||||
mFree = 0;
|
|
||||||
mTotal = 0;
|
|
||||||
}
|
|
||||||
SdCardStatus mStatus;
|
SdCardStatus mStatus;
|
||||||
int mFree;
|
int mFree;
|
||||||
int mTotal;
|
int mTotal;
|
||||||
} AppGetSdCardInfo;
|
} AppGetSdCardInfo;
|
||||||
typedef struct app_get_battery_info
|
typedef struct app_get_battery_info
|
||||||
{
|
{
|
||||||
app_get_battery_info()
|
app_get_battery_info();
|
||||||
{
|
|
||||||
mCapacity = 0;
|
|
||||||
mChargeStatus = ChargeStatus::END;
|
|
||||||
}
|
|
||||||
int mCapacity;
|
int mCapacity;
|
||||||
ChargeStatus mChargeStatus;
|
ChargeStatus mChargeStatus;
|
||||||
} AppGetBatteryInfo;
|
} AppGetBatteryInfo;
|
||||||
typedef struct app_get_param_value
|
typedef struct app_get_param_value
|
||||||
{
|
{
|
||||||
app_get_param_value()
|
app_get_param_value();
|
||||||
{
|
|
||||||
mRec = SwitchStatus::END;
|
|
||||||
mMicStatus = SwitchStatus::END;
|
|
||||||
}
|
|
||||||
SwitchStatus mMicStatus;
|
SwitchStatus mMicStatus;
|
||||||
SwitchStatus mRec;
|
SwitchStatus mRec;
|
||||||
} AppParamValue;
|
} AppParamValue;
|
||||||
typedef struct app_get_capability
|
typedef struct app_get_capability
|
||||||
{
|
{
|
||||||
app_get_capability()
|
app_get_capability();
|
||||||
{
|
|
||||||
mGpsCapability = GpsCapability::END;
|
|
||||||
mDeviceType = DeviceType::END;
|
|
||||||
mAlbum = DashAlbum::END;
|
|
||||||
mAppLock = AppLock::END;
|
|
||||||
mDeleteLock = DeleteLock::END;
|
|
||||||
mDeviceMode = DeviceMode::END;
|
|
||||||
mPlaybackType = PlaybackType::END;
|
|
||||||
mPhotographCapability = PhotographCapability::END;
|
|
||||||
mWifiCapability = WifiCapability::END;
|
|
||||||
mFileCopy = FileCopy::END;
|
|
||||||
}
|
|
||||||
GpsCapability mGpsCapability;
|
GpsCapability mGpsCapability;
|
||||||
DeviceType mDeviceType;
|
DeviceType mDeviceType;
|
||||||
DashAlbum mAlbum;
|
DashAlbum mAlbum;
|
||||||
|
@ -264,13 +232,7 @@ typedef struct app_get_capability
|
||||||
} AppGetCapability;
|
} AppGetCapability;
|
||||||
typedef struct app_get_storage_info
|
typedef struct app_get_storage_info
|
||||||
{
|
{
|
||||||
app_get_storage_info()
|
app_get_storage_info();
|
||||||
{
|
|
||||||
mIndex = -1;
|
|
||||||
mType = StorageType::END;
|
|
||||||
mFree = 0;
|
|
||||||
mTotal = 0;
|
|
||||||
}
|
|
||||||
int mIndex;
|
int mIndex;
|
||||||
StorageType mType;
|
StorageType mType;
|
||||||
std::string mName;
|
std::string mName;
|
||||||
|
@ -279,25 +241,14 @@ typedef struct app_get_storage_info
|
||||||
} AppGetStorageInfo;
|
} AppGetStorageInfo;
|
||||||
typedef struct app_get_file_info
|
typedef struct app_get_file_info
|
||||||
{
|
{
|
||||||
app_get_file_info()
|
app_get_file_info();
|
||||||
{
|
|
||||||
mStartIndex = 0;
|
|
||||||
mStopIndex = 0;
|
|
||||||
mEvent = StorageFileEvent::END;
|
|
||||||
}
|
|
||||||
int mStartIndex;
|
int mStartIndex;
|
||||||
int mStopIndex;
|
int mStopIndex;
|
||||||
StorageFileEvent mEvent;
|
StorageFileEvent mEvent;
|
||||||
} AppGetFileInfo;
|
} AppGetFileInfo;
|
||||||
typedef struct app_get_file_list
|
typedef struct app_get_file_list
|
||||||
{
|
{
|
||||||
app_get_file_list()
|
app_get_file_list();
|
||||||
{
|
|
||||||
mDuration = 0;
|
|
||||||
mSize = 0;
|
|
||||||
mCreateTime_s = 0;
|
|
||||||
mType = StorageFileType::END;
|
|
||||||
}
|
|
||||||
std::string mName;
|
std::string mName;
|
||||||
int mDuration;
|
int mDuration;
|
||||||
int mSize;
|
int mSize;
|
||||||
|
@ -306,20 +257,14 @@ typedef struct app_get_file_list
|
||||||
} AppGetFileList;
|
} AppGetFileList;
|
||||||
typedef struct app_set_param_value
|
typedef struct app_set_param_value
|
||||||
{
|
{
|
||||||
app_set_param_value()
|
app_set_param_value();
|
||||||
{
|
|
||||||
mValue = -1;
|
|
||||||
}
|
|
||||||
std::string mName;
|
std::string mName;
|
||||||
int mValue;
|
int mValue;
|
||||||
} AppSetParamValue;
|
} AppSetParamValue;
|
||||||
typedef struct app_set_date_time
|
typedef struct app_set_date_time
|
||||||
{
|
{
|
||||||
app_set_date_time(const unsigned int year, const unsigned int month, const unsigned int day,
|
app_set_date_time(const unsigned int year, const unsigned int month, const unsigned int day,
|
||||||
const unsigned int hour, const unsigned int minute, const unsigned int second)
|
const unsigned int hour, const unsigned int minute, const unsigned int second);
|
||||||
: mYear(year), mMonth(month), mDay(day), mHour(hour), mMinute(minute), mSecond(second)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
const unsigned int mYear;
|
const unsigned int mYear;
|
||||||
const unsigned int mMonth;
|
const unsigned int mMonth;
|
||||||
const unsigned int mDay;
|
const unsigned int mDay;
|
||||||
|
@ -329,22 +274,24 @@ typedef struct app_set_date_time
|
||||||
} AppSetDateTime;
|
} AppSetDateTime;
|
||||||
typedef struct app_upload_file
|
typedef struct app_upload_file
|
||||||
{
|
{
|
||||||
app_upload_file(const std::string filePath, const UploadCommand command) : mFilePath(filePath), mCommand(command)
|
app_upload_file(const std::string filePath, const UploadCommand command);
|
||||||
{
|
|
||||||
mResult = ResposeResult::END;
|
|
||||||
}
|
|
||||||
const std::string mFilePath;
|
const std::string mFilePath;
|
||||||
const UploadCommand mCommand;
|
const UploadCommand mCommand;
|
||||||
ResposeResult mResult;
|
ResposeResult mResult;
|
||||||
} AppUploadFile;
|
} AppUploadFile;
|
||||||
typedef struct app_get_thumbnail
|
typedef struct app_get_thumbnail
|
||||||
{
|
{
|
||||||
app_get_thumbnail(const std::string file) : mFile(file)
|
app_get_thumbnail(const std::string file);
|
||||||
{
|
|
||||||
}
|
|
||||||
const std::string mFile;
|
const std::string mFile;
|
||||||
std::string mThumbnail;
|
std::string mThumbnail;
|
||||||
} AppGetThumbnail;
|
} AppGetThumbnail;
|
||||||
|
typedef struct app_param
|
||||||
|
{
|
||||||
|
app_param(const char *ip, const int &httpPort, const int &tcpPort);
|
||||||
|
const char *mIP;
|
||||||
|
const int mHttpPort;
|
||||||
|
const int mTcpPort;
|
||||||
|
} AppParam;
|
||||||
class VAppClient
|
class VAppClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -381,15 +328,6 @@ public:
|
||||||
virtual StatusCode GetThumbnail(AppGetThumbnail ¶m);
|
virtual StatusCode GetThumbnail(AppGetThumbnail ¶m);
|
||||||
virtual StatusCode AppClientConnected(std::shared_ptr<VAppClient> &client);
|
virtual StatusCode AppClientConnected(std::shared_ptr<VAppClient> &client);
|
||||||
};
|
};
|
||||||
typedef struct app_param
|
|
||||||
{
|
|
||||||
app_param(const char *ip, const int &httpPort, const int &tcpPort) : mIP(ip), mHttpPort(httpPort), mTcpPort(tcpPort)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
const char *mIP;
|
|
||||||
const int mHttpPort;
|
|
||||||
const int mTcpPort;
|
|
||||||
} AppParam;
|
|
||||||
class IAppManager
|
class IAppManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -14,6 +14,86 @@
|
||||||
*/
|
*/
|
||||||
#include "IAppManager.h"
|
#include "IAppManager.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
app_get_product_info::app_get_product_info()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
app_get_device_attr::app_get_device_attr()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
app_get_media_info::app_get_media_info()
|
||||||
|
{
|
||||||
|
mPort = -1;
|
||||||
|
}
|
||||||
|
app_get_sd_card_info::app_get_sd_card_info()
|
||||||
|
{
|
||||||
|
mStatus = SdCardStatus::END;
|
||||||
|
mFree = 0;
|
||||||
|
mTotal = 0;
|
||||||
|
}
|
||||||
|
app_get_battery_info::app_get_battery_info()
|
||||||
|
{
|
||||||
|
mCapacity = 0;
|
||||||
|
mChargeStatus = ChargeStatus::END;
|
||||||
|
}
|
||||||
|
app_get_param_value::app_get_param_value()
|
||||||
|
{
|
||||||
|
mRec = SwitchStatus::END;
|
||||||
|
mMicStatus = SwitchStatus::END;
|
||||||
|
}
|
||||||
|
app_get_capability::app_get_capability()
|
||||||
|
{
|
||||||
|
mGpsCapability = GpsCapability::END;
|
||||||
|
mDeviceType = DeviceType::END;
|
||||||
|
mAlbum = DashAlbum::END;
|
||||||
|
mAppLock = AppLock::END;
|
||||||
|
mDeleteLock = DeleteLock::END;
|
||||||
|
mDeviceMode = DeviceMode::END;
|
||||||
|
mPlaybackType = PlaybackType::END;
|
||||||
|
mPhotographCapability = PhotographCapability::END;
|
||||||
|
mWifiCapability = WifiCapability::END;
|
||||||
|
mFileCopy = FileCopy::END;
|
||||||
|
}
|
||||||
|
app_get_storage_info::app_get_storage_info()
|
||||||
|
{
|
||||||
|
mIndex = -1;
|
||||||
|
mType = StorageType::END;
|
||||||
|
mFree = 0;
|
||||||
|
mTotal = 0;
|
||||||
|
}
|
||||||
|
app_get_file_info::app_get_file_info()
|
||||||
|
{
|
||||||
|
mStartIndex = 0;
|
||||||
|
mStopIndex = 0;
|
||||||
|
mEvent = StorageFileEvent::END;
|
||||||
|
}
|
||||||
|
app_get_file_list::app_get_file_list()
|
||||||
|
{
|
||||||
|
mDuration = 0;
|
||||||
|
mSize = 0;
|
||||||
|
mCreateTime_s = 0;
|
||||||
|
mType = StorageFileType::END;
|
||||||
|
}
|
||||||
|
app_set_param_value::app_set_param_value()
|
||||||
|
{
|
||||||
|
mValue = -1;
|
||||||
|
}
|
||||||
|
app_set_date_time::app_set_date_time(const unsigned int year, const unsigned int month, const unsigned int day,
|
||||||
|
const unsigned int hour, const unsigned int minute, const unsigned int second)
|
||||||
|
: mYear(year), mMonth(month), mDay(day), mHour(hour), mMinute(minute), mSecond(second)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
app_upload_file::app_upload_file(const std::string filePath, const UploadCommand command)
|
||||||
|
: mFilePath(filePath), mCommand(command)
|
||||||
|
{
|
||||||
|
mResult = ResposeResult::END;
|
||||||
|
}
|
||||||
|
app_get_thumbnail::app_get_thumbnail(const std::string file) : mFile(file)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
app_param::app_param(const char *ip, const int &httpPort, const int &tcpPort)
|
||||||
|
: mIP(ip), mHttpPort(httpPort), mTcpPort(tcpPort)
|
||||||
|
{
|
||||||
|
}
|
||||||
void VAppClient::SetRecordingStatus(const RecordingStatus &status)
|
void VAppClient::SetRecordingStatus(const RecordingStatus &status)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user