Changeset 90325 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
- Timestamp:
- Jul 24, 2021 1:21:36 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145888
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r90321 r90325 29 29 #include "CCloudClient.h" 30 30 #include "CCloudMachine.h" 31 #include "CMachine.h" 31 32 #include "CMedium.h" 32 33 #include "CVirtualSystemDescription.h" … … 108 109 /** Holds the target medium options. */ 109 110 QVector<KMediumVariant> m_variants; 111 }; 112 113 /** UINotificationProgress extension for machine copy functionality. */ 114 class SHARED_LIBRARY_STUFF UINotificationProgressMachineCopy : public UINotificationProgress 115 { 116 Q_OBJECT; 117 118 signals: 119 120 /** Notifies listeners about @a comMachine was copied. */ 121 void sigMachineCopied(const CMachine &comMachine); 122 123 public: 124 125 /** Constructs medium move notification-progress. 126 * @param comSource Brings the machine being copied. 127 * @param comTarget Brings the machine being the target. 128 * @param enmCloneMode Brings the cloning mode. 129 * @param options Brings the cloning options. */ 130 UINotificationProgressMachineCopy(const CMachine &comSource, 131 const CMachine &comTarget, 132 const KCloneMode &enmCloneMode, 133 const QVector<KCloneOptions> &options); 134 135 protected: 136 137 /** Returns object name. */ 138 virtual QString name() const /* override final */; 139 /** Returns object details. */ 140 virtual QString details() const /* override final */; 141 /** Creates and returns started progress-wrapper. */ 142 virtual CProgress createProgress(COMResult &comResult) /* override final */; 143 144 private slots: 145 146 /** Handles signal about progress being finished. */ 147 void sltHandleProgressFinished(); 148 149 private: 150 151 /** Holds the machine being copied. */ 152 CMachine m_comSource; 153 /** Holds the machine being the target. */ 154 CMachine m_comTarget; 155 /** Holds the machine cloning mode. */ 156 KCloneMode m_enmCloneMode; 157 /** Holds the target machine options. */ 158 QVector<KCloneOptions> m_options; 110 159 }; 111 160
Note:
See TracChangeset
for help on using the changeset viewer.