Class: CP2BLMessage

Inherits:
Base
  • Object
show all
Includes:
WIN32OLE::VARIANT
Defined in:
lib/ole20110223-013209.rb

Overview

P2BLMessage Class

Constant Summary collapse

CLSID =

P2ClientGate_P2BLMessage_1

'{A9A6C936-5A12-4518-9A92-90D75B41AF18}'
PROGID =
'P2ClientGate.P2BLMessage.1'

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ CP2BLMessage

Returns a new instance of CP2BLMessage.



471
472
473
# File 'lib/ole20110223-013209.rb', line 471

def initialize opts = {}
  super PROGID, opts
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(cmd, *args) ⇒ Object



475
476
477
# File 'lib/ole20110223-013209.rb', line 475

def method_missing(cmd, *args)
  @ole.method_missing(cmd, *args)
end

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



468
469
470
# File 'lib/ole20110223-013209.rb', line 468

def lastargs
  @lastargs
end

#oleObject (readonly)

Returns the value of attribute ole.



469
470
471
# File 'lib/ole20110223-013209.rb', line 469

def ole
  @ole
end

Instance Method Details

#clsidObject



484
485
486
# File 'lib/ole20110223-013209.rb', line 484

def clsid
  CLSID
end

#DestAddrObject

property BSTR DestAddr



508
509
510
# File 'lib/ole20110223-013209.rb', line 508

def DestAddr()
  @ole._getproperty(4, [], [])
end

#DestAddr=(val) ⇒ Object

property VOID DestAddr



513
514
515
# File 'lib/ole20110223-013209.rb', line 513

def DestAddr=(val)
  @ole._setproperty(4, [val], [VT_BSTR])
end

#FieldObject

property VARIANT Field

BSTR name [IN]


519
520
521
# File 'lib/ole20110223-013209.rb', line 519

def Field
  @_Field ||= OLEProperty.new(@ole, 5, [VT_BSTR], [VT_BSTR, VT_VARIANT])
end

#FieldAsLONGLONGObject

I8 FieldAsLONGLONG: property FieldAsULONGLONG

BSTR name [IN]


525
526
527
# File 'lib/ole20110223-013209.rb', line 525

def FieldAsLONGLONG
  @_FieldAsLONGLONG ||= OLEProperty.new(@ole, 10, [VT_BSTR], [VT_BSTR, VT_I8])
end

#IdObject

property UI4 Id



498
499
500
# File 'lib/ole20110223-013209.rb', line 498

def Id()
  @ole._getproperty(2, [], [])
end

#keep_lastargs(return_value) ⇒ Object



479
480
481
482
# File 'lib/ole20110223-013209.rb', line 479

def keep_lastargs(return_value)
  @lastargs = WIN32OLE::ARGV
  return_value
end

#NameObject

property BSTR Name



493
494
495
# File 'lib/ole20110223-013209.rb', line 493

def Name()
  @ole._getproperty(1, [], [])
end

#Post(conn) ⇒ Object

method VOID Post

IP2Connection conn [IN]


538
539
540
# File 'lib/ole20110223-013209.rb', line 538

def Post(conn)
  @ole._invoke(7, [conn], [VT_BYREF|VT_DISPATCH])
end

#progidObject



488
489
490
# File 'lib/ole20110223-013209.rb', line 488

def progid
  PROGID
end

#Send(conn, timeout) ⇒ Object

method IP2BLMessage Send

IP2Connection conn [IN]
UI4 timeout [IN]


532
533
534
# File 'lib/ole20110223-013209.rb', line 532

def Send(conn, timeout)
  @ole._invoke(6, [conn, timeout], [VT_BYREF|VT_DISPATCH, VT_UI4])
end

#SendAsync(conn, timeout, event) ⇒ Object

method VOID SendAsync

IP2Connection conn [IN]
UI4 timeout [IN]
DISPATCH event [IN]


546
547
548
# File 'lib/ole20110223-013209.rb', line 546

def SendAsync(conn, timeout, event)
  @ole._invoke(8, [conn, timeout, event], [VT_BYREF|VT_DISPATCH, VT_UI4, VT_DISPATCH])
end

#SendAsync2(conn, timeout, event, event_param) ⇒ Object

method VOID SendAsync2

IP2Connection conn [IN]
UI4 timeout [IN]
DISPATCH event [IN]
I8 event_param [IN]


555
556
557
# File 'lib/ole20110223-013209.rb', line 555

def SendAsync2(conn, timeout, event, event_param)
  @ole._invoke(9, [conn, timeout, event, event_param], [VT_BYREF|VT_DISPATCH, VT_UI4, VT_DISPATCH, VT_I8])
end

#VersionObject

property BSTR Version



503
504
505
# File 'lib/ole20110223-013209.rb', line 503

def Version()
  @ole._getproperty(3, [], [])
end