package com.ifpdos.debugmenu.event;

import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import d.f.a.h2.a;
import d.f.a.s1.e;
import d.f.a.s2.f;

/* JADX INFO: loaded from: classes.dex */
public class ActivityEvent {

    public static class Back {
    }

    public static class CancelDialog {
    }

    public static class DismissDialog {
    }

    public static class Finish {
    }

    public interface OnActivityResultListener {
        void onActivityResult(int i2, int i3, Intent intent);
    }

    public interface OnHidUpgradeResultListener {
        void onResult(Bundle bundle);
    }

    public static class SetSystemToolBar {
        public final int selection;

        public SetSystemToolBar(int i2) {
            this.selection = i2;
        }
    }

    public static class ShowDialog {
        public final View contentView;

        public ShowDialog(View view) {
            this.contentView = view;
        }
    }

    public static class ShowPromptDialog {
        public final String message;
        public final String title;

        public ShowPromptDialog(String str, String str2) {
            this.title = str;
            this.message = str2;
        }
    }

    public static class ShowQRCode {
        public a cancelListener;
        public final Bitmap mBitmap;
        public final String mTips;

        public ShowQRCode(Bitmap bitmap, String str) {
            this.mBitmap = bitmap;
            this.mTips = str;
        }

        public void setCancelListener(a aVar) {
            this.cancelListener = aVar;
        }
    }

    public static class ShowUpgradeErrorDialog {
        public final String errorReason;
        public final String upgradeType;

        public ShowUpgradeErrorDialog(String str, String str2) {
            this.upgradeType = str;
            this.errorReason = str2;
        }
    }

    public static class ShowWarningToast {
        public final int duration = -1;
        public final int stringId;

        public ShowWarningToast(int i2) {
            this.stringId = i2;
        }
    }

    public static class StartActivity {
        public final ComponentName componentName;

        public StartActivity(ComponentName componentName) {
            this.componentName = componentName;
        }
    }

    public static class StartActivityWithAction {
        public final String action;

        public StartActivityWithAction(String str) {
            this.action = str;
        }
    }

    public static class StartActivityWithFinishing {
        public final ComponentName componentName;

        public StartActivityWithFinishing(ComponentName componentName) {
            this.componentName = componentName;
        }
    }

    public static class StartActivityWithIntent {
        public final Intent intent;

        public StartActivityWithIntent(Intent intent) {
            this.intent = intent;
        }
    }

    public static class UpgradeDialogAddItem {
        public final int itemTitleId;

        public UpgradeDialogAddItem(int i2) {
            this.itemTitleId = i2;
        }
    }

    public static class UpgradeDialogUpdateProgress {
        public final int itemTitleId;
        public final float progress;

        public UpgradeDialogUpdateProgress(int i2, float f2) {
            this.itemTitleId = i2;
            this.progress = f2;
        }
    }

    public static class UpgradeDialogUpdateResult {
        public final boolean itemResult;
        public final int itemTitleId;

        public UpgradeDialogUpdateResult(int i2, boolean z) {
            this.itemTitleId = i2;
            this.itemResult = z;
        }
    }

    private ActivityEvent() {
    }

    public static class ShowUpgradeDialog {
        public final int itemTitleId;

        public ShowUpgradeDialog() {
            this.itemTitleId = -1;
        }

        public ShowUpgradeDialog(int i2) {
            this.itemTitleId = i2;
        }
    }

    public static class ShowProgressDialog {
        public boolean canBack;
        public final boolean isShow;

        public ShowProgressDialog(boolean z) {
            this.canBack = false;
            this.isShow = z;
        }

        public ShowProgressDialog(boolean z, boolean z2) {
            this.canBack = false;
            this.isShow = z;
            this.canBack = z2;
        }
    }

    public static class ShowToast {
        public final int duration;
        public final String string;
        public final int stringId;

        public ShowToast(String str, int i2) {
            this.string = str;
            this.duration = i2;
            this.stringId = -1;
        }

        public ShowToast(int i2, int i3) {
            this.stringId = i2;
            this.duration = i3;
            this.string = null;
        }

        public ShowToast(String str) {
            this.string = str;
            this.stringId = -1;
            this.duration = -1;
        }

        public ShowToast(int i2) {
            this.stringId = i2;
            this.duration = -1;
            this.string = null;
        }
    }

    public static class ShowDebugMenuDialog {
        public final e callback;
        public int cancelButtonTextId;
        public int confirmButtonTextId;
        public final int contentTextId;
        public final f debugMenuDialogView;
        public d.f.a.s1.f inputCallback;
        public DialogInterface.OnCancelListener onCancelListener;
        public View.OnClickListener onClickListener;
        public final int titleTextId;

        public ShowDebugMenuDialog(int i2, int i3, e eVar) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = eVar;
            this.debugMenuDialogView = null;
        }

