Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b652df67 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

ICameraServiceListener.h: Add STATUS_ENUMERATING enum

Change-Id: I41a9f358f63a19e7b746a9ccf24722001e5e7475
parent 96954c00
Loading
Loading
Loading
Loading
+21 −2
Original line number Original line Diff line number Diff line
@@ -28,11 +28,30 @@ class ICameraServiceListener : public IInterface
{
{
public:
public:


    /**
     * Initial status will be transmitted with onStatusChange immediately
     * after this listener is added to the service listener list.
     *
     * Allowed transitions:
     *
     *     (Any)               -> NOT_PRESENT
     *     NOT_PRESENT         -> PRESENT
     *     NOT_PRESENT         -> ENUMERATING
     *     ENUMERATING         -> PRESENT
     *     PRESENT             -> AVAILABLE
     *     AVAILABLE           -> NOT_AVAILABLE
     *     NOT_AVAILABLE       -> AVAILABLE
     *
     * A state will never immediately transition back to itself.
     */
    enum Status {
    enum Status {
        // Device physically unplugged
        // Device physically unplugged
        STATUS_PRESENT          = CAMERA_DEVICE_STATUS_PRESENT,
        // Device physically re-plugged
        STATUS_NOT_PRESENT      = CAMERA_DEVICE_STATUS_NOT_PRESENT,
        STATUS_NOT_PRESENT      = CAMERA_DEVICE_STATUS_NOT_PRESENT,
        // Device physically has been plugged in
        STATUS_PRESENT          = CAMERA_DEVICE_STATUS_PRESENT,
        // Device physically has been plugged in
        //   but it will not be connect-able until enumeration is complete
        STATUS_ENUMERATING      = CAMERA_DEVICE_STATUS_ENUMERATING,


        // Camera can be used exclusively
        // Camera can be used exclusively
        STATUS_AVAILABLE        = 0x80000000,
        STATUS_AVAILABLE        = 0x80000000,