device.hijack
Class HijackingKeys

java.lang.Object
  extended by device.hijack.HijackingKeys
All Implemented Interfaces:
android.os.Parcelable

public class HijackingKeys
extends java.lang.Object
implements android.os.Parcelable

Key class for mapping keys


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
 
Field Summary
static android.os.Parcelable.Creator<HijackingKeys> CREATOR
           
static int FLAG_EXCLUDE
           
static int FLAG_INCLUDE
           
static int FLAG_NOTHING
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
HijackingKeys()
           
 
Method Summary
 int describeContents()
           
 int getDefaultKeyCode()
          This function gets the default key code.
 java.lang.String getDefaultSymbol()
          This function gets the default key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.
 int getDefineKeyCode()
          This function gets the define key code.
 java.lang.String getDefineSymbol()
          This function gets the define key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.
 int getFlag()
          This function gets the flag such as FLAG_NOTHING, FLAG_EXCLUDE and FLAG_SPECIAL.
 java.lang.String getLabel()
          This function gets the key label.
 void readFromParcel(android.os.Parcel in)
           
 void setDefaultKeyCode(int defaultKeyCode)
          This function sets the default key code.
 void setDefaultSymbol(java.lang.String defaultSymbol)
          This function sets the default key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.
 void setDefineKeyCode(int defineKeyCode)
          This function sets the define key code.
 void setDefineSymbol(java.lang.String defineSymbol)
          This function sets the define key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.
 void setFlag(int flag)
          This function sets the flag such as FLAG_NOTHING, FLAG_EXCLUDE and FLAG_SPECIAL.
 void setLabel(java.lang.String label)
          This function sets the key label.
 java.lang.String toString()
           
 void writeToParcel(android.os.Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_NOTHING

public static final int FLAG_NOTHING
See Also:
Constant Field Values

FLAG_EXCLUDE

public static final int FLAG_EXCLUDE
See Also:
Constant Field Values

FLAG_INCLUDE

public static final int FLAG_INCLUDE
See Also:
Constant Field Values

CREATOR

public static final android.os.Parcelable.Creator<HijackingKeys> CREATOR
Constructor Detail

HijackingKeys

public HijackingKeys()
Method Detail

readFromParcel

public void readFromParcel(android.os.Parcel in)

describeContents

public int describeContents()
Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable

getLabel

public java.lang.String getLabel()
This function gets the key label.

Returns:
key label with String
See Also:
setLabel(java.lang.String)

setLabel

public void setLabel(java.lang.String label)
This function sets the key label.

Parameters:
label - new key label with String
See Also:
getLabel()

getDefaultSymbol

public java.lang.String getDefaultSymbol()
This function gets the default key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.

Returns:
default key symbol with String
See Also:
setDefaultSymbol(java.lang.String)

setDefaultSymbol

public void setDefaultSymbol(java.lang.String defaultSymbol)
This function sets the default key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.

Parameters:
defaultSymbol - new default key symbol with String
See Also:
getDefaultSymbol()

getDefaultKeyCode

public int getDefaultKeyCode()
This function gets the default key code.

Returns:
default key code with int
See Also:
setDefaultKeyCode(int)

setDefaultKeyCode

public void setDefaultKeyCode(int defaultKeyCode)
This function sets the default key code.

Parameters:
defaultKeyCode - new default key code with int
See Also:
getDefaultKeyCode()

getDefineSymbol

public java.lang.String getDefineSymbol()
This function gets the define key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.

Returns:
define key symbol with String
See Also:
setDefineSymbol(java.lang.String)

setDefineSymbol

public void setDefineSymbol(java.lang.String defineSymbol)
This function sets the define key symbol such as SCAN_F, DEL, HOME, VOLUME_UP and so on.

Parameters:
defineSymbol - new define key symbol with String
See Also:
getDefineSymbol()

getDefineKeyCode

public int getDefineKeyCode()
This function gets the define key code.

Returns:
define key code with int
See Also:
setDefineKeyCode(int)

setDefineKeyCode

public void setDefineKeyCode(int defineKeyCode)
This function sets the define key code.

Parameters:
defineKeyCode - new define key code with int
See Also:
getDefineKeyCode()

getFlag

public int getFlag()
This function gets the flag such as FLAG_NOTHING, FLAG_EXCLUDE and FLAG_SPECIAL.

Returns:
flag with int
See Also:
setFlag(int)

setFlag

public void setFlag(int flag)
This function sets the flag such as FLAG_NOTHING, FLAG_EXCLUDE and FLAG_SPECIAL.

Parameters:
flag - new flag with int
See Also:
getFlag()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object