VirtualBox

Changeset 48515 in vbox for trunk


Ignore:
Timestamp:
Sep 18, 2013 11:07:49 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89040
Message:

FE/Qt: 5105: Runtime UI: Removing unnecessary API bits.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r48510 r48515  
    21822182//           session().GetMachine().GetName().toAscii().constData());
    21832183
    2184     /* Here we have to store host LED lock states to UISession registry.
    2185      * This can be done for each keyboard separately, just keep in mind keyboard IDs.
    2186      * [void] uisession() -> setHostLockStates() can be used for that. */
     2184    /* Here we have to store host LED lock states. */
    21872185
    21882186    /* Here we have to update host LED lock states using values provided by UISession registry.
     
    21982196//           session().GetMachine().GetName().toAscii().constData());
    21992197
    2200     /* Here we have to restore host LED lock states from UISession registry.
    2201      * This can be done for each keyboard separately, just use the same keyboard IDs.
    2202      * [bool] uisession() -> getHostLockStates() can be used for that. */
     2198    /* Here we have to restore host LED lock states. */
    22032199}
    22042200
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r48510 r48515  
    464464}
    465465
    466 void UISession::setHostLockStates(const QString &strKeyboardID, bool fNum, bool fCaps, bool fScroll)
    467 {
    468     /* Acquire modifiable reference, create default value if doesn't exists: */
    469     UIKeyboardLocks &hostLock = m_hostLocks[strKeyboardID];
    470     /* Save passed values: */
    471     hostLock.m_num = fNum;
    472     hostLock.m_caps = fCaps;
    473     hostLock.m_scroll = fScroll;
    474 }
    475 
    476 void UISession::getHostLockStates(const QString &strKeyboardID, bool &fNum, bool &fCaps, bool &fScroll)
    477 {
    478     /* Acquire modifiable reference, create default value if doesn't exists: */
    479     UIKeyboardLocks &hostLock = m_hostLocks[strKeyboardID];
    480     /* Load cached values: */
    481     fNum = hostLock.m_num;
    482     fCaps = hostLock.m_caps;
    483     fScroll = hostLock.m_scroll;
    484 }
    485 
    486466bool UISession::setPause(bool fOn)
    487467{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r48510 r48515  
    7878};
    7979
    80 /* Keyboard Lock container: */
    81 struct UIKeyboardLocks
    82 {
    83     /* Constructor: */
    84     UIKeyboardLocks()
    85         : m_num(false)
    86         , m_caps(false)
    87         , m_scroll(false)
    88     {}
    89     /* Variables: */
    90     bool m_num;
    91     bool m_caps;
    92     bool m_scroll;
    93 };
    94 typedef QMap<QString, UIKeyboardLocks> UIKeyboardLocksMap;
    95 
    9680class UISession : public QObject
    9781{
     
    153137    uint numLockAdaptionCnt() const { return m_uNumLockAdaptionCnt; }
    154138    uint capsLockAdaptionCnt() const { return m_uCapsLockAdaptionCnt; }
    155     void setHostLockStates(const QString &strKeyboardID, bool fNum, bool fCaps, bool fScroll);
    156     void getHostLockStates(const QString &strKeyboardID, bool &fNum, bool &fCaps, bool &fScroll);
    157139
    158140    /* Mouse getters: */
     
    321303    uint m_uNumLockAdaptionCnt;
    322304    uint m_uCapsLockAdaptionCnt;
    323     UIKeyboardLocksMap m_hostLocks;
    324305
    325306    /* Mouse flags: */
Note: See TracChangeset for help on using the changeset viewer.

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