Changeset 480 for trunk/src/atk/StreamableContent.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/atk/StreamableContent.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/atk/StreamableContent.d
r411 r480 49 49 * module aliases: 50 50 * local aliases: 51 * overrides: 51 52 */ 52 53 … … 132 133 * Returns:: a gchar* representing the specified mime type; the callershould not free the character string. 133 134 */ 134 public char[]getMimeType(int i)135 public string getMimeType(int i) 135 136 { 136 137 // const gchar* atk_streamable_content_get_mime_type (AtkStreamableContent *streamable, gint i); 137 return Str.toString(atk_streamable_content_get_mime_type(atkStreamableContent, i)) .dup;138 return Str.toString(atk_streamable_content_get_mime_type(atkStreamableContent, i)); 138 139 } 139 140 … … 144 145 * Returns: A GIOChannel which contains the content in the specified mimetype. 145 146 */ 146 public IOChannel getStream( char[]mimeType)147 public IOChannel getStream(string mimeType) 147 148 { 148 149 // GIOChannel* atk_streamable_content_get_stream (AtkStreamableContent *streamable, const gchar *mime_type); … … 169 170 * Returns: Returns a string representing a URI, or NULL if no corresponding URIcan be constructed.Since ATK 1.12 170 171 */ 171 public char[] getUri(char[]mimeType)172 public string getUri(string mimeType) 172 173 { 173 174 // gchar* atk_streamable_content_get_uri (AtkStreamableContent *streamable, const gchar *mime_type); 174 return Str.toString(atk_streamable_content_get_uri(atkStreamableContent, Str.toStringz(mimeType))) .dup;175 return Str.toString(atk_streamable_content_get_uri(atkStreamableContent, Str.toStringz(mimeType))); 175 176 } 176 177 }
