Class can be used to pass parameters the Phonebook application when launching the application with the symbian view launching mechanism.
|
Public Types |
enum | TDataType {
EEnd = 0,
EFocusedContactId,
ETopContactId,
EMarkedContactIds,
EFocusedFieldIndex,
ETopFieldIndex,
EFieldDataArray,
EParentContactId,
EFlags
} |
enum | TFlags {
ENullFlags = 0,
EFocusFirst = 0x0001,
EFocusLast = 0x0002,
EInitialized = 0x0004,
ESendToBackground = 0x0008
} |
Public Member Functions |
| ~CPbkViewState () |
| Destructor.
|
IMPORT_C TContactItemId | FocusedContactId () const |
| Returns id of the focused contact.
|
IMPORT_C TContactItemId | TopContactId () const |
| Returns id of the topmost contact.
|
IMPORT_C const CContactIdArray * | MarkedContactIds () const |
| Returns const array of marked contacts ids, NULL if not set.
|
IMPORT_C CContactIdArray * | MarkedContactIds () |
| Returns array of marked contacts ids, NULL if not set.
|
IMPORT_C TInt | FocusedFieldIndex () const |
| Returns index of the focused field (field is from FocusedContactId()), -1 when no field focused.
|
IMPORT_C TInt | TopFieldIndex () const |
| Returns index of the topmost field (field is from FocusedContactId()), -1 when no topmost field.
|
IMPORT_C CPbkFieldDataArray * | FieldDataArray () const |
| Returns field data array, NULL if not set.
|
IMPORT_C TContactItemId | ParentContactId () const |
| Returns the focused contact id's parent, KNullContactId if not set.
|
IMPORT_C TUint | Flags () const |
| Returns the view state flags.
|
IMPORT_C void | SetFocusedContactId (TContactItemId aId) |
| Sets id of the focused contact to aId.
|
IMPORT_C void | SetTopContactId (TContactItemId aId) |
| Sets id of the topmost contact to aId.
|
IMPORT_C void | SetMarkedContactIds (CContactIdArray *aArray) |
| Sets the array of marked contact ids to aArray.
|
IMPORT_C void | SetFocusedFieldIndex (TInt aIndex) |
| Sets index of the focused field to aIndex (field from FocusedContactId()), -1 when no field focused.
|
IMPORT_C void | SetTopFieldIndex (TInt aIndex) |
| Sets index of the topmost field to aIndex (field from FocusedContactId()), -1 when no topmost field.
|
IMPORT_C void | SetFieldDataArray (CPbkFieldDataArray *aFieldDataArray) |
| Sets field data array to aArray.
|
IMPORT_C void | Reset () |
| Reset this state to empty.
|
IMPORT_C void | SetParentContactId (TContactItemId aParentContactId) |
| Sets the focused contact ids parent contact id.
|
IMPORT_C void | SetFlags (TUint aFlags) |
| Sets the view state flags.
|
void | MergeViewState (CPbkViewState &aOtherState) |
| Merges another view state to this view state by setting values from the parameter and overriding any previous values in this state.
|
IMPORT_C HBufC8 * | PackL () const |
| Packages and returns this object in a buffer.
|
IMPORT_C HBufC8 * | PackLC () const |
| Like PackL, but leaves the buffer on the cleanup stack.
|
IMPORT_C void | UnpackL (const TDesC8 &aPack) |
| Sets this state from aPack previously created with PackL.
|
IMPORT_C void | ExternalizeL (RWriteStream &aStream) const |
| Externalizes this object to aStream.
|
IMPORT_C void | InternalizeL (RReadStream &aStream) |
| Internalizes this object from aStream.
|
IMPORT_C TBool | operator== (const CPbkViewState &aRhs) const |
Static Public Member Functions |
static IMPORT_C CPbkViewState * | NewL () |
| Creates and returns a new instance of this class.
|
static IMPORT_C CPbkViewState * | NewLC () |
| Like NewL(), but leaves the object on the cleanup stack.
|
static IMPORT_C CPbkViewState * | NewL (RReadStream &aStream) |
| Creates and returns a new instance of this class initialized from aStream.
|
static IMPORT_C CPbkViewState * | NewLC (RReadStream &aStream) |
| Like NewL(RReadStream& aStream) but leaves the object on the cleanup stack.
|
static IMPORT_C CPbkViewState * | NewL (const TDesC8 &aBuf) |
| Creates and returns a new instance of this class initialized from aBuf.
|
static IMPORT_C CPbkViewState * | NewLC (const TDesC8 &aBuf) |
| Like NewL(const TDesC8& aBuf) but leaves the object on the cleanup stack.
|
static IMPORT_C TUid | Uid () |
| Returns the message uid for use with view server messages.
|