VirtualBox

Changeset 108566 in vbox


Ignore:
Timestamp:
Mar 17, 2025 5:35:54 AM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167971
Message:

bugref:10806. Excluded Machine, Medium, Session support. Only Progress support.

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageObjectTracker.cpp

    r107261 r108566  
    4646std::map <com::Utf8Str, supIfaces_T> mapInterfaceNameToEnum = {
    4747    {"IProgress", kProgress},
    48     {"ISession", kSession},
    49     {"IMedium", kMedium},
    50     {"IMachine", kMachine}
    5148};
    5249
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r106976 r108566  
    103103    mClientTokenHolder = NULL;
    104104
    105     setTracked(18000, 60);//5 hours, 1 hour
    106 
    107105    /* Confirm a successful initialization when it's the case */
    108106    autoInitSpan.setSucceeded();
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r108521 r108566  
    304304{
    305305    LogFlowThisFunc(("\n"));
    306     setTracked(0, 7200);//infinite, 2 hours
    307306    return BaseFinalConstruct();
    308307}
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r107488 r108566  
    986986    vrc = VDIfTcpNetInstDefaultCreate(&m->hTcpNetInst, &m->vdImageIfaces);
    987987    AssertRCReturn(vrc, E_FAIL);
    988 
    989     setTracked(0, 7200);//infinite, 2 hours
    990988
    991989    return BaseFinalConstruct();
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r108046 r108566  
    66186618        return setError(E_INVALIDARG, tr("The provided progress object GUID is invalid"));
    66196619
    6620 #if 0 /** @todo def VBOX_WITH_MAIN_OBJECT_TRACKER - never used */
     6620#ifdef VBOX_WITH_MAIN_OBJECT_TRACKER //0 /** @todo def VBOX_WITH_MAIN_OBJECT_TRACKER - never used */
    66216621    std::vector<com::Utf8Str> lObjIdMap;
    66226622    gTrackedObjectsCollector.getObjIdsByClassIID(IID_IProgress, lObjIdMap);
     
    66366636                com::Bstr reqId(aId.toString());
    66376637                Bstr foundId;
    6638                 hrc = pProgress->COMGETTER(Id)(foundId.asOutParam());
     6638                pProgress->COMGETTER(Id)(foundId.asOutParam());
    66396639                if (reqId == foundId)
    66406640                {
     
    66446644                    BOOL aCanceled;
    66456645                    pProgress->COMGETTER(Canceled)(&aCanceled);
    6646                     LogRel(("Requested progress was found:\n  id %s\n  completed %s\n  canceled %s\n",
     6646                    Log2(("Requested progress was found:\n  id %s\n  completed %s\n  canceled %s\n",
    66476647                            aId.toString().c_str(),
    66486648                            aCompleted ? "True" : "False",
     
    66726672}
    66736673
     6674/**
     6675 * Get the tracked object by the Id.
     6676 *
     6677 * @param aTrObjId  tracked object Id
     6678 * @param aPIface  returns the ComPtr<IUnknown> if the object is found
     6679 * @param aState  returns TrackedObjectState_T - the actual state of the found
     6680 *                object
     6681 * @param aCreationTime  returns the creation time of the object
     6682 * @param aDeletionTime  returns the deletion time of the object
     6683 *
     6684 * @return HRESULT
     6685 */
    66746686HRESULT VirtualBox::getTrackedObject(const com::Utf8Str &aTrObjId,
    66756687                                     ComPtr<IUnknown> &aPIface,
     
    66926704            *aDeletionTime = RTTimeSpecGetMilli(&time);
    66936705        }
    6694         /** @todo aDeletionTime isn't set */
     6706        else
     6707            /* aDeletionTime is set to 0 */
     6708            *aDeletionTime = 0;
    66956709    }
    66966710
     
    67076721static std::map<com::Utf8Str, com::Utf8Str> const g_lMapInterfaceNameToIID = {
    67086722    {"IProgress", Guid(IID_IProgress).toString()},
    6709     {"ISession", Guid(IID_ISession).toString()},
    6710     {"IMedium", Guid(IID_IMedium).toString()},
    6711     {"IMachine", Guid(IID_IMachine).toString()}
    67126723};
    67136724#endif
Note: See TracChangeset for help on using the changeset viewer.

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