1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_ucb_XDataContainer_idl__
24#define __com_sun_star_ucb_XDataContainer_idl__
25
26#ifndef __com_sun_star_container_XIndexContainer_idl__
27#include <com/sun/star/container/XIndexContainer.idl>
28#endif
29
30
31//=============================================================================
32
33module com { module sun { module star { module ucb {
34
35//=============================================================================
36/** specifies a container for (binary) data.
37
38	<p>A data container may contain data and/or other data containers.
39	A typical container with children is a MIME message with
40	attachments.
41
42	@version	1.0
43	@author 	Kai Sommerfeld
44
45    @deprecated
46*/
47published interface XDataContainer: com::sun::star::container::XIndexContainer
48{
49	//-------------------------------------------------------------------------
50	/** returns the content type (MIME Type) of the data container.
51
52		@returns
53		the content type
54	*/
55	string getContentType();
56
57	//-------------------------------------------------------------------------
58	/** sets the content type (MIME Type) of the data container.
59
60		@param aType
61		the content type
62	*/
63	void setContentType( [in] string aType );
64
65	//-------------------------------------------------------------------------
66	/** returns the data of the data container.
67
68		@returns
69		the data
70	*/
71	sequence<byte> getData();
72
73	//-------------------------------------------------------------------------
74	/** sets the data of the data container.
75
76		@param aData
77		the data
78	*/
79	void setData( [in] sequence<byte> aData );
80
81	//-------------------------------------------------------------------------
82	/** Deprecated. Do not use!
83
84		@deprecated
85	*/
86	string getDataURL();
87
88	//-------------------------------------------------------------------------
89	/** Deprecated. Do not use!
90
91		@deprecated
92	*/
93	void setDataURL( [in] string aURL );
94};
95
96//=============================================================================
97
98}; }; }; };
99
100#endif
101