// Path: android/src/org/zmc/qutils/CppCallbacks.java
// public class CppCallbacks
// {
//     public static native void notificationReceived(String tag, int id, String notificationManagerName);
//     public static native void backButtonPressed();
//     public static native void menuButtonPressed();
// 
//     // If an item is clicked, item index will be non-zero and buttonType will be -3
//     public static native void alertDialogClicked(int buttonType, int itemIndex);
//     // If all of the dates are -1, then the datePickerCancelled signal is emitted.
//     public static native void datePicked(int year, int month, int day);
//     // If all of the parameters are -1, then the timePickerCancelled signal is emitted.
//     public static native void timePicked(int hourOfDay, int minute);
// 
//     public static native void cameraCaptured(String capturePath);
// }
// 
// Path: android/src/org/zmc/qutils/QutilsActivity.java
// public class QutilsActivity extends QtActivity
// {
//     private static QutilsActivity m_Instance;
//     protected static NotificationClient m_NotificationClient;
//     protected static AndroidUtils m_AndroidUtils;
// 
//     protected static boolean m_IsImmersiveModeEnabled = false;
//     protected static boolean m_IsStatusBarVisible = true;
//     public static HashMap m_CustomData;
// 
//     public QutilsActivity()
//     {
//         m_Instance = this;
//         m_CustomData = new HashMap();
//     }
// 
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         m_NotificationClient = new NotificationClient(this);
//         m_AndroidUtils = new AndroidUtils(this);
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
// 
//         Intent in = getIntent();
//         String tag = in.getStringExtra(NotificationReceiver.KEY_NOTIFICATION_TAG);
//         String notificationManagerName = in.getStringExtra(NotificationReceiver.KEY_NOTIFICATION_MANAGER);
//         int id = in.getIntExtra(NotificationReceiver.KEY_NOTIFICATION_ID, -1);
//         if (id > -1) {
//             CppCallbacks.notificationReceived(tag, 0, notificationManagerName);
//         }
//     }
// 
//     @Override
//     public void onWindowFocusChanged(boolean hasFocus) {
//         super.onWindowFocusChanged(hasFocus);
//         if (hasFocus) {
//             if (m_IsImmersiveModeEnabled) {
//                 m_AndroidUtils.setImmersiveMode(true);
//             }
// 
//             if (m_IsStatusBarVisible == false) {
//                 m_AndroidUtils.setStatusBarVisible(false);
//             }
//         }
//     }
// 
//     @Override
//     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//         super.onActivityResult(requestCode, resultCode, data);
//         // TODO: 1 is the request for camera capture. Put this number in a class for easy access.
//         if (requestCode == 1 && resultCode == RESULT_OK) {
//             CppCallbacks.cameraCaptured((String)getCustomData("capture_save_path"));
//             removeCustomData("capture_save_path");
//         }
//     }
// 
//     public static void setImmersiveModeEnabled(boolean enabled)
//     {
//         m_IsImmersiveModeEnabled = enabled;
//     }
// 
//     public static void setStatusBarVisible(boolean visible)
//     {
//         m_IsStatusBarVisible = visible;
//     }
// 
//     @Override
//     public boolean onKeyUp(int keyCode, KeyEvent event) {
//         if (keyCode == KeyEvent.KEYCODE_BACK) {
//             CppCallbacks.backButtonPressed();
//         }
//         else if (keyCode == KeyEvent.KEYCODE_MENU) {
//             CppCallbacks.menuButtonPressed();
//         }
// 
//         return super.onKeyUp(keyCode, event);
//     }
// 
//     public static void setCustomData(String key, Object value)
//     {
//         m_CustomData.put(key, value);
//     }
// 
//     public static Object getCustomData(String key)
//     {
//         return m_CustomData.get(key);
//     }
// 
//     public static void removeCustomData(String key)
//     {
//         m_CustomData.remove(key);
//     }
// }


import android.app.DialogFragment;
import android.app.Dialog;
import android.os.Bundle;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import android.content.DialogInterface;
import java.util.Calendar;
import java.text.DateFormat;
import org.zmc.qutils.notification.CppCallbacks;
import org.zmc.qutils.QutilsActivity;
package org.zmc.qutils;




// qutils

public class TimePickerFragment extends DialogFragment implements TimePickerDialog.OnTimeSetListener {

    private static QutilsActivity m_MainContext;

    public TimePickerFragment(QutilsActivity mainActivity)
    {
        m_MainContext = mainActivity;
    }


    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        // Use the current time as the default values for the picker
        final Calendar c = Calendar.getInstance();
        int hour = c.get(Calendar.HOUR_OF_DAY);
        int minute = c.get(Calendar.MINUTE);

        // Create a new instance of TimePickerDialog and return it
        return new TimePickerDialog(m_MainContext, this, hour, minute, true);
    }

    public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
