Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

PluginInstance Class Reference

Collaboration diagram for PluginInstance:
Collaboration graph
[legend]

List of all members.

Classes

class  JSDirectoryReader
class  ProgressHandler

Public Member Functions

 PluginInstance (PP_Instance instance)
 ~PluginInstance ()
virtual void DidChangeView (const pp::Rect &position, const pp::Rect &clip)
bool HandleInputEvent (const pp::InputEvent &event)
void HandleMessage (const pp::Var &message)
bool Init (int argc, const char *argn[], const char *argv[])

Private Member Functions

void * sdl_thread ()

Static Private Member Functions

static void * sdl_thread_static (void *param)

Private Attributes

bool sdl_thread_started_
pthread_t sdl_main_thread_
int width_
int height_
KernelProxy * proxy_
MainThreadRunner * runner_
pp::FileSystem * fs_
ProgressHandler progress_handler_
JSDirectoryReader directory_reader_

Detailed Description

Definition at line 46 of file plugin.cc.


Constructor & Destructor Documentation

PluginInstance::PluginInstance ( PP_Instance  instance  )  [inline, explicit]

Definition at line 48 of file plugin.cc.

References fs_, proxy_, and runner_.

PluginInstance::~PluginInstance (  )  [inline]

Definition at line 65 of file plugin.cc.

References sdl_main_thread_.


Member Function Documentation

virtual void PluginInstance::DidChangeView ( const pp::Rect &  position,
const pp::Rect &  clip 
) [inline, virtual]

Definition at line 71 of file plugin.cc.

References height_, sdl_main_thread_, sdl_thread_started_, sdl_thread_static(), and width_.

Here is the call graph for this function:

bool PluginInstance::HandleInputEvent ( const pp::InputEvent &  event  )  [inline]

Definition at line 94 of file plugin.cc.

void PluginInstance::HandleMessage ( const pp::Var &  message  )  [inline]

Definition at line 99 of file plugin.cc.

References directory_reader_, and PluginInstance::JSDirectoryReader::HandleResponse().

Here is the call graph for this function:

bool PluginInstance::Init ( int  argc,
const char *  argn[],
const char *  argv[] 
) [inline]

Definition at line 104 of file plugin.cc.

void* PluginInstance::sdl_thread (  )  [inline, private]

Definition at line 121 of file plugin.cc.

References directory_reader_, fs_, height_, http_dirs, http_files, http_packs, http_pack_info::offset, game_config::path, progress_handler_, proxy_, runner_, http_file_info::size, wesnoth_main(), and width_.

Referenced by sdl_thread_static().

Here is the call graph for this function:

Here is the caller graph for this function:

static void* PluginInstance::sdl_thread_static ( void *  param  )  [inline, static, private]

Definition at line 117 of file plugin.cc.

References sdl_thread().

Referenced by DidChangeView().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 249 of file plugin.cc.

Referenced by HandleMessage(), and sdl_thread().

pp::FileSystem* PluginInstance::fs_ [private]

Definition at line 115 of file plugin.cc.

Referenced by PluginInstance(), and sdl_thread().

int PluginInstance::height_ [private]

Definition at line 112 of file plugin.cc.

Referenced by DidChangeView(), and sdl_thread().

Definition at line 206 of file plugin.cc.

Referenced by sdl_thread().

KernelProxy* PluginInstance::proxy_ [private]

Definition at line 113 of file plugin.cc.

Referenced by PluginInstance(), and sdl_thread().

MainThreadRunner* PluginInstance::runner_ [private]

Definition at line 114 of file plugin.cc.

Referenced by PluginInstance(), and sdl_thread().

pthread_t PluginInstance::sdl_main_thread_ [private]

Definition at line 110 of file plugin.cc.

Referenced by DidChangeView(), and ~PluginInstance().

Definition at line 109 of file plugin.cc.

Referenced by DidChangeView().

int PluginInstance::width_ [private]

Definition at line 111 of file plugin.cc.

Referenced by DidChangeView(), and sdl_thread().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:14:30 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs