org.marre.sms.nokia
Class NokiaOperatorLogo

java.lang.Object
  extended byorg.marre.sms.SmsConcatMessage
      extended byorg.marre.sms.SmsPortAddressedMessage
          extended byorg.marre.sms.nokia.NokiaOperatorLogo
All Implemented Interfaces:
SmsMessage

public class NokiaOperatorLogo
extends SmsPortAddressedMessage

Nokia Operator Logo message

Version:
$Id: NokiaOperatorLogo.java,v 1.13 2004/11/20 19:02:35 c95men Exp $
Author:
Markus Eriksson

Field Summary
protected  byte[] myBitmap
          The ota image as a byte array
protected  boolean myDiscardNokiaHeaders
          If set to true it will make the message two bytes shorter to make it possible to fit a 72x14 pixel image in one SMS instead of two.
protected  int myMcc
          GSM Mobile Country Code
protected  int myMnc
          GSM Mobile Network Code
 
Fields inherited from class org.marre.sms.SmsPortAddressedMessage
myDestPort, myOrigPort
 
Constructor Summary
NokiaOperatorLogo(byte[] theOtaImage, int[] theOperatorMccMnc)
          Creates a Nokia Operator Logo message
NokiaOperatorLogo(byte[] theOtaImage, int theMcc, int theMnc)
          Creates a Nokia Operator Logo message
NokiaOperatorLogo(byte[] theOtaImage, int theMcc, int theMnc, boolean discardHeaders)
          Creates a Nokia Operator Logo message
NokiaOperatorLogo(OtaBitmap theBitmap, int[] theOperatorMccMnc)
          Creates a Nokia Operator Logo message
NokiaOperatorLogo(OtaBitmap theOtaBitmap, int theMcc, int theMnc)
          Creates a Nokia Operator Logo message
 
Method Summary
 SmsUserData getUserData()
          Returns the whole UD
 
Methods inherited from class org.marre.sms.SmsPortAddressedMessage
getUdhElements, setPorts
 
Methods inherited from class org.marre.sms.SmsConcatMessage
getPdus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myDiscardNokiaHeaders

protected boolean myDiscardNokiaHeaders
If set to true it will make the message two bytes shorter to make it possible to fit a 72x14 pixel image in one SMS instead of two.
Note! This will probably only work on Nokia phones...


myBitmap

protected byte[] myBitmap
The ota image as a byte array


myMcc

protected int myMcc
GSM Mobile Country Code


myMnc

protected int myMnc
GSM Mobile Network Code

Constructor Detail

NokiaOperatorLogo

public NokiaOperatorLogo(OtaBitmap theOtaBitmap,
                         int theMcc,
                         int theMnc)
Creates a Nokia Operator Logo message

Parameters:
theOtaBitmap -
theMcc - GSM Mobile Country Code
theMnc - GSM Mobile Network Code

NokiaOperatorLogo

public NokiaOperatorLogo(byte[] theOtaImage,
                         int theMcc,
                         int theMnc)
Creates a Nokia Operator Logo message

Parameters:
theOtaImage - The ota image as a byte array
theMcc - GSM Mobile Country Code
theMnc - GSM Mobile Network Code

NokiaOperatorLogo

public NokiaOperatorLogo(byte[] theOtaImage,
                         int theMcc,
                         int theMnc,
                         boolean discardHeaders)
Creates a Nokia Operator Logo message

Parameters:
theOtaImage - The ota image as a byte array
theMcc - GSM Mobile Country Code
theMnc - GSM Mobile Network Code

NokiaOperatorLogo

public NokiaOperatorLogo(OtaBitmap theBitmap,
                         int[] theOperatorMccMnc)
Creates a Nokia Operator Logo message

Parameters:
theBitmap -
theOperatorMccMnc - Operator defined in org.marre.sms.util.GsmOperators

NokiaOperatorLogo

public NokiaOperatorLogo(byte[] theOtaImage,
                         int[] theOperatorMccMnc)
Creates a Nokia Operator Logo message

Parameters:
theOtaImage - The ota image as a byte array
theOperatorMccMnc -
Method Detail

getUserData

public SmsUserData getUserData()
Description copied from class: SmsConcatMessage
Returns the whole UD

Specified by:
getUserData in class SmsConcatMessage
Returns:
the UD


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.