// Path: android/src/org/zmc/qutils/CppCallbacks.java
// public class CppCallbacks
// {
//     public static native void notificationReceived(String tag, int id, String notificationManagerName);
//     public static native void backButtonPressed();
//     public static native void menuButtonPressed();
// 
//     // If an item is clicked, item index will be non-zero and buttonType will be -3
//     public static native void alertDialogClicked(int buttonType, int itemIndex);
//     // If all of the dates are -1, then the datePickerCancelled signal is emitted.
//     public static native void datePicked(int year, int month, int day);
//     // If all of the parameters are -1, then the timePickerCancelled signal is emitted.
//     public static native void timePicked(int hourOfDay, int minute);
// 
//     public static native void cameraCaptured(String capturePath);
// }
// 
// Path: android/src/org/zmc/qutils/QutilsActivity.java
// public class QutilsActivity extends QtActivity
// {
//     private static QutilsActivity m_Instance;
//     protected static NotificationClient m_NotificationClient;
//     protected static AndroidUtils m_AndroidUtils;
// 
//     protected static boolean m_IsImmersiveModeEnabled = false;
//     protected static boolean m_IsStatusBarVisible = true;
//     public static HashMap m_CustomData;
// 
//     public QutilsActivity()
//     {
//         m_Instance = this;
//         m_CustomData = new HashMap();
//     }
// 
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         m_NotificationClient = new NotificationClient(this);
//         m_AndroidUtils = new AndroidUtils(this);
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
// 
//         Intent in = getIntent();
//         String tag = in.getStringExtra(NotificationReceiver.KEY_NOTIFICATION_TAG);
//         String notificationManagerName = in.getStringExtra(NotificationReceiver.KEY_NOTIFICATION_MANAGER);
//         int id = in.getIntExtra(NotificationReceiver.KEY_NOTIFICATION_ID, -1);
//         if (id > -1) {
//             CppCallbacks.notificationReceived(tag, 0, notificationManagerName);
//         }
//     }
// 
//     @Override
//     public void onWindowFocusChanged(boolean hasFocus) {
//         super.onWindowFocusChanged(hasFocus);
//         if (hasFocus) {
//             if (m_IsImmersiveModeEnabled) {
//                 m_AndroidUtils.setImmersiveMode(true);
//             }
// 
//             if (m_IsStatusBarVisible == false) {
//                 m_AndroidUtils.setStatusBarVisible(false);
//             }
//         }
//     }
// 
//     @Override
//     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//         super.onActivityResult(requestCode, resultCode, data);
//         // TODO: 1 is the request for camera capture. Put this number in a class for easy access.
//         if (requestCode == 1 && resultCode == RESULT_OK) {
//             CppCallbacks.cameraCaptured((String)getCustomData("capture_save_path"));
//             removeCustomData("capture_save_path");
//         }
//     }
// 
//     public static void setImmersiveModeEnabled(boolean enabled)
//     {
//         m_IsImmersiveModeEnabled = enabled;
//     }
// 
//     public static void setStatusBarVisible(boolean visible)
//     {
//         m_IsStatusBarVisible = visible;
//     }
// 
//     @Override
//     public boolean onKeyUp(int keyCode, KeyEvent event) {
//         if (keyCode == KeyEvent.KEYCODE_BACK) {
//             CppCallbacks.backButtonPressed();
//         }
//         else if (keyCode == KeyEvent.KEYCODE_MENU) {
//             CppCallbacks.menuButtonPressed();
//         }
// 
//         return super.onKeyUp(keyCode, event);
//     }
// 
//     public static void setCustomData(String key, Object value)
//     {
//         m_CustomData.put(key, value);
//     }
// 
//     public static Object getCustomData(String key)
//     {
//         return m_CustomData.get(key);
//     }
// 
//     public static void removeCustomData(String key)
//     {
//         m_CustomData.remove(key);
//     }
// }


// Path: android/src/org/zmc/qutils/TimePickerFragment.java
import android.app.DialogFragment;
import android.app.Dialog;
import android.os.Bundle;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import android.content.DialogInterface;
import java.util.Calendar;
import java.text.DateFormat;
import org.zmc.qutils.notification.CppCallbacks;
import org.zmc.qutils.QutilsActivity;

package org.zmc.qutils;




// qutils

public class TimePickerFragment extends DialogFragment implements TimePickerDialog.OnTimeSetListener {

    private static QutilsActivity m_MainContext;

    public TimePickerFragment(QutilsActivity mainActivity)
    {
        m_MainContext = mainActivity;
    }


    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        // Use the current time as the default values for the picker
        final Calendar c = Calendar.getInstance();
        int hour = c.get(Calendar.HOUR_OF_DAY);
        int minute = c.get(Calendar.MINUTE);

        // Create a new instance of TimePickerDialog and return it
        return new TimePickerDialog(m_MainContext, this, hour, minute, true);
    }

    public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
        CppCallbacks.timePicked(hourOfDay, minute);