| 1 |
/* Copyright (C) 2003 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
|
| 18 |
_CONFIGINCLUDE(atkmmconfig.h) |
| 19 |
|
| 20 |
_DEFS(atkmm,atk) |
| 21 |
_PINCLUDE(glibmm/private/object_p.h) |
| 22 |
|
| 23 |
#include <glibmm/interface.h> |
| 24 |
#include <glibmm/iochannel.h> |
| 25 |
|
| 26 |
#ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 27 |
extern "C" |
| 28 |
{ |
| 29 |
typedef struct _AtkStreamableContentIface AtkStreamableContentIface; |
| 30 |
typedef struct _AtkStreamableContent AtkStreamableContent; |
| 31 |
} |
| 32 |
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 33 |
|
| 34 |
|
| 35 |
namespace Atk |
| 36 |
{ |
| 37 |
|
| 38 |
class ATKMM_API Object; |
| 39 |
|
| 40 |
/** The ATK interface which provides access to streamable content. |
| 41 |
*/ |
| 42 |
class ATKMM_API StreamableContent : public Glib::Interface |
| 43 |
{ |
| 44 |
_CLASS_INTERFACE(StreamableContent, AtkStreamableContent, ATK_STREAMABLE_CONTENT, AtkStreamableContentIface, , , ATKMM_API) |
| 45 |
public: |
| 46 |
|
| 47 |
_WRAP_METHOD(int get_n_mime_types() const, atk_streamable_content_get_n_mime_types) |
| 48 |
_WRAP_METHOD(Glib::ustring get_mime_type(int i) const, atk_streamable_content_get_mime_type) |
| 49 |
_WRAP_METHOD(Glib::RefPtr<Glib::IOChannel> get_stream(const Glib::ustring& mime_type), atk_streamable_content_get_stream) |
| 50 |
|
| 51 |
protected: |
| 52 |
_WRAP_VFUNC(int get_n_mime_types() const, get_n_mime_types) |
| 53 |
_WRAP_VFUNC(const gchar* get_mime_type(int i) const, get_mime_type) |
| 54 |
|
| 55 |
#m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING) |
| 56 |
_WRAP_VFUNC(GIOChannel* get_stream(const Glib::ustring& mime_type), get_stream) |
| 57 |
}; |
| 58 |
|
| 59 |
} // namespace Atk |