public class SipProfileState extends Object implements Parcelable, Serializable
SipProfile.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_ID
Account id.
|
static String |
ACTIVE
Activation state.
|
static String |
ADDED_STATUS
Status of sip stack adding of the account.
|
static Parcelable.Creator<SipProfileState> |
CREATOR
Parcelable creator.
|
static String |
DISPLAY_NAME
Display name of the account.
|
static String |
EXPIRES
Latest know expires time.
|
static String[] |
FULL_PROJECTION |
static String |
PJSUA_ID
Identifier for underlying sip stack.
|
int |
primaryKey |
static String |
PRIORITY
Priority of the account.
|
static String |
REG_URI
Registration uri of the account.
|
static String |
STATUS_CODE
Status code of the latest registration.
|
static String |
STATUS_TEXT
Status comment of latest registration.
|
static String |
WIZARD
Wizard key.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
SipProfileState()
Should not be used for external use of the API.
|
SipProfileState(Cursor c)
Construct a sip state wrapper from a cursor retrieved with a
ContentProvider query on SipProfile.ACCOUNT_STATUS_URI. |
SipProfileState(Parcel in) |
SipProfileState(SipProfile account)
Should not be used for external use of the API.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createFromContentValue(ContentValues args)
Fill account state object from content values.
|
void |
createFromDb(Cursor c)
Fill account state object from cursor.
|
int |
describeContents() |
int |
getAccountId()
Get the identifier identifier of the account that this state is linked to.
|
int |
getAddedStatus() |
ContentValues |
getAsContentValue()
Should not be used for external use of the API.
|
static Comparator<SipProfileState> |
getComparator()
Compare accounts profile states.
|
CharSequence |
getDisplayName() |
int |
getExpires() |
int |
getPjsuaId()
Should not be used for external use of the API.
|
int |
getPriority() |
String |
getRegUri() |
int |
getStatusCode() |
String |
getStatusText() |
String |
getWizard() |
boolean |
isActive() |
boolean |
isAddedToStack()
Is the account added to sip stack yet?
|
boolean |
isValidForCall()
Is the account valid for sip calls?
|
void |
setActive(boolean active)
Should not be used for external use of the API.
|
void |
setAddedStatus(int addedStatus)
Should not be used for external use of the API.
|
void |
setDatabaseId(int databaseId) |
void |
setExpires(int expires)
Should not be used for external use of the API.
|
void |
setPjsuaId(int pjsuaId)
Should not be used for external use of the API.
|
void |
setPriority(int priority)
Should not be used for external use of the API.
|
void |
setRegUri(String regUri)
Should not be used for external use of the API.
|
void |
setStatusCode(int statusCode)
Should not be used for external use of the API.
|
void |
setStatusText(String statusText)
Should not be used for external use of the API.
|
void |
setWizard(String wizard)
Should not be used for external use of the API.
|
void |
writeToParcel(Parcel out,
int arg1) |
public int primaryKey
public static final String ACCOUNT_ID
SipProfile.FIELD_ID,
Integer,
Constant Field Valuespublic static final String PJSUA_ID
Integer,
Constant Field Valuespublic static final String WIZARD
SipProfile databaseString,
Constant Field Valuespublic static final String ACTIVE
SipProfile databaseBoolean,
Constant Field Valuespublic static final String STATUS_CODE
Integer,
Constant Field Valuespublic static final String STATUS_TEXT
String,
Constant Field Valuespublic static final String ADDED_STATUS
Integer,
Constant Field Valuespublic static final String EXPIRES
Integer,
Constant Field Valuespublic static final String DISPLAY_NAME
SipProfile databasepublic static final String PRIORITY
SipProfile databasepublic static final String REG_URI
SipProfile databasepublic static final String[] FULL_PROJECTION
public static final Parcelable.Creator<SipProfileState> CREATOR
public SipProfileState(Parcel in)
public SipProfileState()
public SipProfileState(SipProfile account)
account - The sip profile to associate this wrapper info to.public SipProfileState(Cursor c)
ContentProvider query on SipProfile.ACCOUNT_STATUS_URI.c - the cursor to unpackpublic int describeContents()
describeContents in interface ParcelableParcelable.describeContents()public void writeToParcel(Parcel out, int arg1)
writeToParcel in interface ParcelableParcelable.writeToParcel(Parcel, int)public final void createFromDb(Cursor c)
c - cursor on the database queried from SipProfile.ACCOUNT_STATUS_URIpublic final void createFromContentValue(ContentValues args)
args - content values to wrap.public ContentValues getAsContentValue()
public void setDatabaseId(int databaseId)
databaseId - the databaseId to setpublic int getAccountId()
ACCOUNT_IDpublic void setPjsuaId(int pjsuaId)
pjsuaId - the pjsuaId to setpublic int getPjsuaId()
PJSUA_IDpublic void setWizard(String wizard)
wizard - the wizard to setpublic void setActive(boolean active)
active - the active to setpublic boolean isActive()
ACTIVEpublic void setStatusCode(int statusCode)
statusCode - the statusCode to setpublic int getStatusCode()
STATUS_TEXTpublic void setStatusText(String statusText)
statusText - the statusText to setpublic String getStatusText()
STATUS_TEXTpublic void setAddedStatus(int addedStatus)
addedStatus - the addedStatus to setpublic int getAddedStatus()
ADDED_STATUSpublic void setExpires(int expires)
expires - the expires to setpublic int getExpires()
EXPIRESpublic CharSequence getDisplayName()
DISPLAY_NAMEpublic int getPriority()
PRIORITYpublic void setPriority(int priority)
priority - public void setRegUri(String regUri)
regUri - the regUri to setpublic boolean isAddedToStack()
public boolean isValidForCall()
public static final Comparator<SipProfileState> getComparator()