[droid] Use native volume control
[vuplus_xbmc] / xbmc / android / activity / XBMCApp.h
index 4bf2d2e..c620966 100644 (file)
@@ -87,6 +87,7 @@ public:
   static bool ListApplications(std::vector <androidPackage> *applications);
   static bool GetIconSize(const std::string &packageName, int *width, int *height);
   static bool GetIcon(const std::string &packageName, void* buffer, unsigned int bufSize); 
+
   /*!
    * \brief If external storage is available, it returns the path for the external storage (for the specified type)
    * \param path will contain the path of the external storage (for the specified type)
@@ -95,6 +96,7 @@ 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 GetDPI();
 protected:
@@ -106,6 +108,9 @@ protected:
   static int AttachCurrentThread(JNIEnv** p_env, void* thr_args = NULL);
   static int DetachCurrentThread();
 
+  static int GetMaxSystemVolume(JNIEnv *env);
+  static void SetSystemVolume(JNIEnv *env, float percent);
+
 private:
   static bool HasLaunchIntent(const std::string &package);
   bool getWakeLock(JNIEnv *env);
@@ -116,7 +121,6 @@ private:
 
   static ANativeActivity *m_activity;
   jobject m_wakeLock;
-  
   typedef enum {
     // XBMC_Initialize hasn't been executed yet
     Uninitialized,