Go to the documentation of this file.
51 #ifndef GNASH_HOST_INTERFACE_H
52 #define GNASH_HOST_INTERFACE_H
54 #include <boost/variant.hpp>
55 #include <boost/any.hpp>
70 boost::any
arg = boost::blank())
75 const std::string&
name()
const {
return _name; }
76 const boost::any&
arg()
const {
return _arg; }
191 const boost::any&
arg()
const {
return _arg; }
202 virtual void notify(
const std::string& cmd,
const std::string& arg) = 0;
213 typedef boost::variant<HostMessage, CustomMessage>
Message;
Abstract base class for FS handlers.
Definition: HostInterface.h:200
boost::variant< HostMessage, CustomMessage > Message
Definition: HostInterface.h:213
virtual void exit()=0
Instruct the hosting application to exit.
@ EXTERNALINTERFACE_PAN
Definition: HostInterface.h:176
@ NOTIFY_ERROR
Definition: HostInterface.h:166
virtual ~FsCallback()
Definition: HostInterface.h:203
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Abstract base class for hosting app handler.
Definition: HostInterface.h:208
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
@ EXTERNALINTERFACE_STOPPLAY
Definition: HostInterface.h:180
@ EXTERNALINTERFACE_ZOOM
Definition: HostInterface.h:181
@ SCREEN_COLOR
Definition: HostInterface.h:160
const boost::any & arg() const
Definition: HostInterface.h:76
@ SET_CLIPBOARD
Definition: HostInterface.h:130
HostMessage(KnownEvent e, boost::any arg=boost::blank())
Definition: HostInterface.h:184
const std::string & name() const
Definition: HostInterface.h:75
virtual ~HostInterface()
Definition: HostInterface.h:211
@ a
Definition: GnashKey.h:147
@ SHOW_MENU
Definition: HostInterface.h:117
const boost::any & arg() const
Definition: HostInterface.h:191
KnownEvent event() const
Definition: HostInterface.h:190
@ SET_DISPLAYSTATE
Definition: HostInterface.h:124
@ EXTERNALINTERFACE_ISPLAYING
Definition: HostInterface.h:175
@ EXTERNALINTERFACE_PLAY
Definition: HostInterface.h:177
virtual void notify(const std::string &cmd, const std::string &arg)=0
@ PLAYER_TYPE
Definition: HostInterface.h:154
A custom form of communication with the host application.
Definition: HostInterface.h:67
@ PIXEL_ASPECT_RATIO
Definition: HostInterface.h:148
@ SCREEN_RESOLUTION
Definition: HostInterface.h:136
@ UPDATE_STAGE
Definition: HostInterface.h:110
Built-in forms of communication with the host application.
Definition: HostInterface.h:86
@ RESIZE_STAGE
Definition: HostInterface.h:104
@ SHOW_MOUSE
Definition: HostInterface.h:98
@ EXTERNALINTERFACE_SETZOOMRECT
Definition: HostInterface.h:179
#define DSOEXPORT
Definition: dsodefs.h:55
@ EXTERNALINTERFACE_REWIND
Definition: HostInterface.h:178
virtual boost::any call(const Message &e)=0
Pass a message to the hosting application with an optional return.
@ SCREEN_DPI
Definition: HostInterface.h:142
@ e
Definition: GnashKey.h:151
@ QUERY
Definition: HostInterface.h:172
CustomMessage(std::string s, boost::any arg=boost::blank())
Definition: HostInterface.h:69
KnownEvent
The messages that a hosting application should handle.
Definition: HostInterface.h:92
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:447