public class

SCContactDetailController

extends SCBasePictureController<V extends IPictureViewHolder>
implements IContactDetailController
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseController<T extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
     ↳ com.c2call.sdk.pub.gui.core.controller.SCBasePictureController<V extends com.c2call.sdk.pub.gui.core.controller.IPictureViewHolder>
       ↳ com.c2call.sdk.pub.gui.contactdetail.controller.SCContactDetailController

Summary

[Expand]
Inherited Fields
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
Public Constructors
SCContactDetailController(View view, SCViewDescription viewDescription)
Public Methods
SCFriendData getData()
Gets the friend data.
SCFriendExtraData getExtraData()
Gets the extra data.
String getUserid()
boolean isEditing()
Checks if this controller is in edit mode.
void onButtonAddNumberClick(View v)
On button add number click.
void onButtonCallClick(View v)
On button call click.
void onButtonInviteClick(View v)
On button invite click.
void onButtonMessageClick(View v)
On button message click.
void onButtonSaveClick(View v)
On button save click.
void onButtonVideoCallClick(View v)
On button video call click.
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
SCChoiceDialog onCreateAddNumberDialog()
Called to create a AddNumber diaog.
boolean onCreateExtraDataIfNecessary()
Creates an instance of SCFriendExtraData for the SCFriendData of this controller, if that is not already existing
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onIconFavoriteClick(View v)
On icon favorite click.
void onNumberCallClicked(View v, SCPhoneNumberType type, String number)
On number call clicked.
void onNumberDeleteClicked(View v, SCPhoneNumberType type)
On number delete clicked.
void onNumberSmsClicked(View v, SCPhoneNumberType type, String number)
On number sms clicked.
void onNumberTextChanged(View v, SCPhoneNumberType type, CharSequence s)
On number text changed.
void onSectionAddNumberClick(View v)
On section add number click.
void save()
Saves the friend data.
void setContactDetailDecorator(IContactDetailDecorator decorator)
void setData(SCFriendData data)
Sets the friend data.
void setEditing(boolean isEditing)
Sets this controller into edit mode.
boolean toggleFavorite()
Protected Methods
String getCallmePushMessage()
void onBindViewHolder(IContactDetailViewHodler vh)
void onCall(String callee, boolean useVideo)
boolean onCallNumber(String number)
IContactDetailViewHodler onCreateViewHolder(View v, SCViewDescription vd)
void onEditAddressbookContact()
void onEditModusChanged(boolean isEditing)
boolean onSendCallmePush(String message)
boolean onSendSMS(String number)
synchronized void onUpdate(boolean updateExtraNumbers, boolean updatePriceInfo)
void onUpdateExtraNumbers()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
From class com.c2call.sdk.pub.gui.core.controller.SCBaseController
From class java.lang.Object
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.contactdetail.controller.IContactDetailController
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController
From interface com.c2call.sdk.pub.gui.core.controller.IPictureController
From interface com.c2call.sdk.pub.gui.core.controller.IUserController

Public Constructors

public SCContactDetailController (View view, SCViewDescription viewDescription)

Public Methods

public SCFriendData getData ()

Gets the friend data.

Returns
  • the friend data

public SCFriendExtraData getExtraData ()

Gets the extra data.

Returns
  • the extra data

public String getUserid ()

public boolean isEditing ()

Checks if this controller is in edit mode.

Returns
  • whether this controller is in edit mode

public void onButtonAddNumberClick (View v)

On button add number click.

Parameters
v the button that was clicked

public void onButtonCallClick (View v)

On button call click.

Parameters
v the button that was clicked

public void onButtonInviteClick (View v)

On button invite click.

Parameters
v the button that was clicked

public void onButtonMessageClick (View v)

On button message click.

Parameters
v the button that was clicked

public void onButtonSaveClick (View v)

On button save click.

Parameters
v the button that was clicked

public void onButtonVideoCallClick (View v)

On button video call click.

Parameters
v the v

public void onCreate (Activity context, SCActivityResultDispatcher resultDispatcher)

This should be called when your Activity is created. Typically in onCreate(...) of the surrounding Activiy.

Parameters
context the surrounding activity
resultDispatcher a result dispatcher that is used by the controller

public SCChoiceDialog onCreateAddNumberDialog ()

Called to create a AddNumber diaog. The dialog contains choices which number type (home, mobile, work, other) should be added

Returns
  • the sC choice dialog

public boolean onCreateExtraDataIfNecessary ()

Creates an instance of SCFriendExtraData for the SCFriendData of this controller, if that is not already existing

Returns
  • true, if successful

public synchronized void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onIconFavoriteClick (View v)

On icon favorite click.

Parameters
v the icon that was clicked

public void onNumberCallClicked (View v, SCPhoneNumberType type, String number)

On number call clicked.

Parameters
v the button that was clicked
type the type
number the number

public void onNumberDeleteClicked (View v, SCPhoneNumberType type)

On number delete clicked.

Parameters
v the button that was clicked
type the type

public void onNumberSmsClicked (View v, SCPhoneNumberType type, String number)

On number sms clicked.

Parameters
v the button that was clicked
type the type
number the number

public void onNumberTextChanged (View v, SCPhoneNumberType type, CharSequence s)

On number text changed.

Parameters
v the TextView that was changed
type the type
s the s

public void onSectionAddNumberClick (View v)

On section add number click.

Parameters
v the button that was clicked

public void save ()

Saves the friend data.

public void setContactDetailDecorator (IContactDetailDecorator decorator)

public void setData (SCFriendData data)

Sets the friend data.

Parameters
data the friend data

public void setEditing (boolean isEditing)

Sets this controller into edit mode.

Parameters
isEditing if true the contrller will be set into edit mode and leave it otherwise

public boolean toggleFavorite ()

Protected Methods

protected String getCallmePushMessage ()

protected void onBindViewHolder (IContactDetailViewHodler vh)

protected void onCall (String callee, boolean useVideo)

protected boolean onCallNumber (String number)

protected IContactDetailViewHodler onCreateViewHolder (View v, SCViewDescription vd)

protected void onEditAddressbookContact ()

protected void onEditModusChanged (boolean isEditing)

protected boolean onSendCallmePush (String message)

protected boolean onSendSMS (String number)

protected synchronized void onUpdate (boolean updateExtraNumbers, boolean updatePriceInfo)

protected void onUpdateExtraNumbers ()