Changeset 37843 in vbox
- Timestamp:
- Jul 8, 2011 12:34:18 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ExtPackManagerImpl.h
r35638 r37843 227 227 HRESULT getDefaultVrdeExtPack(Utf8Str *a_pstrExtPack); 228 228 bool isExtPackUsable(const char *a_pszExtPack); 229 void dumpAllToReleaseLog(void); 229 230 /** @} */ 230 231 -
trunk/src/VBox/Main/include/ExtPackUtil.h
r36527 r37843 85 85 { 86 86 /** The name. */ 87 RTCString strName;87 RTCString strName; 88 88 /** The description. */ 89 RTCString strDescription;89 RTCString strDescription; 90 90 /** The version string. */ 91 RTCString strVersion;91 RTCString strVersion; 92 92 /** The internal revision number. */ 93 93 uint32_t uRevision; 94 94 /** The name of the main module. */ 95 RTCString strMainModule;95 RTCString strMainModule; 96 96 /** The name of the VRDE module, empty if none. */ 97 RTCString strVrdeModule;97 RTCString strVrdeModule; 98 98 /** The number of plug-in descriptors. */ 99 99 uint32_t cPlugIns; -
trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp
r37767 r37843 3032 3032 } 3033 3033 3034 /** 3035 * Dumps all extension packs to the release log. 3036 */ 3037 void ExtPackManager::dumpAllToReleaseLog(void) 3038 { 3039 AutoCaller autoCaller(this); 3040 HRESULT hrc = autoCaller.rc(); 3041 if (FAILED(hrc)) 3042 return; 3043 AutoReadLock autoLock(this COMMA_LOCKVAL_SRC_POS); 3044 3045 LogRel(("Installed Extension Packs:\n")); 3046 for (ExtPackList::iterator it = m->llInstalledExtPacks.begin(); 3047 it != m->llInstalledExtPacks.end(); 3048 it++) 3049 { 3050 ExtPack::Data *pExtPackData = (*it)->m; 3051 if (pExtPackData) 3052 { 3053 if (pExtPackData->fUsable) 3054 LogRel((" %s (Version: %s r%u; VRDE Module: %s)\n", 3055 pExtPackData->Desc.strName.c_str(), 3056 pExtPackData->Desc.strVersion.c_str(), 3057 pExtPackData->Desc.uRevision, 3058 pExtPackData->Desc.strVrdeModule.c_str() )); 3059 else 3060 LogRel((" %s (Version: %s r%u; VRDE Module: %s unusable because of '%s')\n", 3061 pExtPackData->Desc.strName.c_str(), 3062 pExtPackData->Desc.strVersion.c_str(), 3063 pExtPackData->Desc.uRevision, 3064 pExtPackData->Desc.strVrdeModule.c_str(), 3065 pExtPackData->strWhyUnusable.c_str() )); 3066 } 3067 else 3068 LogRel((" pExtPackData is NULL\n")); 3069 } 3070 3071 if (!m->llInstalledExtPacks.size()) 3072 LogRel((" None installed!\n")); 3073 } 3074 3034 3075 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r37780 r37843 6404 6404 if (FAILED(rc)) 6405 6405 throw rc; 6406 6407 #if 0 6408 LogRel(("Installed Extension Packs:\n")); 6409 com::SafeIfaceArray<IExtPack> extPacks; 6410 HRESULT rc2 = mptrExtPackManager->COMGETTER(InstalledExtPacks)(ComSafeArrayAsOutParam(extPacks)); 6411 if (SUCCEEDED(rc2)) 6412 { 6413 for (size_t i = 0; i < extPacks.size(); i++) 6414 { 6415 /* Read all the properties. */ 6416 Bstr bstrName; 6417 rc2 = extPacks[i]->COMGETTER(Name)(bstrName.asOutParam()); 6418 Bstr bstrVersion; 6419 rc2 = extPacks[i]->COMGETTER(Version)(bstrVersion.asOutParam()); 6420 ULONG uRevision = 0; 6421 rc2 = extPacks[i]->COMGETTER(Revision)(&uRevision); 6422 Bstr bstrVrdeModule; 6423 rc2 = extPacks[i]->COMGETTER(VRDEModule)(bstrVrdeModule.asOutParam()); 6424 BOOL fUsable; 6425 rc2 = extPacks[i]->COMGETTER(Usable)(&fUsable); 6426 Bstr bstrWhy; 6427 rc2 = extPacks[i]->COMGETTER(WhyUnusable)(bstrWhy.asOutParam()); 6428 6429 /* Display them. */ 6430 if (i) 6431 LogRel(("\n")); 6432 LogRel((" %lS (Version: %lS r%u; VRDE Module: %lS", 6433 bstrName.raw(), bstrVersion.raw(), uRevision, bstrVrdeModule.raw())); 6434 if (!fUsable) 6435 LogRel(("; unusable because of '%s'", bstrWhy.raw())); 6436 LogRel((")\n")); 6437 } 6438 if (!extPacks.size()) 6439 LogRel((" None inststalled!\n")); 6440 } 6441 else 6442 LogRel((" Cannot retrieve this information (%Rhrc)!\n", rc2)); 6443 #endif 6406 mptrExtPackManager->dumpAllToReleaseLog(); 6444 6407 6445 6408 #ifdef RT_OS_SOLARIS
Note:
See TracChangeset
for help on using the changeset viewer.