X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc%2Fandroid%2Factivity%2FXBMCApp.h;h=3218be2acfa1b2441a8c30da99c19666f8a1a80f;hb=2d2eff9c723670fd76f711e94bad69fbd587438c;hp=7f23a67e7ff58cce4d7cefeeec8a5de9edcefdf8;hpb=1102e36efcac7d78a3ce5aa22dc2f023ff4d3ca8;p=vuplus_xbmc diff --git a/xbmc/android/activity/XBMCApp.h b/xbmc/android/activity/XBMCApp.h index 7f23a67..3218be2 100644 --- a/xbmc/android/activity/XBMCApp.h +++ b/xbmc/android/activity/XBMCApp.h @@ -32,6 +32,7 @@ #include "xbmc.h" #include "android/jni/Context.h" #include "android/jni/BroadcastReceiver.h" +#include "threads/Event.h" // forward delares class CJNIWakeLock; @@ -79,13 +80,13 @@ public: void onLostFocus(); - static ANativeWindow* GetNativeWindow() { return m_window; }; + static const ANativeWindow** GetNativeWindow(int timeout); static int SetBuffersGeometry(int width, int height, int format); static int android_printf(const char *format, ...); static int GetBatteryLevel(); static bool StartActivity(const std::string &package, const std::string &intent = std::string(), const std::string &dataType = std::string(), const std::string &dataURI = std::string()); - static bool ListApplications(std::vector *applications); + static std::vector GetApplications(); static bool GetIconSize(const std::string &packageName, int *width, int *height); static bool GetIcon(const std::string &packageName, void* buffer, unsigned int bufSize); @@ -98,6 +99,8 @@ public: static bool GetExternalStorage(std::string &path, const std::string &type = ""); static bool GetStorageUsage(const std::string &path, std::string &usage); static int GetMaxSystemVolume(); + static int GetSystemVolume(); + static void SetSystemVolume(int val); static int GetDPI(); protected: @@ -117,12 +120,16 @@ private: static ANativeActivity *m_activity; CJNIWakeLock *m_wakeLock; static int m_batteryLevel; + static int m_initialVolume; bool m_firstrun; bool m_exiting; pthread_t m_thread; - + static CCriticalSection m_applicationsMutex; + static std::vector m_applications; + static ANativeWindow* m_window; - + static CEvent m_windowCreated; + void XBMC_Pause(bool pause); void XBMC_Stop(); bool XBMC_DestroyDisplay();