MouseImpl.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2008 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* 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 ____H_MOUSEIMPL
#define ____H_MOUSEIMPL
#include "VirtualBoxBase.h"
#include "ConsoleEvents.h"
#include "ConsoleImpl.h"
/** Maximum number of devices supported */
enum { MOUSE_MAX_DEVICES = 3 };
/** Mouse driver instance data. */
/** Simple mouse event class. */
{
bool isValid()
{
return state != -1;
}
/* Note: dw is the horizontal scroll wheel */
};
// template instantiation
#ifndef VBOXBFE_WITHOUT_COM
,
#endif
{
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IMouse properties
// IMouse methods
// for VirtualBoxSupportErrorInfoImpl
{
return mParent;
}
// for VMMDevInterface
void onVMMDevCanAbsChange(bool)
{
}
void onVMMDevNeedsHostChange(bool needsHost)
{
}
void sendMouseCapsNotifications(void);
#ifdef VBOXBFE_WITHOUT_COM
#else
#endif
/** Pointer to the associated mouse driver. */
bool fVMMDevCanAbs;
bool fVMMDevNeedsHostCursor;
};
#ifdef VBOXBFE_WITHOUT_COM
/** @todo make this a member of Console */
/** @todo can we get these from the API somehow? */
enum
{
};
#endif
#endif // !____H_MOUSEIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */