VirtualBox

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

Last change on this file since 93990 was 93990, checked in by vboxsync, 3 years ago

FE/Qt: Replaced /* override */ comments with RT_OVERRIDE. bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: UIProgressTaskReadCloudMachineList.h 93990 2022-02-28 15:34:57Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIProgressTaskReadCloudMachineList class declaration.
4 */
5
6/*
7 * Copyright (C) 2020-2022 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h
19#define FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* GUI includes: */
25#include "UICloudEntityKey.h"
26#include "UIProgressTask.h"
27
28/* COM includes: */
29#include "COMEnums.h"
30#include "CCloudClient.h"
31#include "CCloudMachine.h"
32
33/** UIProgressTask extension performing read cloud machine list task. */
34class UIProgressTaskReadCloudMachineList : public UIProgressTask
35{
36 Q_OBJECT;
37
38public:
39
40 /** Constructs read cloud machine list task passing @a pParent to the base-class.
41 * @param guiCloudProfileKey Brings cloud profile description key.
42 * @param fWithRefresh Brings whether cloud machine should be refreshed as well. */
43 UIProgressTaskReadCloudMachineList(QObject *pParent, const UICloudEntityKey &guiCloudProfileKey, bool fWithRefresh);
44
45 /** Returns cloud profile description key. */
46 UICloudEntityKey cloudProfileKey() const;
47
48 /** Returns resulting cloud machine-wrapper vector. */
49 QVector<CCloudMachine> machines() const;
50
51 /** Returns error message. */
52 QString errorMessage() const;
53
54protected:
55
56 /** Creates and returns started progress-wrapper required to init UIProgressObject. */
57 virtual CProgress createProgress() RT_OVERRIDE;
58 /** Handles finished @a comProgress wrapper. */
59 virtual void handleProgressFinished(CProgress &comProgress) RT_OVERRIDE;
60
61private:
62
63 /** Holds the cloud profile description key. */
64 UICloudEntityKey m_guiCloudProfileKey;
65 /** Holds whether cloud machine should be refreshed as well. */
66 bool m_fWithRefresh;
67
68 /** Holds the cloud client-wrapper. */
69 CCloudClient m_comCloudClient;
70 /** Holds the resulting cloud machine-wrapper vector. */
71 QVector<CCloudMachine> m_machines;
72
73 /** Holds the error message. */
74 QString m_strErrorMessage;
75};
76
77#endif /* !FEQT_INCLUDED_SRC_manager_UIProgressTaskReadCloudMachineList_h */
Note: See TracBrowser for help on using the repository browser.

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