VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/manager/UIProgressTaskReadCloudMachineList.h@ 103538

Last change on this file since 103538 was 98103, checked in by vboxsync, 17 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: UIProgressTaskReadCloudMachineList.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIProgressTaskReadCloudMachineList class declaration.
4 */
5
6/*
7 * Copyright (C) 2020-2023 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_manager_UIProgressTaskReadCloudMachineList_h
29#define FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UICloudEntityKey.h"
36#include "UIProgressTask.h"
37
38/* COM includes: */
39#include "COMEnums.h"
40#include "CCloudClient.h"
41#include "CCloudMachine.h"
42
43/** UIProgressTask extension performing read cloud machine list task. */
44class UIProgressTaskReadCloudMachineList : public UIProgressTask
45{
46 Q_OBJECT;
47
48public:
49
50 /** Constructs read cloud machine list task passing @a pParent to the base-class.
51 * @param guiCloudProfileKey Brings cloud profile description key.
52 * @param fWithRefresh Brings whether cloud machine should be refreshed as well. */
53 UIProgressTaskReadCloudMachineList(QObject *pParent, const UICloudEntityKey &guiCloudProfileKey, bool fWithRefresh);
54
55 /** Returns cloud profile description key. */
56 UICloudEntityKey cloudProfileKey() const;
57
58 /** Returns resulting cloud machine-wrapper vector. */
59 QVector<CCloudMachine> machines() const;
60
61 /** Returns error message. */
62 QString errorMessage() const;
63
64protected:
65
66 /** Creates and returns started progress-wrapper required to init UIProgressObject. */
67 virtual CProgress createProgress() RT_OVERRIDE;
68 /** Handles finished @a comProgress wrapper. */
69 virtual void handleProgressFinished(CProgress &comProgress) RT_OVERRIDE;
70
71private:
72
73 /** Holds the cloud profile description key. */
74 UICloudEntityKey m_guiCloudProfileKey;
75 /** Holds whether cloud machine should be refreshed as well. */
76 bool m_fWithRefresh;
77
78 /** Holds the cloud client-wrapper. */
79 CCloudClient m_comCloudClient;
80 /** Holds the resulting cloud machine-wrapper vector. */
81 QVector<CCloudMachine> m_machines;
82
83 /** Holds the error message. */
84 QString m_strErrorMessage;
85};
86
87#endif /* !FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use