Extended MAPI in DELPHI
Included Helper Classes & Objects
IMAPIAdviseSink Table wrapper object.
file path: ..\Library\Helpers
uses Windows, Contnrs, ExtendedMAPI;
TMAPITableAdvise = class(TMAPIBase) private ... protected ... public constructor Create; destructor Destroy; override; property Active: Boolean read GetActive write SetActive; property AdvisedTable: IMAPITable read GetMAPITable; procedure Advise(const MAPITable: IMAPITable); procedure UnAdvise; property ConnectionID: ULONG_PTR read FConnectionID; property OnChanged: TTableBasicEvent read FOnChanged write FOnChanged; property OnError: TTableErrorEvent read FOnError write FOnError; property OnReload: TTableBasicEvent read FOnReload write FOnReload; property OnRestrictDone: TTableBasicEvent read FOnRestrictDone write FOnRestrictDone; property OnSetColDone: TTableBasicEvent read FOnSetColDone write FOnSetColDone; property OnSortDone: TTableBasicEvent read FOnSortDone write FOnSortDone; property OnRowAdd: TTableRowAddOrModifiedEvent read FOnRowAdd write FOnRowAdd; property OnRowModified: TTableRowAddOrModifiedEvent read FOnRowModified write FOnRowModified; property OnRowDeleted: TTableRowDeletedEvent read FOnRowDeleted write FOnRowDeleted; end;
|constructor Create(const oTable: IMAPITable); virtual;
|Creates and initializes object instance from IMAPITable
|Start/Stop the notification callbacks
|Pointer to advised table
|A nonzero value that represents the successful notification registration
|Registers an advise sink object to receive notification of specified events affecting the table
procedure Advise(const MAPITable: IMAPITable);
|Cancels the sending of notifications previously set up with a call to the Advise method.
|Indicates at a high level that something about the table has changed.
|An error has occurred, usually during the processing of an asynchronous operation. Errors during the processing of the following methods can generate this event: FastSort, Sort, Set ColumnsTags, FastFilter, Filter
|The data in the table should be reloaded.
|A restriction operation initiated with an FastFilter/Filter method call has completed.
|A column setting operation initiated with an Set ColumnsTags method call has completed.
|A table sorting operation initiated with an FastSort/Sort method call has completed.
|A new row has been added to the table.
|A row has been changed. The row member contains the affected properties for the row.
|A row has been removed from the table. The propPrior member is set to nil.