/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 *  Copyright (C) 2008 OMC Denmark ApS.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef F2T_IABLOGON_DEF
#define F2T_IABLOGON_DEF

#pragma prefix "omc.brutus"

#include "types.idl"
#include "IMAPIAdviseSink.idl"
#include "IMAPITable.idl"
#include "IMAPIStatus.idl"

module BRUTUS {

        interface IABLogon : IUnknown {
                BRESULT GetLastError(in BRESULT ReturnCode,
                                     in BDEFINE ulFlags,
                                     out MAPIERROR lppMAPIError);

                BRESULT Logoff(in BDEFINE ulFlags);

                BRESULT OpenEntry(in ENTRYID lpEntryID,
                                  in GUID lpInterface,
                                  in BDEFINE ulFlags,
                                  out BDEFINE lpulObjType,
                                  out IUnknown lppUnk);

                BRESULT CompareEntryIDs(in ENTRYID lpEntryID1,
                                        in ENTRYID lpEntryID2,
                                        in BDEFINE ulFlags,
                                        out boolean lpulResult);

                BRESULT Advise(in ENTRYID lpEntryID,
                               in BDEFINE ulEventMask,
                               in IMAPIAdviseSink lpAdviseSink,
                               out unsigned long lpulConnection);

                BRESULT Unadvise(in unsigned long ulConnection);

                BRESULT OpenStatusEntry(in GUID lpInterface,
                                        in BDEFINE ulFlags,
                                        out BDEFINE lpulObjType,
                                        out IMAPIStatus lppEntry);

                BRESULT OpenTemplateID(in ENTRYID lpTemplateID,
                                       in BDEFINE ulTemplateFlags,
                                       in IMAPIProp lpMAPIPropData,
                                       in GUID lpInterface,
                                       out IMAPIProp lppMAPIPropNew,
                                       in IMAPIProp lpMAPIPropSibling);

                BRESULT GetOneOffTable(in BDEFINE ulFlags,
                                       out IMAPITable lppTable);

                BRESULT PrepareRecips(in BDEFINE ulBDEFINE,
                                      in SPropTagArray lpPropTagArray,
                                      in ADRLIST lpRecipList);
        };

}; // End of module BRUTUS


#endif
