mapinotifsink.i 463 B

1234567891011121314151617
  1. // Force constructor on MAPINotifSink even though we're not exposing all abstract
  2. // methods
  3. %feature("notabstract") MAPINotifSink;
  4. class MAPINotifSink : public IMAPIAdviseSink {
  5. public:
  6. HRESULT GetNotifications(ULONG *OUTPUTC, LPNOTIFICATION *OUTPUTP, BOOL fNonBlock, ULONG timeout_msec);
  7. %extend {
  8. MAPINotifSink() {
  9. MAPINotifSink *lpSink = NULL;
  10. MAPINotifSink::Create(&lpSink);
  11. return lpSink;
  12. };
  13. ~MAPINotifSink() { self->Release(); }
  14. }
  15. };