1 | // tlb2java |
2 | package com.moesol.bindings.platform_sdk.data_services; |
3 | |
4 | /** |
5 | * <code>IDL: [ helpstring(""), creatable, licensed ]</code> |
6 | * <p/> |
7 | * <code>coclass Connection {<br/> |
8 | * [default] dispatch {@link _Connection}<br/> |
9 | * [default, source] dispatch {@link ConnectionEvents}<br/> |
10 | * };</code> |
11 | */ |
12 | public class Connection extends com.moesol.bindings.platform_sdk.data_services._Connection.Jni { |
13 | public static final Class TYPELIB = TYPELIB_2A75196C_D9EB_4129_B803_931327F72D5C.class; |
14 | /** |
15 | * <code>IDL: [uuid(00000514-0000-0010-8000-00AA006D2EA4)]</code> |
16 | */ |
17 | public static final com.moesol.bindings.platform_sdk.component_services.GUID CLSID = new com.moesol.bindings.platform_sdk.component_services.GUID( |
18 | 0x00000514, (short)0x0000, (short)0x0010, |
19 | new byte[] { |
20 | (byte)0x80, (byte)0x00, |
21 | (byte)0x00, (byte)0xaa, (byte)0x00, (byte)0x6d, (byte)0x2e, (byte)0xa4 |
22 | } ); |
23 | /** |
24 | * Create a new instance using <code>CLSCTX_ALL</code>. |
25 | */ |
26 | public Connection() { |
27 | MoeSolInternal.coclassConstruct(this, CLSID, com.moesol.bindings.platform_sdk.data_services._Connection.IID); |
28 | } |
29 | /** |
30 | * Create a new instance. |
31 | * @param clsctx Context in which the code that manages the newly created object will run. |
32 | * The values are taken from the enumeration <code>CLSCTX</code>. |
33 | */ |
34 | public Connection(int clsctx) { |
35 | MoeSolInternal.coclassConstruct(this, CLSID, com.moesol.bindings.platform_sdk.data_services._Connection.IID, clsctx); |
36 | } |
37 | |
38 | |
39 | /** |
40 | * Add a listener for ConnectionEvents. |
41 | */ |
42 | public int addConnectionEventsListener( ConnectionEvents l) { |
43 | return MoeSolInternal.addListener(this, l, ConnectionEvents.IID); |
44 | } |
45 | |
46 | /** |
47 | * Remove listener for ConnectionEvents. |
48 | */ |
49 | public void removeConnectionEventsListener( ConnectionEvents l) { |
50 | MoeSolInternal.removeListener(this, l, ConnectionEvents.IID); |
51 | } |
52 | |
53 | } |