/* -*- 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_IMSGSERVICEADMIN_DEF
#define F2T_IMSGSERVICEADMIN_DEF

#pragma prefix "omc.brutus"

#include "types.idl"
#include "IMAPITable.idl"
#include "IProviderAdmin.idl"
#include "IProfSect.idl"

module BRUTUS {

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

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

                BRESULT CreateMsgService(in string lpszService,  
                                         in string lpszDisplayName,        
                                         in BDEFINE ulFlags);         

                BRESULT DeleteMsgService(in MAPIUID lpUID); 

                BRESULT CopyMsgService(in MAPIUID lpUID,          
                                       in string lpszDisplayName,        
                                       in GUID lpInterfaceToCopy,      
                                       in GUID lpInterfaceDst,         
                                       in ENTRYID lpObjectDst,            
                                       in BDEFINE ulFlags);         

                BRESULT RenameMsgService(in MAPIUID lpUID,        
                                         in BDEFINE ulFlags, 
                                         in string lpszDisplayName); 

                BRESULT ConfigureMsgService(in MAPIUID lpUID,     
                                            in BDEFINE ulFlags,                
                                            in seq_SPropValue lpProps);         

                BRESULT OpenProfileSection(in MAPIUID lpUID,      
                                           in GUID lpInterface,            
                                           in BDEFINE ulFlags,                
                                           out IProfSect lppProfSect);     

                BRESULT MsgServiceTransportOrder(in seq_MAPIUID lpUIDList,
                                                 in BDEFINE ulFlags); 

                BRESULT AdminProviders(in MAPIUID lpUID,          
                                       in BDEFINE ulFlags,                
                                       out IProviderAdmin lppProviderAdmin);

                BRESULT SetPrimaryIdentity(in MAPIUID lpUID,
                                           in BDEFINE ulFlags); 

                BRESULT GetProviderTable(in BDEFINE ulFlags,      
                                         out IMAPITable lppTable);        
        };

}; // End of module BRUTUS


#endif
