VirtualBox

Changeset 52510 in vbox


Ignore:
Timestamp:
Aug 28, 2014 11:46:54 AM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Runtime UI: UICocoaApplication coding-style update, doxygen.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaApplication.h

    r52509 r52510  
    44
    55/*
    6  * Copyright (C) 2009-2010 Oracle Corporation
     6 * Copyright (C) 2009-2014 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4343typedef void (*PfnNativeNotificationCallbackForQWidget)(const QString &strNativeNotificationName, QWidget *pWidget);
    4444
    45 /* C++ singleton for our private NSApplication object */
     45/* C++ singleton for our private NSApplication object. */
    4646class UICocoaApplication
    4747{
    4848public:
    4949
     50    /** Returns singleton access instance. */
    5051    static UICocoaApplication* instance();
    51     void hide();
     52
     53    /** Destructor. */
    5254    ~UICocoaApplication();
    5355
     56    /** Hides the application. */
     57    void hide();
     58
     59    /** Register native @a pfnCallback of the @a pvUser taking event @a fMask into account. */
    5460    void registerForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser);
     61    /** Unregister native @a pfnCallback of the @a pvUser taking event @a fMask into account. */
    5562    void unregisterForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser);
    5663
     
    5966    /** Unregister passed @a pWidget from native notification @a strNativeNotificationName. */
    6067    void unregisterFromNotificationOfWindow(const QString &strNativeNotificationName, QWidget *pWidget);
     68
    6169    /** Redirects native notification @a pstrNativeNotificationName for window @a pWindow to registered listener. */
    6270    void nativeNotificationProxyForWidget(NativeNSStringRef pstrNativeNotificationName, NativeNSWindowRef pWindow);
     
    6472private:
    6573
     74    /** Constructor. */
    6675    UICocoaApplication();
     76
     77    /** Holds the singleton access instance. */
    6778    static UICocoaApplication *m_pInstance;
     79
     80    /** Holds the private NSApplication instance. */
    6881    NativeUICocoaApplicationPrivateRef m_pNative;
     82    /** Holds the private NSAutoreleasePool instance. */
    6983    NativeNSAutoreleasePoolRef m_pPool;
    7084
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaApplication.mm

    r52509 r52510  
    55
    66/*
    7  * Copyright (C) 2009-2010 Oracle Corporation
     7 * Copyright (C) 2009-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    208208}
    209209
    210 void UICocoaApplication::hide()
    211 {
    212     [m_pNative hide:m_pNative];
    213 }
    214 
    215210UICocoaApplication::UICocoaApplication()
    216211{
     
    230225}
    231226
     227void UICocoaApplication::hide()
     228{
     229    [m_pNative hide:m_pNative];
     230}
     231
    232232void UICocoaApplication::registerForNativeEvents(uint32_t fMask, PFNVBOXCACALLBACK pfnCallback, void *pvUser)
    233233{
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