/*
 * This file is auto-generated.	DO NOT MODIFY.
 * Original file: /media/Patriot/books/Android/samples/Service/MailBuzz/src/com/commonsware/android/service/IBuzz.aidl
 */
package com.commonsware.android.service;
import java.lang.String;
import android.os.DeadObjectException;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Binder;
import android.os.Parcel;
// Declare the interface.

public interface IBuzz extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.commonsware.android.service.IBuzz
{
private static final java.lang.String DESCRIPTOR = "com.commonsware.android.service.IBuzz";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an IBuzz interface,
 * generating a proxy if needed.
 */
public static com.commonsware.android.service.IBuzz asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
com.commonsware.android.service.IBuzz in = (com.commonsware.android.service.IBuzz)obj.queryLocalInterface(DESCRIPTOR);
if ((in!=null)) {
return in;
}
return new com.commonsware.android.service.IBuzz.Stub.Proxy(obj);
}
public android.os.IBinder asBinder()
{
return this;
}
public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags)
{
try {
switch (code)
{
case TRANSACTION_checkNow:
{
this.checkNow();
return true;
}
case TRANSACTION_enable:
{
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enable(_arg0);
return true;
}
case TRANSACTION_isEnabled:
{
boolean _result = this.isEnabled();
reply.writeInt(((_result)?(1):(0)));
return true;
}
}
}
catch (android.os.DeadObjectException e) {
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.commonsware.android.service.IBuzz
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
public android.os.IBinder asBinder()
{
return mRemote;
}
public void checkNow() throws android.os.DeadObjectException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
mRemote.transact(Stub.TRANSACTION_checkNow, _data, null, 0);
}
finally {
_data.recycle();
}
}
public void enable(boolean enabled) throws android.os.DeadObjectException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInt(((enabled)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enable, _data, null, 0);
}
finally {
_data.recycle();
}
}
public boolean isEnabled() throws android.os.DeadObjectException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
mRemote.transact(Stub.TRANSACTION_isEnabled, _data, _reply, 0);
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_checkNow = (IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_enable = (IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_isEnabled = (IBinder.FIRST_CALL_TRANSACTION + 2);
}
public void checkNow() throws android.os.DeadObjectException;
public void enable(boolean enabled) throws android.os.DeadObjectException;
public boolean isEnabled() throws android.os.DeadObjectException;
}