IInterface.h File Reference


Detailed Description

Common base class for abstract binderized interfaces.

#include <support/SupportDefs.h>
#include <support/StaticValue.h>
#include <support/Atom.h>
#include <support/IBinder.h>

Go to the source code of this file.

Classes

class  IInterface
 Base class for C++ language Binder interfaces. More...

Defines

#define B_DECLARE_META_INTERFACE(iname)
 Use this macro inside of your IInterface subclass to define the standard IInterface meta-API.

Functions

template<class IFACE>
sptr< IFACE > interface_cast (const SValue &v)
 Convert an SValue containing a binder object to a concrete interface.
template<class IFACE>
sptr< IFACE > interface_cast (const sptr< IBinder > &b)
 Convert a generic IBinder to a concrete interface.