/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: C:\\devel\\crashlibrary\\lib\\src\\main\\aidl\\com\\avg\\zaap\\crashlibrary\\ICrashServiceCommunicator.aidl
 */
package com.avg.zaap.crashlibrary;
/**
 * This is AIDL interface for IPC comunication between different processes across various classes.
 */
public interface ICrashServiceCommunicator extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.avg.zaap.crashlibrary.ICrashServiceCommunicator
{
private static final java.lang.String DESCRIPTOR = "com.avg.zaap.crashlibrary.ICrashServiceCommunicator";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.avg.zaap.crashlibrary.ICrashServiceCommunicator interface,
 * generating a proxy if needed.
 */
public static com.avg.zaap.crashlibrary.ICrashServiceCommunicator asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.avg.zaap.crashlibrary.ICrashServiceCommunicator))) {
return ((com.avg.zaap.crashlibrary.ICrashServiceCommunicator)iin);
}
return new com.avg.zaap.crashlibrary.ICrashServiceCommunicator.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_reportAndroidCrash:
{
data.enforceInterface(DESCRIPTOR);
com.avg.zaap.crashlibrary.ReportData _arg0;
if ((0!=data.readInt())) {
_arg0 = com.avg.zaap.crashlibrary.ReportData.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.reportAndroidCrash(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_publishAndroidCrash:
{
data.enforceInterface(DESCRIPTOR);
com.avg.zaap.crashlibrary.ReportData _arg0;
if ((0!=data.readInt())) {
_arg0 = com.avg.zaap.crashlibrary.ReportData.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
com.avg.zaap.crashlibrary.ICrashServiceCallback _arg1;
_arg1 = com.avg.zaap.crashlibrary.ICrashServiceCallback.Stub.asInterface(data.readStrongBinder());
this.publishAndroidCrash(_arg0, _arg1);
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.avg.zaap.crashlibrary.ICrashServiceCommunicator
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
/**
     * This method is called when CrashUncaughtExceptionHandler decides to.
     *
     * @param reportData crash report data
     * @returns true if exception has been handled successfully, false otherwise.
     */
@Override public void reportAndroidCrash(com.avg.zaap.crashlibrary.ReportData reportData) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((reportData!=null)) {
_data.writeInt(1);
reportData.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_reportAndroidCrash, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * This method is called whenever a new crash report should be published by the publishers.
     *
     * @param reportData crash report data structure
     * @param callback   callback to call whenever all publishers have finished
     */
@Override public void publishAndroidCrash(com.avg.zaap.crashlibrary.ReportData reportData, com.avg.zaap.crashlibrary.ICrashServiceCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((reportData!=null)) {
_data.writeInt(1);
reportData.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_publishAndroidCrash, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_reportAndroidCrash = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_publishAndroidCrash = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
/**
     * This method is called when CrashUncaughtExceptionHandler decides to.
     *
     * @param reportData crash report data
     * @returns true if exception has been handled successfully, false otherwise.
     */
public void reportAndroidCrash(com.avg.zaap.crashlibrary.ReportData reportData) throws android.os.RemoteException;
/**
     * This method is called whenever a new crash report should be published by the publishers.
     *
     * @param reportData crash report data structure
     * @param callback   callback to call whenever all publishers have finished
     */
public void publishAndroidCrash(com.avg.zaap.crashlibrary.ReportData reportData, com.avg.zaap.crashlibrary.ICrashServiceCallback callback) throws android.os.RemoteException;
}
