/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: G:\\Programmierung\\Java\\Eclipse_Projekte\\PCControl_Client-Android\\src\\de\\reinhardt_karlheinz\\pcc\\android\\IPCCPlugin.aidl
 */
package de.reinhardt_karlheinz.pcc.android;
/**
 * Interface for a PCConnection Plugin<br>
 * <br>
 * (c) Copyright 2012, Karlheinz Reinhardt. All rights reserved.<br>
 * 
 * @author Karlheinz Reinhardt
 * @version 0.0.9
 * 
 */
public interface IPCCPlugin extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements de.reinhardt_karlheinz.pcc.android.IPCCPlugin
{
private static final java.lang.String DESCRIPTOR = "de.reinhardt_karlheinz.pcc.android.IPCCPlugin";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an de.reinhardt_karlheinz.pcc.android.IPCCPlugin interface,
 * generating a proxy if needed.
 */
public static de.reinhardt_karlheinz.pcc.android.IPCCPlugin asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof de.reinhardt_karlheinz.pcc.android.IPCCPlugin))) {
return ((de.reinhardt_karlheinz.pcc.android.IPCCPlugin)iin);
}
return new de.reinhardt_karlheinz.pcc.android.IPCCPlugin.Stub.Proxy(obj);
}
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_getName:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getName();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_getVersion:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getVersion();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_getAuthor:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getAuthor();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_getInformation:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getInformation();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_onPluginStart:
{
data.enforceInterface(DESCRIPTOR);
this.onPluginStart();
reply.writeNoException();
return true;
}
case TRANSACTION_onPluginShow:
{
data.enforceInterface(DESCRIPTOR);
this.onPluginShow();
reply.writeNoException();
return true;
}
case TRANSACTION_onPluginHide:
{
data.enforceInterface(DESCRIPTOR);
this.onPluginHide();
reply.writeNoException();
return true;
}
case TRANSACTION_onPluginClose:
{
data.enforceInterface(DESCRIPTOR);
this.onPluginClose();
reply.writeNoException();
return true;
}
case TRANSACTION_onConnectionEstablished:
{
data.enforceInterface(DESCRIPTOR);
this.onConnectionEstablished();
reply.writeNoException();
return true;
}
case TRANSACTION_onConnectionLost:
{
data.enforceInterface(DESCRIPTOR);
this.onConnectionLost();
reply.writeNoException();
return true;
}
case TRANSACTION_onMessageReceived:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.onMessageReceived(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_onCommandReceived:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.onCommandReceived(_arg0);
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements de.reinhardt_karlheinz.pcc.android.IPCCPlugin
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
/**
   * returns the name of the plugin as a String<br>
   * 
   * @return name of plugin
   */
public java.lang.String getName() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getName, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
   * returns the version as a String<br>
   * 
   * @return version
   */
public java.lang.String getVersion() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getVersion, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
   * returns the name of the author as a String<br>
   * 
   * @return name of author
   */
public java.lang.String getAuthor() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getAuthor, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
   * short summary what the plugin does.<br>
   * 
   * @return short information
   */
public java.lang.String getInformation() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getInformation, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
   * Invoked when plugin is loaded<br>
   * 
   * @param plgIntfc
   *          PluginInterface
   */
public void onPluginStart() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPluginStart, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when plugin should be shown.<br>
   * will mostly be invoked by the Pluginmanager.<br>
   */
public void onPluginShow() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPluginShow, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when plugin should be hidden.<br>
   * will mostly be invoked by the Pluginmanager.<br>
   */
public void onPluginHide() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPluginHide, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when plugin should be closed.<br>
   */
public void onPluginClose() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPluginClose, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when connection is established
   */
public void onConnectionEstablished() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onConnectionEstablished, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when connection is lost
   */
public void onConnectionLost() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onConnectionLost, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
   * Invoked when message received
   */
public void onMessageReceived(java.lang.String msg) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(msg);
mRemote.transact(Stub.TRANSACTION_onMessageReceived, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// TODO review if useful/unnecessary
/**
   * Invoked when command received
   */
public void onCommandReceived(java.lang.String cmd) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(cmd);
mRemote.transact(Stub.TRANSACTION_onCommandReceived, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_getName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getVersion = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_getAuthor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_getInformation = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_onPluginStart = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_onPluginShow = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_onPluginHide = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_onPluginClose = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_onConnectionEstablished = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_onConnectionLost = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_onMessageReceived = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_onCommandReceived = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
}
/**
   * returns the name of the plugin as a String<br>
   * 
   * @return name of plugin
   */
public java.lang.String getName() throws android.os.RemoteException;
/**
   * returns the version as a String<br>
   * 
   * @return version
   */
public java.lang.String getVersion() throws android.os.RemoteException;
/**
   * returns the name of the author as a String<br>
   * 
   * @return name of author
   */
public java.lang.String getAuthor() throws android.os.RemoteException;
/**
   * short summary what the plugin does.<br>
   * 
   * @return short information
   */
public java.lang.String getInformation() throws android.os.RemoteException;
/**
   * Invoked when plugin is loaded<br>
   * 
   * @param plgIntfc
   *          PluginInterface
   */
public void onPluginStart() throws android.os.RemoteException;
/**
   * Invoked when plugin should be shown.<br>
   * will mostly be invoked by the Pluginmanager.<br>
   */
public void onPluginShow() throws android.os.RemoteException;
/**
   * Invoked when plugin should be hidden.<br>
   * will mostly be invoked by the Pluginmanager.<br>
   */
public void onPluginHide() throws android.os.RemoteException;
/**
   * Invoked when plugin should be closed.<br>
   */
public void onPluginClose() throws android.os.RemoteException;
/**
   * Invoked when connection is established
   */
public void onConnectionEstablished() throws android.os.RemoteException;
/**
   * Invoked when connection is lost
   */
public void onConnectionLost() throws android.os.RemoteException;
/**
   * Invoked when message received
   */
public void onMessageReceived(java.lang.String msg) throws android.os.RemoteException;
// TODO review if useful/unnecessary
/**
   * Invoked when command received
   */
public void onCommandReceived(java.lang.String cmd) throws android.os.RemoteException;
}
