class CViewContact : public CBase |
The representation of a contact item used in contact views.
It stores the contact item ID and other information. This includes a buffer holding the contents of all the item's fields, an array of indexes into the buffer indicating the start position of each field and a hint bit field (a combination of CContactDatabase::TContactViewFilter values) which is used in filtered views.
The fields are defined by the view's sort order (RContactViewSortOrder).
Private Member Functions | |
---|---|
void | ConstructL(TInt) |
void | ConstructL(const CViewContact &) |
Public Member Enumerations | |
---|---|
enum | TViewContactType { EContactItem, EGroup } |
Private Attributes | |
---|---|
TViewContactType | iContactType |
CViewContactExtension * | iExtension |
TContactItemId | iId |
RArray< TInt > | iTextIndexes |
void | ConstructL | ( | const CViewContact & | aContact | ) | [private] |
const CViewContact & aContact |
IMPORT_C TBool | ContactMatchesFilter | ( | TInt | aFilter | ) | const |
TInt aFilter |
TViewContactType | ContactType | ( | ) | const [inline] |
Gets the view item's type.
The view item's type.
void | CopyL | ( | const CViewContact & | aContact | ) |
const CViewContact & aContact |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
TPtrC | FindFirstPopulatedField | ( | TInt | aOffset, |
TInt & | aFoundPosition | |||
) | const |
TBool | HintFieldMatchesFilter | ( | TInt | aHintField, |
TInt | aFilter | |||
) | [static] |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C CViewContact * | NewL | ( | const CViewContact & | aContact | ) | [static] |
const CViewContact & aContact |
IMPORT_C CViewContact * | NewL | ( | TContactItemId | aId, |
TInt | aLength | |||
) | [static] |
TContactItemId aId | |
TInt aLength |
IMPORT_C CViewContact * | NewLC | ( | TContactItemId | aId | ) | [static] |
TContactItemId aId |
CViewContact * | NewLC | ( | RReadStream & | aStream | ) | [static] |
RReadStream & aStream |
void | SetContactType | ( | CViewContact::TViewContactType | aContactType | ) | [inline] |
Sets the view item's type.
CViewContact::TViewContactType aContactType | The view item's type. |
IMPORT_C void | SetFirstFieldForBlankContactL | ( | const TDesC & | aFirstField | ) |
const TDesC & aFirstField |
void | SetId | ( | TContactItemId | aId | ) | [inline] |
Sets the view item's ID.
TContactItemId aId | The contact item ID. |
Defines whether the contact view item is a contact group.
EContactItem |
The contact view item is not a contact group. |
EGroup |
The contact view item is a contact group (CContactGroup). |