VirtualBox

source: vbox/trunk/src/VBox/Main/include/FramebufferImpl.h@ 36580

Last change on this file since 36580 was 35638, checked in by vboxsync, 14 years ago

Main. QT/FE: fix long standing COM issue

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/* $Id: FramebufferImpl.h 35638 2011-01-19 19:10:49Z vboxsync $ */
2
3/** @file
4 *
5 * Frame buffer COM class implementation
6 */
7
8/*
9 * Copyright (C) 2009 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ____H_H_FRAMEBUFFERIMPL
21#define ____H_H_FRAMEBUFFERIMPL
22
23#include "VirtualBoxBase.h"
24#include "VirtualBoxImpl.h"
25
26class ATL_NO_VTABLE Framebuffer :
27 public VirtualBoxBase,
28 public VirtualBoxSupportErrorInfoImpl<Framebuffer, IFramebuffer>,
29 public VirtualBoxSupportTranslation<Framebuffer>,
30 VBOX_SCRIPTABLE_IMPL(IFramebuffer)
31{
32public:
33
34 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(Framebuffer, IFramebuffer)
35
36 DECLARE_NOT_AGGREGATABLE (Framebuffer)
37
38 DECLARE_PROTECT_FINAL_CONSTRUCT()
39
40 BEGIN_COM_MAP (Framebuffer)
41 VBOX_DEFAULT_INTERFACE_ENTRIES (IFramebuffer)
42 END_COM_MAP()
43
44 DECLARE_EMPTY_CTOR_DTOR (Framebuffer)
45
46 /* IFramebuffer properties */
47 STDMETHOD(COMGETTER(Address)) (BYTE **aAddress) = 0;
48 STDMETHOD(COMGETTER(Width)) (ULONG *aWidth) = 0;
49 STDMETHOD(COMGETTER(Height)) (ULONG *aHeight) = 0;
50 STDMETHOD(COMGETTER(BitsPerPixel)) (ULONG *aBitsPerPixel) = 0;
51 STDMETHOD(COMGETTER(BytesPerLine)) (ULONG *aBytesPerLine) = 0;
52 STDMETHOD(COMGETTER(PixelFormat)) (ULONG *aPixelFormat) = 0;
53 STDMETHOD(COMGETTER(UsesGuestVRAM)) (BOOL *aUsesGuestVRAM) = 0;
54 STDMETHOD(COMGETTER(HeightReduction)) (ULONG *aHeightReduction) = 0;
55 STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay) = 0;
56 STDMETHOD(COMGETTER(WinId)) (ULONG64 *winId) = 0;
57
58 /* IFramebuffer methods */
59 STDMETHOD(Lock)() = 0;
60 STDMETHOD(Unlock)() = 0;
61
62 STDMETHOD(RequestResize) (ULONG aScreenId, ULONG aPixelFormat,
63 BYTE *aVRAM, ULONG aBitsPerPixel, ULONG aBytesPerLine,
64 ULONG aWidth, ULONG aHeight,
65 BOOL *aFinished) = 0;
66
67 STDMETHOD(VideoModeSupported) (ULONG aWidth, ULONG aHeight, ULONG aBPP,
68 BOOL *aSupported) = 0;
69
70 STDMETHOD(GetVisibleRegion)(BYTE *aRectangles, ULONG aCount,
71 ULONG *aCountCopied) = 0;
72 STDMETHOD(SetVisibleRegion)(BYTE *aRectangles, ULONG aCount) = 0;
73
74 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand) = 0;
75
76 // for VirtualBoxSupportErrorInfoImpl
77 static const wchar_t *getComponentName() { return L"Framebuffer"; }
78
79};
80
81#endif // ____H_H_FRAMEBUFFERIMPL
82/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette