/* -*- 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_IPROFADMIN_DEF
#define F2T_IPROFADMIN_DEF

#pragma prefix "omc.brutus"

#include "types.idl"
#include "IMAPITable.idl"
#include "IMsgServiceAdmin.idl"

module BRUTUS {

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

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

                BRESULT CreateProfile(in string lpszProfileName,
                                      in string lpszPassword,
                                      in BDEFINE ulFlags);

                BRESULT DeleteProfile(in string lpszProfileName,
                                      in BDEFINE ulFlags);

                BRESULT ChangeProfilePassword(in string lpszProfileName,
                                              in string lpszOldPassword,
                                              in string lpszNewPassword,
                                              in BDEFINE ulFlags);

                BRESULT CopyProfile(in string lpszOldProfileName,
                                    in string lpszOldPassword,
                                    in string lpszNewProfileName,
                                    in BDEFINE ulFlags);

                BRESULT RenameProfile(in string lpszOldProfileName,
                                      in string lpszOldPassword,
                                      in string lpszNewProfileName,
                                      in BDEFINE ulFlags);

                BRESULT SetDefaultProfile(in string lpszProfileName,
                                          in BDEFINE ulFlags);

                BRESULT AdminServices(in string lpszProfileName,
                                      in string lpszPassword,
                                      in BDEFINE ulFlags,
                                      out IMsgServiceAdmin lppServiceAdmin);
        };
}; // End of module BRUTUS


#endif
