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 files32
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- Makefile.kup
- UIChooser.cpp
- UIChooser.h
- UIChooserAbstractModel.cpp
- UIChooserAbstractModel.h
- UIChooserDefs.h
- UIChooserHandlerKeyboard.cpp
- UIChooserHandlerKeyboard.h
- UIChooserHandlerMouse.cpp
- UIChooserHandlerMouse.h
- UIChooserItem.cpp
- UIChooserItem.h
- UIChooserItemGlobal.cpp
- UIChooserItemGlobal.h
- UIChooserItemGroup.cpp
- UIChooserItemGroup.h
- UIChooserItemMachine.cpp
- UIChooserItemMachine.h
- UIChooserModel.cpp
- UIChooserModel.h
- UIChooserNode.cpp
- UIChooserNode.h
- UIChooserNodeGlobal.cpp
- UIChooserNodeGlobal.h
- UIChooserNodeGroup.cpp
- UIChooserNodeGroup.h
- UIChooserNodeMachine.cpp
- UIChooserNodeMachine.h
- UIChooserSearchWidget.cpp
- UIChooserSearchWidget.h
- UIChooserView.cpp
- UIChooserView.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.h
Text · 2,174 bytes/* $Id: UIChooserHandlerKeyboard.h $ */
/** @file
* VBox Qt GUI - UIChooserHandlerKeyboard class declaration.
*/
/*
* Copyright (C) 2012-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_manager_chooser_UIChooserHandlerKeyboard_h
#define FEQT_INCLUDED_SRC_manager_chooser_UIChooserHandlerKeyboard_h
#ifndef RT_WITHOUT_PRAGMA_ONCE
# pragma once
#endif
/* Qt includes: */
#include <QObject>
#include <QMap>
/* Forward declarations: */
class UIChooserModel;
class QKeyEvent;
/* Keyboard event type: */
enum UIKeyboardEventType
{
UIKeyboardEventType_Press,
UIKeyboardEventType_Release
};
/* Item shift direction: */
enum UIItemShiftDirection
{
UIItemShiftDirection_Up,
UIItemShiftDirection_Down
};
/** Item shift types. */
enum UIItemShiftType
{
UIItemShiftSize_Item,
UIItemShiftSize_Full
};
/* Keyboard handler for graphics selector: */
class UIChooserHandlerKeyboard : public QObject
{
Q_OBJECT;
public:
/* Constructor: */
UIChooserHandlerKeyboard(UIChooserModel *pParent);
/* API: Model keyboard-event handler delegate: */
bool handle(QKeyEvent *pEvent, UIKeyboardEventType type) const;
private:
/* API: Model wrapper: */
UIChooserModel* model() const;
/* Helpers: Model keyboard-event handler delegates: */
bool handleKeyPress(QKeyEvent *pEvent) const;
bool handleKeyRelease(QKeyEvent *pEvent) const;
/* Helper: Item shift delegate: */
void shift(UIItemShiftDirection enmDirection, UIItemShiftType enmShiftType) const;
/* Variables: */
UIChooserModel *m_pModel;
QMap<int, UIItemShiftType> m_shiftMap;
};
#endif /* !FEQT_INCLUDED_SRC_manager_chooser_UIChooserHandlerKeyboard_h */