VirtualBox

Ignore:
Timestamp:
Oct 3, 2007 12:05:25 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25026
Message:

2332: Registration feature:

Make one Registration Dialog allowed to be run in one time (for different COM-clients: VBoxSelector & VBoxConsole's).

Location:
trunk/src/VBox/Frontends/VirtualBox/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h

    r5140 r5148  
    186186    void onExitFullscreen();
    187187
     188    void onToggleRegMenuItem (bool aEnable);
     189
    188190private:
    189191
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h

    r5128 r5148  
    133133        MachineRegisteredEventType,
    134134        ShowRegDlgEventType,
     135        ToggleRegMenuItemEvent,
    135136        SessionStateChangeEventType,
    136137        SnapshotEventType,
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r5139 r5148  
    108108};
    109109
     110class VBoxToggleRegMenuItem : public QEvent
     111{
     112public:
     113    VBoxToggleRegMenuItem (bool aEnable)
     114        : QEvent ((QEvent::Type) VBoxDefs::ToggleRegMenuItemEvent)
     115        , mEnable (aEnable)
     116        {}
     117
     118    bool mEnable;
     119};
     120
    110121class VBoxSessionStateChangeEvent : public QEvent
    111122{
     
    376387    bool showVirtualBoxLicense();
    377388#endif
    378 
    379     void checkRegistration();
    380389
    381390    CSession openSession (const QUuid &id);
     
    507516    void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
    508517    void snapshotChanged (const VBoxSnapshotEvent &e);
     518    void toggleRegMenuItem (bool aEnable);
    509519
    510520public slots:
     
    512522    bool openURL (const QString &aURL);
    513523
    514     void showRegistrationDialog();
     524    void checkRegistration (bool aForced = true);
    515525
    516526protected:
     
    518528    bool event (QEvent *e);
    519529    bool eventFilter (QObject *, QEvent *);
     530
     531    void showRegistrationDialog();
    520532
    521533private:
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxSelectorWnd.h

    r5140 r5148  
    103103    void snapshotChanged (const VBoxSnapshotEvent &e);
    104104
     105    void onToggleRegMenuItem (bool aEnable);
     106
    105107private:
    106108
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