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 Parcelable
Parcelable.describeContents()
public void writeToParcel(Parcel out, int arg1)
writeToParcel
in interface Parcelable
Parcelable.writeToParcel(Parcel, int)
public final void createFromDb(Cursor c)
c
- cursor on the database queried from SipProfile.ACCOUNT_STATUS_URI
public 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_ID
public void setPjsuaId(int pjsuaId)
pjsuaId
- the pjsuaId to setpublic int getPjsuaId()
PJSUA_ID
public void setWizard(String wizard)
wizard
- the wizard to setpublic void setActive(boolean active)
active
- the active to setpublic boolean isActive()
ACTIVE
public void setStatusCode(int statusCode)
statusCode
- the statusCode to setpublic int getStatusCode()
STATUS_TEXT
public void setStatusText(String statusText)
statusText
- the statusText to setpublic String getStatusText()
STATUS_TEXT
public void setAddedStatus(int addedStatus)
addedStatus
- the addedStatus to setpublic int getAddedStatus()
ADDED_STATUS
public void setExpires(int expires)
expires
- the expires to setpublic int getExpires()
EXPIRES
public CharSequence getDisplayName()
DISPLAY_NAME
public int getPriority()
PRIORITY
public 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()