#include <app/CPbkViewState.h>
class CPbkViewState : public CBase |
Public Member Enumerations | |
---|---|
enum | TDataType { EEnd, EFocusedContactId, ETopContactId, EMarkedContactIds, ..., EFlags } |
enum | TFlags { ENullFlags, EFocusFirst, EFocusLast, EInitialized, ESendToBackground } |
Generic Phonebook view state class. Class can be used to pass parameters the Phonebook application when launching the application with the symbian view launching mechanism.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes this object to aStream.
See also: InternalizeL
IMPORT_C CPbkFieldDataArray * | FieldDataArray | ( | ) | const |
Returns field data array, NULL if not set.
Returns: Field data array object, NULL if not set.
IMPORT_C TUint | Flags | ( | ) | const |
Returns the view state flags. See CPbkViewState::TFlags.
Returns: View state object flags
IMPORT_C TContactItemId | FocusedContactId | ( | ) | const |
Returns id of the focused contact.
Returns: Contact item id of the focused contact, KNullContactId if not set.
IMPORT_C TInt | FocusedFieldIndex | ( | ) | const |
Returns index of the focused field (field is from FocusedContactId()), -1 when no field focused.
Returns: Index of the focused field, -1 if no field is focused.
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalizes this object from aStream.
See also: ExternalizeL
Parameter | Description |
---|---|
aStream | A stream from where this objects state can be internalized from. |
IMPORT_C const CContactIdArray * | MarkedContactIds | ( | ) | const |
Returns const array of marked contacts ids, NULL if not set.
Returns: Contact id array of the marked contacts, NULL if not set.
IMPORT_C CContactIdArray * | MarkedContactIds | ( | ) |
Returns array of marked contacts ids, NULL if not set. Owmership not transferred.
Returns: Contact id array of the marked contacts, NULL if not set.
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.
Parameter | Description |
---|---|
aOtherState | The state to merge to this state. The properties which have a value in aOtherState override properties in this object. The aOtherState object may be modified by this function. |
IMPORT_C CPbkViewState * | NewL | ( | RReadStream & | aStream | ) | [static] |
Creates and returns a new instance of this class initialized from aStream.
Parameter | Description |
---|---|
aStream | A view state stream to internalize. |
IMPORT_C CPbkViewState * | NewL | ( | const TDesC8 & | aBuf | ) | [static] |
Creates and returns a new instance of this class initialized from aBuf.
Parameter | Description |
---|---|
aBuf | A view state buffer to internalize. |
IMPORT_C CPbkViewState * | NewLC | ( | RReadStream & | aStream | ) | [static] |
Like NewL(RReadStream& aStream) but leaves the object on the cleanup stack.
See also: NewL(RReadStream& aStream)
Parameter | Description |
---|---|
aStream | A view state stream to internalize. |
IMPORT_C CPbkViewState * | NewLC | ( | const TDesC8 & | aBuf | ) | [static] |
Like NewL(const TDesC8& aBuf) but leaves the object on the cleanup stack.
See also: NewL(const TDesC8& aBuf)
Parameter | Description |
---|---|
aBuf | A view state buffer to internalize. |
IMPORT_C HBufC8 * | PackL | ( | ) | const |
Packages and returns this object in a buffer. Caller is responsible of deleting the buffer.
Returns: Packaged state in a buffer.
IMPORT_C TContactItemId | ParentContactId | ( | ) | const |
Returns the focused contact id's parent, KNullContactId if not set.
Returns: Focused contact id's parent, KNullContactId if not set.
IMPORT_C void | SetFieldDataArray | ( | CPbkFieldDataArray * | aFieldDataArray | ) |
Sets field data array to aArray. Destroys previous array and takes ownership of aArray.
Parameter | Description |
---|---|
aFieldDataArray | Sets the field data array. |
IMPORT_C void | SetFlags | ( | TUint | aFlags | ) |
Sets the view state flags.
Parameter | Description |
---|---|
aFlags | Sets the view state parameters. See CPbkViewState::TFlags. |
IMPORT_C void | SetFocusedContactId | ( | TContactItemId | aId | ) |
Sets id of the focused contact to aId.
Parameter | Description |
---|---|
aId | Sets the focused contact id. |
IMPORT_C void | SetFocusedFieldIndex | ( | TInt | aIndex | ) |
Sets index of the focused field to aIndex (field from FocusedContactId()), -1 when no field focused.
Parameter | Description |
---|---|
aIndex | Sets focused field index. |
IMPORT_C void | SetMarkedContactIds | ( | CContactIdArray * | aArray | ) |
Sets the array of marked contact ids to aArray. Destroys previous array and takes ownership of aArray.
Parameter | Description |
---|---|
aArray | Sets the marked contact ids. |
IMPORT_C void | SetParentContactId | ( | TContactItemId | aParentContactId | ) |
Sets the focused contact ids parent contact id.
Parameter | Description |
---|---|
aParentContactId | Sets the contact ids parent id. |
IMPORT_C void | SetTopContactId | ( | TContactItemId | aId | ) |
Sets id of the topmost contact to aId.
Parameter | Description |
---|---|
aId | Sets the topmost contact id. |
IMPORT_C void | SetTopFieldIndex | ( | TInt | aIndex | ) |
Sets index of the topmost field to aIndex (field from FocusedContactId()), -1 when no topmost field.
Parameter | Description |
---|---|
aIndex | Sets the topmost field index. |
IMPORT_C TContactItemId | TopContactId | ( | ) | const |
Returns id of the topmost contact.
Returns: Contact item id of the top contact, KNullContactId if not set.
IMPORT_C TInt | TopFieldIndex | ( | ) | const |
Returns index of the topmost field (field is from FocusedContactId()), -1 when no topmost field.
Returns: Index of the topmost field, -1 if no topmost field.