1 | /* $Id: UIExtension.h 103783 2024-03-11 17:29:21Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIExtension namespace declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2024 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef FEQT_INCLUDED_SRC_globals_UIExtension_h
|
---|
29 | #define FEQT_INCLUDED_SRC_globals_UIExtension_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* GUI includes: */
|
---|
35 | #include "UILibraryDefs.h"
|
---|
36 |
|
---|
37 | /* Forward declarations: */
|
---|
38 | class QString;
|
---|
39 | class QWidget;
|
---|
40 |
|
---|
41 | /** Namespace with common extension pack stuff. */
|
---|
42 | namespace UIExtension
|
---|
43 | {
|
---|
44 | /** Initiates the extension pack installation process.
|
---|
45 | * @param strFilePath Brings the extension pack file path.
|
---|
46 | * @param strDigest Brings the extension pack file digest.
|
---|
47 | * @param pParent Brings the parent dialog reference.
|
---|
48 | * @param pstrExtPackName Brings the extension pack name. */
|
---|
49 | void SHARED_LIBRARY_STUFF install(const QString &strFilePath,
|
---|
50 | const QString &strDigest,
|
---|
51 | QWidget *pParent,
|
---|
52 | QString *pstrExtPackName);
|
---|
53 |
|
---|
54 | /** Returns true if it can find at least one usable ext. pack. Else returns false. */
|
---|
55 | bool SHARED_LIBRARY_STUFF isExtentionPackInstalled();
|
---|
56 | }
|
---|
57 |
|
---|
58 | #endif /* !FEQT_INCLUDED_SRC_globals_UIExtension_h */
|
---|