/* -*- 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_IMAPICONTAINER_DEF
#define F2T_IMAPICONTAINER_DEF

#pragma prefix "omc.brutus"

#include "types.idl"
#include "IMAPIProp.idl"
#include "IMAPITable.idl"

module BRUTUS {

        // Abstract class, never implemented - or so MSDN claims..
        interface IMAPIContainer : IMAPIProp {
                BRESULT GetContentsTable(in BDEFINE ulFlags, 
                                         out IMAPITable lppTable); 

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

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

                BRESULT SetSearchCriteria(in SRestrictionContainer lpRestriction, 
					  in boolean ContainerListInfo,
                                          in SBinaryArray lpContainerList, 
                                          in unsigned long ulSearchFlags); 

                BRESULT GetSearchCriteria(in BDEFINE ulFlags, 
                                          in boolean SRestrictionInfo,
                                          out SRestrictionContainer lppRestriction,
                                          in boolean ContainerListInfo,
                                          out SBinaryArray lppContainerList, 
                                          in boolean SearchStateInfo,
                                          out unsigned long lpulSearchState); 
        }; // End of IMAPIContainer::IMAPIProp

}; // End of module BRUTUS


#endif
