/* -*- 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_IATTACH_DEF
#define F2T_IATTACH_DEF

#pragma prefix "omc.brutus"

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

module BRUTUS {

        // IAttach does not have any methods of its own, 
        // but some special qualities: See MSDN.
        interface IAttach : IMAPIProp {

		// Will set the PR_ATTACH_TAG property on the attachment.
		// The OIDs are from "MAPIOID.h". More OIDs can be defined 
		// if needed.
		BRESULT SetAttachTag(in BRUTUS_ATTACH_TAG AttachTag);

		// Will create a custom RFC822 header. The field names
		// and field bodies are 1-1 matching. The strings are used
		// as-is without any codeset or encoding conversions.
		// The field name must be formatted as "FOO" (without apostrophes)
		// where "FOO" is any legal field name. The field body must 
		// be RFC822 compliant.
		BRESULT SetRFC822Headers(in seq_string FieldNames,
					 in seq_string FieldBodies);

		// will set PR_ATTACH_RENDERING to the default value
		BRESULT SetDefaultAttachRendering();
        };

}; // End of module BRUTUS


#endif
