- Timestamp:
- Dec 14, 2010 3:20:30 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp
r35079 r35094 2126 2126 } 2127 2127 2128 void VBoxProblemReporter::cannotOpenExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent /* = 0 */)2128 void VBoxProblemReporter::cannotOpenExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent) 2129 2129 { 2130 2130 message (pParent ? pParent : mainWindowShown(), … … 2134 2134 } 2135 2135 2136 void VBoxProblemReporter::badExtPackFile(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent /* = 0 */)2136 void VBoxProblemReporter::badExtPackFile(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent) 2137 2137 { 2138 2138 message (pParent ? pParent : mainWindowShown(), … … 2142 2142 } 2143 2143 2144 void VBoxProblemReporter::cannotInstallExtPack(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent /* = 0 */)2144 void VBoxProblemReporter::cannotInstallExtPack(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent) 2145 2145 { 2146 2146 message (pParent ? pParent : mainWindowShown(), … … 2150 2150 } 2151 2151 2152 void VBoxProblemReporter::cannotUninstallExtPack(const QString &strPackName, const CExtPackManager &extPackManager, QWidget *pParent /* = 0 */)2152 void VBoxProblemReporter::cannotUninstallExtPack(const QString &strPackName, const CExtPackManager &extPackManager, QWidget *pParent) 2153 2153 { 2154 2154 message (pParent ? pParent : mainWindowShown(), … … 2159 2159 2160 2160 bool VBoxProblemReporter::confirmInstallingPackage(const QString &strPackName, const QString &strPackVersion, 2161 const QString &strPackDescription, QWidget *pParent /* = 0 */)2161 const QString &strPackDescription, QWidget *pParent) 2162 2162 { 2163 2163 return messageOkCancel (pParent ? pParent : mainWindowShown(), … … 2179 2179 bool VBoxProblemReporter::confirmReplacePackage(const QString &strPackName, const QString &strPackVersionNew, 2180 2180 const QString &strPackVersionOld, const QString &strPackDescription, 2181 QWidget *pParent /* = 0 */)2181 QWidget *pParent) 2182 2182 { 2183 2183 if (!pParent) … … 2238 2238 } 2239 2239 2240 bool VBoxProblemReporter::confirmRemovingPackage(const QString &strPackName, QWidget *pParent /* = 0 */)2240 bool VBoxProblemReporter::confirmRemovingPackage(const QString &strPackName, QWidget *pParent) 2241 2241 { 2242 2242 return messageOkCancel (pParent ? pParent : mainWindowShown(), -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h
r35079 r35094 340 340 void cannotUpdateGuestAdditions (const CProgress &aProgress, QWidget *aParent /* = NULL */) const; 341 341 342 void cannotOpenExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent = 0);343 void badExtPackFile(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent = 0);344 void cannotInstallExtPack(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent = 0);345 void cannotUninstallExtPack(const QString &strPackName, const CExtPackManager &extPackManager, QWidget *pParent = 0);346 bool confirmInstallingPackage(const QString &strPackName, const QString &strPackVersion, const QString &strPackDescription, QWidget *pParent = 0);342 void cannotOpenExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent); 343 void badExtPackFile(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent); 344 void cannotInstallExtPack(const QString &strFilename, const CExtPackFile &extPackFile, QWidget *pParent); 345 void cannotUninstallExtPack(const QString &strPackName, const CExtPackManager &extPackManager, QWidget *pParent); 346 bool confirmInstallingPackage(const QString &strPackName, const QString &strPackVersion, const QString &strPackDescription, QWidget *pParent); 347 347 bool confirmReplacePackage(const QString &strPackName, const QString &strPackVersionNew, const QString &strPackVersionOld, 348 const QString &strPackDescription, QWidget *pParent = 0);349 bool confirmRemovingPackage(const QString &strPackName, QWidget *pParent = 0);350 void notifyAboutExtPackInstalled(const QString &strPackName, QWidget *pParent = 0);348 const QString &strPackDescription, QWidget *pParent); 349 bool confirmRemovingPackage(const QString &strPackName, QWidget *pParent); 350 void notifyAboutExtPackInstalled(const QString &strPackName, QWidget *pParent); 351 351 352 352 void warnAboutIncorrectPort(QWidget *pParent) const; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r35083 r35094 148 148 { 149 149 QString strPackVersionCur = QString("%1r%2").arg(extPackCur.GetVersion()).arg(extPackCur.GetRevision()); 150 if (!vboxProblem().confirmReplacePackage(strPackName, strPackVersion, strPackVersionCur, strPackDescription ))150 if (!vboxProblem().confirmReplacePackage(strPackName, strPackVersion, strPackVersionCur, strPackDescription, pParent)) 151 151 return; 152 152 } … … 156 156 else 157 157 { 158 if (!vboxProblem().confirmInstallingPackage(strPackName, strPackVersion, strPackDescription ))158 if (!vboxProblem().confirmInstallingPackage(strPackName, strPackVersion, strPackDescription, pParent)) 159 159 return; 160 160 }
Note:
See TracChangeset
for help on using the changeset viewer.