00001 00032 #ifndef LLMEDIAIMPLEXAMPLE1_H 00033 #define LLMEDIAIMPLEXAMPLE1_H 00034 00035 #include "llmediaimplcommon.h" 00036 #include "llmediaimplfactory.h" 00037 00038 class LLMediaManagerData; 00039 00040 class LLMediaImplExample1 : 00041 public LLMediaImplCommon 00042 { 00043 public: 00044 LLMediaImplExample1(); 00045 00046 static bool startup( LLMediaManagerData* init_data ); 00047 static bool closedown(); 00048 00049 /* virtual */ bool init(); 00050 /* virtual */ bool navigateTo( const std::string url ); 00051 /* virtual */ bool updateMedia(); 00052 /* virtual */ std::string getVersion(); 00053 /* virtual */ unsigned char* getMediaData(); 00054 /* virtual */ bool reset(); 00055 /* virtual */ bool mouseMove( int x_pos, int y_pos ); 00056 /* virtual */ bool setRequestedMediaSize( int width, int height ); 00057 00058 private: 00059 unsigned char* mMediaPixels; 00060 }; 00061 00062 class LLMediaImplExample1Maker : public LLMediaImplMaker 00063 { 00064 public: 00065 LLMediaImplExample1Maker(); 00066 LLMediaImplExample1* create() 00067 { 00068 return new LLMediaImplExample1(); 00069 } 00070 }; 00071 00072 #endif // LLMEDIAIMPLEXAMPLE1_H