Changeset 29230 in vbox for trunk/src/libs/xpcom18a4/java
- Timestamp:
- May 7, 2010 7:29:18 PM (15 years ago)
- Location:
- trunk/src/libs/xpcom18a4/java/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/java/src/nsJavaXPCOMGlue.cpp
r29212 r29230 133 133 { 134 134 mOuter = aOuter; 135 //if (mOuter)136 // mOuter->AddRef();137 135 mII = ii; 138 136 } … … 140 138 virtual ~nsXPTCJStub() 141 139 { 142 //if (mOuter)143 // mOuter->Release();144 140 } 145 141 … … 147 143 { 148 144 *info = mII; 145 (*info)->AddRef(); 149 146 return NS_OK; 150 147 } … … 172 169 NS_IMETHODIMP nsXPTCJStub::QueryInterface(REFNSIID aIID, void** aInstancePtr) 173 170 { 174 nsIID* mIID; 171 nsIID* mIID; 175 172 mII->GetInterfaceIID(&mIID); 176 173 -
trunk/src/libs/xpcom18a4/java/src/org/virtualbox/VirtualBoxManager.java
r29212 r29230 98 98 } 99 99 100 public boolean startVm(String name, int timeout)100 public boolean startVm(String name, String type, int timeout) 101 101 { 102 102 IMachine m = vbox.findMachine(name); … … 107 107 108 108 String mid = m.getId(); 109 String type = "gui"; 109 if (type == null) 110 type = "gui"; 110 111 IProgress p = vbox.openRemoteSession(session, mid, type, ""); 111 112 progressBar(p, timeout); … … 123 124 mozilla.waitForEvents(tmo); 124 125 } 125 126 public ILocalOwner makeWrapper(nsISupports obj)127 {128 129 ILocalOwner lo = (ILocalOwner) this.componentManager130 .createInstanceByContractID("@virtualbox.org/CallbackWrapper;1",131 null,132 ILocalOwner.ILOCALOWNER_IID);133 lo.setLocalObject(obj);134 return lo;135 }136 137 public IVirtualBoxCallback makeVirtualBoxCallback(IVirtualBoxCallback obj)138 {139 ILocalOwner lo = makeWrapper(obj);140 return (IVirtualBoxCallback)lo.queryInterface(IVirtualBoxCallback.IVIRTUALBOXCALLBACK_IID);141 }142 126 }
Note:
See TracChangeset
for help on using the changeset viewer.