VirtualBox

Changeset 97784 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Dec 12, 2022 5:54:12 PM (2 years ago)
Author:
vboxsync
Message:

DnD/Main + FE/Qt: Moved the drag'n drop state to where it belongs, namely into the API objects representing it (and not outside within FE/Qt).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestDnDPrivate.h

    r97783 r97784  
    821821public:
    822822
     823    VBOXDNDSTATE get() { return m_enmState; } const
     824    int set(VBOXDNDSTATE enmState) { LogRel3(("DnD: State %s -> %s\n", DnDStateToStr(m_enmState), DnDStateToStr(enmState))); m_enmState = enmState; return 0; }
     825    void lock() { RTCritSectEnter(&m_CritSect); };
     826    void unlock() { RTCritSectLeave(&m_CritSect); };
     827
    823828    /** @name Guest response handling.
    824829     * @{ */
     
    856861    /** Pointer to context this class is tied to. */
    857862    void                 *m_pvCtx;
     863    RTCRITSECT            m_CritSect;
     864    /** The current state we're in. */
     865    VBOXDNDSTATE          m_enmState;
    858866    /** The DnD protocol version to use, depending on the
    859867     *  installed Guest Additions. See DragAndDropSvc.h for
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette