Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files94
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- graphics/
- Makefile.kup
- UIAddDiskEncryptionPasswordDialog.cpp
- UIAddDiskEncryptionPasswordDialog.h
- UIApplianceEditorWidget.cpp
- UIApplianceEditorWidget.h
- UIApplianceExportEditorWidget.cpp
- UIApplianceExportEditorWidget.h
- UIApplianceImportEditorWidget.cpp
- UIApplianceImportEditorWidget.h
- UIAudioControllerEditor.cpp
- UIAudioControllerEditor.h
- UIAudioHostDriverEditor.cpp
- UIAudioHostDriverEditor.h
- UIBaseMemoryEditor.cpp
- UIBaseMemoryEditor.h
- UIBaseMemorySlider.cpp
- UIBaseMemorySlider.h
- UIBootOrderEditor.cpp
- UIBootOrderEditor.h
- UIEmptyFilePathSelector.cpp
- UIEmptyFilePathSelector.h
- UIFilePathSelector.cpp
- UIFilePathSelector.h
- UIFilmContainer.cpp
- UIFilmContainer.h
- UIFormEditorWidget.cpp
- UIFormEditorWidget.h
- UIGraphicsControllerEditor.cpp
- UIGraphicsControllerEditor.h
- UIGuestOSTypeSelectionButton.cpp
- UIGuestOSTypeSelectionButton.h
- UIHostComboEditor.cpp
- UIHostComboEditor.h
- UIHotKeyEditor.cpp
- UIHotKeyEditor.h
- UILineTextEdit.cpp
- UILineTextEdit.h
- UIMediaComboBox.cpp
- UIMediaComboBox.h
- UIMediumSizeEditor.cpp
- UIMediumSizeEditor.h
- UIMenuBar.cpp
- UIMenuBar.h
- UIMenuBarEditorWindow.cpp
- UIMenuBarEditorWindow.h
- UIMenuToolBar.cpp
- UIMenuToolBar.h
- UIMiniToolBar.cpp
- UIMiniToolBar.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Frontends/VirtualBox/src/widgets/UIStatusBarEditorWindow.h
Text · 6,075 bytes/* $Id: UIStatusBarEditorWindow.h $ */
/** @file
* VBox Qt GUI - UIStatusBarEditorWindow class declaration.
*/
/*
* Copyright (C) 2014-2020 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef FEQT_INCLUDED_SRC_widgets_UIStatusBarEditorWindow_h
#define FEQT_INCLUDED_SRC_widgets_UIStatusBarEditorWindow_h
#ifndef RT_WITHOUT_PRAGMA_ONCE
# pragma once
#endif
/* Qt includes: */
#include <QList>
#include <QMap>
#include <QUuid>
/* GUI includes: */
#include "QIWithRetranslateUI.h"
#include "UIExtraDataDefs.h"
#include "UILibraryDefs.h"
#include "UISlidingToolBar.h"
/* Forward declarations: */
class QCheckBox;
class QDragEnterEvent;
class QDragLeaveEvent;
class QDragMoveEvent;
class QDropEvent;
class QHBoxLayout;
class QPaintEvent;
class QString;
class QWidget;
class QIToolButton;
class UIMachineWindow;
class UIStatusBarEditorButton;
/** UISlidingToolBar subclass
* providing user with possibility to edit status-bar layout. */
class SHARED_LIBRARY_STUFF UIStatusBarEditorWindow : public UISlidingToolBar
{
Q_OBJECT;
public:
/** Constructs sliding toolbar passing @a pParent to the base-class. */
UIStatusBarEditorWindow(UIMachineWindow *pParent);
};
/** QWidget subclass
* used as status-bar editor widget. */
class SHARED_LIBRARY_STUFF UIStatusBarEditorWidget : public QIWithRetranslateUI2<QWidget>
{
Q_OBJECT;
signals:
/** Notifies about Cancel button click. */
void sigCancelClicked();
public:
/** Constructs status-bar editor widget passing @a pParent to the base-class.
* @param fStartedFromVMSettings Brings whether 'this' is a part of VM settings.
* @param uMachineID Brings the machine ID to be used by the editor. */
UIStatusBarEditorWidget(QWidget *pParent,
bool fStartedFromVMSettings = true,
const QUuid &uMachineID = QUuid());
/** Returns the machine ID instance. */
const QUuid &machineID() const { return m_uMachineID; }
/** Defines the @a uMachineID instance. */
void setMachineID(const QUuid &uMachineID);
/** Returns whether the status-bar enabled. */
bool isStatusBarEnabled() const;
/** Defines whether the status-bar @a fEnabled. */
void setStatusBarEnabled(bool fEnabled);
/** Returns status-bar indicator restrictions. */
const QList<IndicatorType> &statusBarIndicatorRestrictions() const { return m_restrictions; }
/** Returns status-bar indicator order. */
const QList<IndicatorType> &statusBarIndicatorOrder() const { return m_order; }
/** Defines status-bar indicator @a restrictions and @a order. */
void setStatusBarConfiguration(const QList<IndicatorType> &restrictions, const QList<IndicatorType> &order);
protected:
/** Handles translation event. */
virtual void retranslateUi() /* override */;
/** Handles paint @a pEvent. */
virtual void paintEvent(QPaintEvent *pEvent) /* override */;
/** Handles drag-enter @a pEvent. */
virtual void dragEnterEvent(QDragEnterEvent *pEvent) /* override */;
/** Handles drag-move @a pEvent. */
virtual void dragMoveEvent(QDragMoveEvent *pEvent) /* override */;
/** Handles drag-leave @a pEvent. */
virtual void dragLeaveEvent(QDragLeaveEvent *pEvent) /* override */;
/** Handles drop @a pEvent. */
virtual void dropEvent(QDropEvent *pEvent) /* override */;
private slots:
/** Handles configuration change. */
void sltHandleConfigurationChange(const QUuid &uMachineID);
/** Handles button click. */
void sltHandleButtonClick();
/** Handles drag object destroy. */
void sltHandleDragObjectDestroy();
private:
/** Prepares all. */
void prepare();
/** Prepares status-buttons. */
void prepareStatusButtons();
/** Prepares status-button of certain @a enmType. */
void prepareStatusButton(IndicatorType enmType);
/** Returns position for passed @a enmType. */
int position(IndicatorType enmType) const;
/** @name General
* @{ */
/** Holds whether 'this' is prepared. */
bool m_fPrepared;
/** Holds whether 'this' is a part of VM settings. */
bool m_fStartedFromVMSettings;
/** Holds the machine ID instance. */
QUuid m_uMachineID;
/** @} */
/** @name Contents
* @{ */
/** Holds the main-layout instance. */
QHBoxLayout *m_pMainLayout;
/** Holds the button-layout instance. */
QHBoxLayout *m_pButtonLayout;
/** Holds the close-button instance. */
QIToolButton *m_pButtonClose;
/** Holds the enable-checkbox instance. */
QCheckBox *m_pCheckBoxEnable;
/** Holds status-bar buttons. */
QMap<IndicatorType, UIStatusBarEditorButton*> m_buttons;
/** @} */
/** @name Contents: Restrictions
* @{ */
/** Holds the cached status-bar button restrictions. */
QList<IndicatorType> m_restrictions;
/** @} */
/** @name Contents: Order
* @{ */
/** Holds the cached status-bar button order. */
QList<IndicatorType> m_order;
/** Holds the token-button to drop dragged-button nearby. */
UIStatusBarEditorButton *m_pButtonDropToken;
/** Holds whether dragged-button should be dropped <b>after</b> the token-button. */
bool m_fDropAfterTokenButton;
/** @} */
};
#endif /* !FEQT_INCLUDED_SRC_widgets_UIStatusBarEditorWindow_h */