| 372 | }; |
| 373 | |
| 374 | class JEvents final : public Firebird::RefCntIface<Firebird::IEventsImpl<JEvents, Firebird::CheckStatusWrapper> > |
| 375 | { |
| 376 | public: |
| 377 | // IEvents implementation |
| 378 | int release() override; |
| 379 | void cancel(Firebird::CheckStatusWrapper* status) override; |
| 380 | void deprecatedCancel(Firebird::CheckStatusWrapper* status) override; |
| 381 | |
| 382 | public: |
| 383 | JEvents(int aId, StableAttachmentPart* sa, Firebird::IEventCallback* aCallback); |
| 384 | |
| 385 | JEvents* getHandle() throw() |
| 386 | { |
| 387 | return this; |
| 388 | } |
| 389 | |
| 390 | StableAttachmentPart* getAttachment() |
| 391 | { |
| 392 | return sAtt; |
| 393 | } |
| 394 | |
| 395 | private: |
| 396 | int id; |
| 397 | Firebird::RefPtr<StableAttachmentPart> sAtt; |
| 398 | Firebird::RefPtr<Firebird::IEventCallback> callback; |
| 399 | |
| 400 | void freeEngineData(Firebird::CheckStatusWrapper* status); |
| 401 | }; |
| 402 | |
| 403 | class JAttachment final : |
| 404 | public Firebird::RefCntIface<Firebird::IAttachmentImpl<JAttachment, Firebird::CheckStatusWrapper> > |