-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start the new PTU after a failed retry sequence #3208
Changes from 9 commits
c5a845f
c04c115
d24d1e1
c4f21ec
5a112e5
96f6b47
6a2c298
ec86a40
ca790d7
b1acdb5
e4eac44
2d7fe39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -410,6 +410,14 @@ class PolicyHandlerInterface : public VehicleDataItemProvider { | |
*/ | ||
virtual void OnAppsSearchCompleted(const bool trigger_ptu) = 0; | ||
|
||
/** | ||
* @brief Notify that new application was added to application list | ||
* @param new_app_id app_id for this application | ||
* @param policy_id policy_id for this application | ||
*/ | ||
virtual void OnAddedNewApplicationToAppList(const uint32_t new_app_id, | ||
const std::string& policy_id) = 0; | ||
|
||
/** | ||
* @brief OnAppRegisteredOnMobile allows to handle event when application were | ||
* succesfully registered on mobile device. | ||
|
@@ -652,6 +660,12 @@ class PolicyHandlerInterface : public VehicleDataItemProvider { | |
const std::string& policy_app_id, | ||
const std::string& hmi_level) = 0; | ||
|
||
/** | ||
* @brief OnPTUTimeOut the callback which is performed when PTU timeout | ||
* occurred | ||
*/ | ||
virtual void OnPTUTimeOut() = 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ydementieiev please add a description There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AKalinich-Luxoft done 1f93a08 |
||
|
||
/** | ||
* Gets all allowed module types | ||
* @param app_id unique identifier of application | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,12 @@ class UpdateStatusManager { | |
*/ | ||
void OnUpdateTimeoutOccurs(); | ||
|
||
/** | ||
* @brief Update status for next in queue application | ||
* after previous update been has finished | ||
*/ | ||
void OnUpdateForNextInQueue(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ydementieiev please update description There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AKalinich-Luxoft done f0f9ced |
||
|
||
/** | ||
* @brief Update status handler for valid PTU receiving | ||
*/ | ||
|
@@ -222,6 +228,7 @@ class UpdateStatusManager { | |
UpdateEvent last_processed_event_; | ||
bool apps_search_in_progress_; | ||
bool app_registered_from_non_consented_device_; | ||
bool last_update_was_failed_; | ||
sync_primitives::Lock apps_search_in_progress_lock_; | ||
|
||
class UpdateThreadDelegate : public threads::ThreadDelegate { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ydementieiev Move description to iface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AByzhynar leaved description only in iface c04c115ce