        public boolean isValid() {
            return (this.titleTextId > 0 && this.contentTextId > 0 && !(this.callback == null && this.inputCallback == null)) || this.debugMenuDialogView != null;
        }

        public ShowDebugMenuDialog(int i2, int i3, e eVar, DialogInterface.OnCancelListener onCancelListener) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = eVar;
            this.debugMenuDialogView = null;
            this.onCancelListener = onCancelListener;
        }

        public ShowDebugMenuDialog(int i2, int i3, int i4, int i5, e eVar, DialogInterface.OnCancelListener onCancelListener) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.confirmButtonTextId = i4;
            this.cancelButtonTextId = i5;
            this.callback = eVar;
            this.debugMenuDialogView = null;
            this.onCancelListener = onCancelListener;
        }

        public ShowDebugMenuDialog(int i2, int i3, int i4, int i5, e eVar, DialogInterface.OnCancelListener onCancelListener, View.OnClickListener onClickListener) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.confirmButtonTextId = i4;
            this.cancelButtonTextId = i5;
            this.callback = eVar;
            this.debugMenuDialogView = null;
            this.onClickListener = onClickListener;
            this.onCancelListener = onCancelListener;
        }

        public ShowDebugMenuDialog(int i2, int i3, d.f.a.s1.f fVar) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = null;
            this.inputCallback = fVar;
            this.debugMenuDialogView = null;
        }

        public ShowDebugMenuDialog(int i2, int i3, d.f.a.s1.f fVar, DialogInterface.OnCancelListener onCancelListener) {
            this.inputCallback = null;
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = null;
            this.inputCallback = fVar;
            this.debugMenuDialogView = null;
            this.onCancelListener = onCancelListener;
        }

        public ShowDebugMenuDialog(f fVar) {
            this.inputCallback = null;
            this.debugMenuDialogView = fVar;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
        }
    }

    public static class ShowCenterDebugMenuDialog {
        public final e callback;
        public final int contentTextId;
        public final f debugMenuDialogView;
        public final View normalView;
        public final DialogInterface.OnCancelListener onCancelListener;
        public final int titleTextId;

        public ShowCenterDebugMenuDialog(int i2, int i3, e eVar, DialogInterface.OnCancelListener onCancelListener) {
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = eVar;
            this.debugMenuDialogView = null;
            this.normalView = null;
            this.onCancelListener = onCancelListener;
        }

        public boolean isValid() {
            return ((this.titleTextId <= 0 || this.contentTextId <= 0 || this.callback == null) && this.debugMenuDialogView == null && this.normalView == null) ? false : true;
        }

        public ShowCenterDebugMenuDialog(f fVar, DialogInterface.OnCancelListener onCancelListener) {
            this.debugMenuDialogView = fVar;
            this.normalView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onCancelListener = onCancelListener;
        }

        public ShowCenterDebugMenuDialog(View view, DialogInterface.OnCancelListener onCancelListener) {
            this.normalView = view;
            this.debugMenuDialogView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onCancelListener = onCancelListener;
        }
    }

    public static class ShowNormalDialog {
        public final e callback;
        public final boolean cancelable;
        public final int contentTextId;
        public final f debugMenuDialogView;
        public final View normalView;
        public final DialogInterface.OnCancelListener onDismissListener;
        public DialogInterface.OnDismissListener onDismissListenerReal;
        public final int titleTextId;

        public ShowNormalDialog(int i2, int i3, e eVar, DialogInterface.OnCancelListener onCancelListener) {
            this.titleTextId = i2;
            this.contentTextId = i3;
            this.callback = eVar;
            this.debugMenuDialogView = null;
            this.normalView = null;
            this.onDismissListener = onCancelListener;
            this.cancelable = true;
        }

        public boolean isValid() {
            return ((this.titleTextId <= 0 || this.contentTextId <= 0 || this.callback == null) && this.debugMenuDialogView == null && this.normalView == null) ? false : true;
        }

        public ShowNormalDialog(f fVar, DialogInterface.OnCancelListener onCancelListener) {
            this.debugMenuDialogView = fVar;
            this.normalView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onDismissListener = onCancelListener;
            this.cancelable = true;
        }

        public ShowNormalDialog(View view, DialogInterface.OnCancelListener onCancelListener) {
            this.normalView = view;
            this.debugMenuDialogView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onDismissListener = onCancelListener;
            this.cancelable = true;
        }

        public ShowNormalDialog(View view, boolean z) {
            this.normalView = view;
            this.debugMenuDialogView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onDismissListener = null;
            this.cancelable = z;
        }

        public ShowNormalDialog(View view, DialogInterface.OnCancelListener onCancelListener, DialogInterface.OnDismissListener onDismissListener) {
            this.normalView = view;
            this.debugMenuDialogView = null;
            this.titleTextId = -1;
            this.contentTextId = -1;
            this.callback = null;
            this.onDismissListener = onCancelListener;
            this.onDismissListenerReal = onDismissListener;
            this.cancelable = true;
        }
    }
}
