8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
25 * Interface for defining data that can be encoded and sent over the network.
30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
31 * @license http://framework.zend.com/license/new-bsd New BSD License
33 interface Zend_Gdata_App_MediaSource
36 * Return a byte stream representation of this object.
40 public function encode();
43 * Set the content type for the file attached (example image/png)
45 * @param string $value The content type
46 * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface
48 public function setContentType($value);
51 * The content type for the file attached (example image/png)
53 * @return string The content type
55 public function getContentType();
58 * Sets the Slug header value. Used by some services to determine the
59 * title for the uploaded file. A null value indicates no slug header.
61 * @var string The slug value
62 * @return Zend_Gdata_App_MediaSource Provides a fluent interface
64 public function setSlug($value);
67 * Returns the Slug header value. Used by some services to determine the
68 * title for the uploaded file. Returns null if no slug should be used.
70 * @return string The slug value
72 public function getSlug();