-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Connect from an oleobject using COM connection (VB 6, Powerbuil…
…der) To connect from an oleobject from VB 6 or Powerbuilder, we need a constructor without parameters since it is not possible to parameterize it. In addition, COM connections are not compatible with generic collections, throws an exception "function name not found". This can be solved by eliminating the generic collections, since it would not affect the current functionality, and creating a constructor without parameters. Subsequently, the QRCodeData object that is currently assigned in the constructor with parameters, would be added manually with SetQRCodeData function Resolves: #108
- Loading branch information
1 parent
b643a1f
commit 3c91f57
Showing
10 changed files
with
80 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
namespace QRCoder | ||
{ | ||
public abstract class AbstractQRCode<T> | ||
public abstract class AbstractQRCode | ||
{ | ||
protected QRCodeData QrCodeData { get; set; } | ||
|
||
protected AbstractQRCode() { | ||
} | ||
|
||
protected AbstractQRCode(QRCodeData data) { | ||
this.QrCodeData = data; | ||
} | ||
|
||
public abstract T GetGraphic(int pixelsPerModule); | ||
|
||
/// <summary> | ||
/// Set a QRCodeData object that will be used to generate QR code. Used in COM Objects connections | ||
/// </summary> | ||
/// <param name="data">Need a QRCodeData object generated by QRCodeGenerator.CreateQrCode()</param> | ||
virtual public void SetQRCodeData(QRCodeData data) { | ||
this.QrCodeData = data; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
this.QrCodeData = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters