1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
4 | * UIMachineLogicSeamless class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2010 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef __UIMachineLogicSeamless_h__
|
---|
20 | #define __UIMachineLogicSeamless_h__
|
---|
21 |
|
---|
22 | /* Local includes */
|
---|
23 | #include "UIMachineLogic.h"
|
---|
24 |
|
---|
25 | /* Local forwards */
|
---|
26 | class UIActionsPool;
|
---|
27 | class UIMultiScreenLayout;
|
---|
28 |
|
---|
29 | class UIMachineLogicSeamless : public UIMachineLogic
|
---|
30 | {
|
---|
31 | Q_OBJECT;
|
---|
32 |
|
---|
33 | protected:
|
---|
34 |
|
---|
35 | /* Seamless machine logic constructor/destructor: */
|
---|
36 | UIMachineLogicSeamless(QObject *pParent,
|
---|
37 | UISession *pSession,
|
---|
38 | UIActionsPool *pActionsPool);
|
---|
39 | virtual ~UIMachineLogicSeamless();
|
---|
40 |
|
---|
41 | bool checkAvailability();
|
---|
42 | void initialize();
|
---|
43 |
|
---|
44 | int hostScreenForGuestScreen(int screenId) const;
|
---|
45 |
|
---|
46 | private:
|
---|
47 |
|
---|
48 | /* Prepare helpers: */
|
---|
49 | void prepareActionGroups();
|
---|
50 | void prepareMachineWindows();
|
---|
51 |
|
---|
52 | /* Cleanup helpers: */
|
---|
53 | void cleanupMachineWindows();
|
---|
54 | void cleanupActionGroups();
|
---|
55 |
|
---|
56 | UIMultiScreenLayout *m_pScreenLayout;
|
---|
57 |
|
---|
58 | /* Friend classes: */
|
---|
59 | friend class UIMachineLogic;
|
---|
60 | friend class UIMachineWindowSeamless;
|
---|
61 | friend class UIMachineViewSeamless;
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif // __UIMachineLogicSeamless_h__
|
---|
65 |
|
---|