VirtualBox

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

Last change on this file was 106061, checked in by vboxsync, 3 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 106061 2024-09-16 14:03:52Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIProgressTaskReadCloudMachineList class declaration.
4 */
5
6/*
7 * Copyright (C) 2020-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_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 "CCloudClient.h"
40#include "CCloudMachine.h"
41
42/** UIProgressTask extension performing read cloud machine list task. */
43class UIProgressTaskReadCloudMachineList : public UIProgressTask
44{
45 Q_OBJECT;
46
47public:
48
49 /** Constructs read cloud machine list task passing @a pParent to the base-class.
50 * @param guiCloudProfileKey Brings cloud profile description key.
51 * @param fWithRefresh Brings whether cloud machine should be refreshed as well. */
52 UIProgressTaskReadCloudMachineList(QObject *pParent, const UICloudEntityKey &guiCloudProfileKey, bool fWithRefresh);
53
54 /** Returns cloud profile description key. */
55 UICloudEntityKey cloudProfileKey() const;
56
57 /** Returns resulting cloud machine-wrapper vector. */
58 QVector<CCloudMachine> machines() const;
59
60 /** Returns error message. */
61 QString errorMessage() const;
62
63protected:
64
65 /** Creates and returns started progress-wrapper required to init UIProgressObject. */
66 virtual CProgress createProgress() RT_OVERRIDE;
67 /** Handles finished @a comProgress wrapper. */
68 virtual void handleProgressFinished(CProgress &comProgress) RT_OVERRIDE;
69
70private:
71
72 /** Holds the cloud profile description key. */
73 UICloudEntityKey m_guiCloudProfileKey;
74 /** Holds whether cloud machine should be refreshed as well. */
75 bool m_fWithRefresh;
76
77 /** Holds the cloud client-wrapper. */
78 CCloudClient m_comCloudClient;
79 /** Holds the resulting cloud machine-wrapper vector. */
80 QVector<CCloudMachine> m_machines;
81
82 /** Holds the error message. */
83 QString m_strErrorMessage;
84};
85
86#endif /* !FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h */
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