|
| 1 | +# Image manager |
| 2 | + |
| 3 | +Image manager stores update item images and provide update item image info for other modules. |
| 4 | + |
| 5 | +It implements the following interfaces: |
| 6 | + |
| 7 | +* [aos::cm::updatemanager::UpdateItemManagerItf]() - update item manager for [updatemanager]() module; |
| 8 | +* [aos::cm::launcher::UpdateItemProviderItf]() - update item provider for [launcher]() module; |
| 9 | +* [aos::cm::smcontroller::UpdateImageProviderItf]() - update image provider for [smcontroller]() module; |
| 10 | +* [aos::cm::imagemanager::UpdateItemNotifierItf]() - update item notifier to notify other modules about update items |
| 11 | + action. |
| 12 | + |
| 13 | +It requires the following interfaces: |
| 14 | + |
| 15 | +* ... |
| 16 | + |
| 17 | +```mermaid |
| 18 | +classDiagram |
| 19 | + class ImageManager["aos::cm::imagemanager::ImageManager"] { |
| 20 | + } |
| 21 | +
|
| 22 | + class UpdateItemManagerItf["aos::cm::updatemanager::UpdateItemManagerItf"] { |
| 23 | + <<interface>> |
| 24 | + } |
| 25 | +
|
| 26 | + class UpdateItemProviderItf ["aos::cm::launcher::UpdateItemProviderItf"] { |
| 27 | + <<interface>> |
| 28 | + } |
| 29 | + |
| 30 | + class UpdateImageProviderItf ["aos::cm::smcontroller::UpdateImageProviderItf"] { |
| 31 | + <<interface>> |
| 32 | + } |
| 33 | +
|
| 34 | + class UpdateItemNotifierItf ["aos::cm::imagemanager::UpdateItemNotifierItf"] { |
| 35 | + <<interface>> |
| 36 | + } |
| 37 | +
|
| 38 | + ImageManager <|.. UpdateItemManagerItf |
| 39 | + ImageManager <|.. UpdateItemProviderItf |
| 40 | + ImageManager <|.. UpdateImageProviderItf |
| 41 | + ImageManager <|.. UpdateItemNotifierItf |
| 42 | +``` |
| 43 | + |
| 44 | +## aos::cm::updatemanager::UpdateItemManagerItf |
| 45 | + |
| 46 | +### GetUpdateItemsStatuses |
| 47 | + |
| 48 | +Returns currently installed images statuses for each update item. |
| 49 | + |
| 50 | +### InstallUpdateItem |
| 51 | + |
| 52 | +Installs update item images. |
| 53 | + |
| 54 | +### UninstallUpdateItem |
| 55 | + |
| 56 | +Uninstalls update item images. |
| 57 | + |
| 58 | +### RevertUpdateItem |
| 59 | + |
| 60 | +Reverts update item images. |
| 61 | + |
| 62 | +## aos::cm::launcher::UpdateItemProviderItf |
| 63 | + |
| 64 | +### GetServiceNetworkData |
| 65 | + |
| 66 | +Returns network data for specified service. |
| 67 | + |
| 68 | +### GetUpdateItemVersion |
| 69 | + |
| 70 | +Returns currently installed update item version. |
| 71 | + |
| 72 | +## aos::cm::smcontroller::UpdateImageProviderItf |
| 73 | + |
| 74 | +### GetUpdateImageInfo |
| 75 | + |
| 76 | +Returns update image info for specified platform. |
| 77 | + |
| 78 | +## aos::cm::imagemanager::UpdateItemNotifierItf |
| 79 | + |
| 80 | +Notifies subscribers about changing update item states. |
| 81 | + |
| 82 | +### SubscribeListener |
| 83 | + |
| 84 | +Subscribes to changing update item states. |
| 85 | + |
| 86 | +### UnsubscribeListener |
| 87 | + |
| 88 | +Unsubscribes from changing update item states. |
0 commit comments