CPbkViewState Class Reference
class CPbkViewState : public CBase
|
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.
Public Member Enumerations
|
enum
|
TDataType
{
EEnd
= 0,
EFocusedContactId
,
ETopContactId
,
EMarkedContactIds
,
EFocusedFieldIndex
,
ETopFieldIndex
,
EFieldDataArray
,
EParentContactId
,
EFlags
}
|
enum
|
TFlags
{
ENullFlags
= 0,
EFocusFirst
= 0x0001,
EFocusLast
= 0x0002,
EInitialized
= 0x0004,
ESendToBackground
= 0x0008 }
|
Constructor & Destructor Documentation
CPbkViewState()
CPbkViewState
|
(
|
)
|
[private]
|
Member Functions Documentation
ExternalizeL(RWriteStream &)
FieldDataArray()
IMPORT_C CPbkFieldDataArray *
|
FieldDataArray
|
(
|
)
|
const
|
Returns field data array, NULL if not set.
Flags()
IMPORT_C
TUint
|
Flags
|
(
|
)
|
const
|
FocusedContactId()
Returns id of the focused contact.
FocusedFieldIndex()
IMPORT_C
TInt
|
FocusedFieldIndex
|
(
|
)
|
const
|
Returns index of the focused field (field is from
FocusedContactId()
), -1 when no field focused.
InternalizeL(RReadStream &)
Parameters
RReadStream
& aStream
|
A stream from where this objects state can be internalized from.
|
MarkedContactIds()
Returns const array of marked contacts ids, NULL if not set.
MarkedContactIds()
Returns array of marked contacts ids, NULL if not set. Owmership not transferred.
MergeViewState(CPbkViewState &)
Merges another view state to this view state by setting values from the parameter and overriding any previous values in this state.
Parameters
CPbkViewState
& 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.
|
NewL()
Creates and returns a new instance of this class.
NewL(RReadStream &)
Creates and returns a new instance of this class initialized from aStream.
Parameters
RReadStream
& aStream
|
A view state stream to internalize.
|
NewL(const TDesC8 &)
Creates and returns a new instance of this class initialized from aBuf.
Parameters
const
TDesC8
& aBuf
|
A view state buffer to internalize.
|
NewLC()
Like
NewL()
, but leaves the object on the cleanup stack
NewL
NewLC(RReadStream &)
Parameters
RReadStream
& aStream
|
A view state stream to internalize.
|
NewLC(const TDesC8 &)
Parameters
const
TDesC8
& aBuf
|
A view state buffer to internalize.
|
PackL()
IMPORT_C
HBufC8
*
|
PackL
|
(
|
)
|
const
|
Packages and returns this object in a buffer. Caller is responsible of deleting the buffer.
PackLC()
IMPORT_C
HBufC8
*
|
PackLC
|
(
|
)
|
const
|
Like PackL, but leaves the buffer on the cleanup stack.
PackL
ParentContactId()
Returns the focused contact id's parent, KNullContactId if not set.
Reset()
Reset this state to empty.
SetFieldDataArray(CPbkFieldDataArray *)
IMPORT_C void
|
SetFieldDataArray
|
(
|
CPbkFieldDataArray *
|
aFieldDataArray
|
)
|
|
Sets field data array to aArray. Destroys previous array and takes ownership of aArray.
Parameters
CPbkFieldDataArray * aFieldDataArray
|
Sets the field data array.
|
SetFlags(TUint)
IMPORT_C void
|
SetFlags
|
(
|
TUint
|
aFlags
|
)
|
|
Sets the view state flags.
Parameters
TUint
aFlags
|
Sets the view state parameters. See CPbkViewState::TFlags.
|
SetFocusedContactId(TContactItemId)
Sets id of the focused contact to aId.
SetFocusedFieldIndex(TInt)
IMPORT_C void
|
SetFocusedFieldIndex
|
(
|
TInt
|
aIndex
|
)
|
|
Sets index of the focused field to aIndex (field from
FocusedContactId()
), -1 when no field focused.
Parameters
TInt
aIndex
|
Sets focused field index.
|
SetMarkedContactIds(CContactIdArray *)
Sets the array of marked contact ids to aArray. Destroys previous array and takes ownership of aArray.
SetParentContactId(TContactItemId)
Sets the focused contact ids parent contact id.
SetTopContactId(TContactItemId)
Sets id of the topmost contact to aId.
SetTopFieldIndex(TInt)
IMPORT_C void
|
SetTopFieldIndex
|
(
|
TInt
|
aIndex
|
)
|
|
Sets index of the topmost field to aIndex (field from
FocusedContactId()
), -1 when no topmost field.
Parameters
TInt
aIndex
|
Sets the topmost field index.
|
TopContactId()
Returns id of the topmost contact.
TopFieldIndex()
IMPORT_C
TInt
|
TopFieldIndex
|
(
|
)
|
const
|
Returns index of the topmost field (field is from
FocusedContactId()
), -1 when no topmost field.
Uid()
IMPORT_C
TUid
|
Uid
|
(
|
)
|
[static]
|
Returns the message uid for use with view server messages.
UnpackL(const TDesC8 &)
IMPORT_C void
|
UnpackL
|
(
|
const
TDesC8
&
|
aPack
|
)
|
|
Sets this state from aPack previously created with PackL.
PackL
PackLC
Parameters
const
TDesC8
& aPack
|
Previously packaged state.
|
operator==(const CPbkViewState &)
Member Enumerations Documentation
Enum TDataType
Enumerators
EEnd = 0
|
|
EFocusedContactId
|
|
ETopContactId
|
|
EMarkedContactIds
|
|
EFocusedFieldIndex
|
|
ETopFieldIndex
|
|
EFieldDataArray
|
|
EParentContactId
|
|
EFlags
|
|
Enum TFlags
Enumerators
ENullFlags = 0
|
|
EFocusFirst = 0x0001
|
|
EFocusLast = 0x0002
|
|
EInitialized = 0x0004
|
|
ESendToBackground = 0x0008
|
|
Member Data Documentation
const TUid KUid
const
TUid
|
KUid
|
[private, static]
|
CPbkFieldDataArray * iFieldDataArray
CPbkFieldDataArray *
|
iFieldDataArray
|
[private]
|
TContactItemId
iFocusedContactId
TInt
iFocusedFieldIndex
TInt
|
iFocusedFieldIndex
|
[private]
|
CContactIdArray * iMarkedContactIds
TContactItemId
iParentContactId
TContactItemId
iTopContactId
TInt
iTopFieldIndex
TInt
|
iTopFieldIndex
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.