CAknQueryValueDateArray Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknqueryvaluedate.h>

Detailed Description

Wraps an array of dates, adapts it into a descriptor array.

Public Types

typedef CArrayFix< TTime >  TimeArray
  Typedef for array containing TTime items.
enum   { KSafeSizeOfDescriptorForTTimeFormat = 128 }

Public Member Functions

IMPORT_C  ~CAknQueryValueDateArray ()
IMPORT_C void  SetArray (TimeArray &aArray)
  Set the array of values.
IMPORT_C TimeArray Array () const
  Get the array of values as a TArray.
IMPORT_C const HBufC *  FormatString () const
  Return the TTime format string that is used to generate MDesCArray values.
IMPORT_C TInt  FormattedStringSize () const
  See const TInt FormattedStringSize() const;.
virtual IMPORT_C TInt  MdcaCount () const
virtual IMPORT_C TPtrC  MdcaPoint (TInt aIndex) const
  Returns array element, converting value to text.

Static Public Member Functions

static IMPORT_C CAknQueryValueDateArray NewL (TInt aResourceId)
  Two-phased constructor.
static IMPORT_C CAknQueryValueDateArray NewLC (TInt aResourceId)
  Two-phased constructor.

Protected Member Functions

  CAknQueryValueDateArray ()
void  ConstructL (TInt aResourceId)
  2nd stage construction.

Member Typedef Documentation

typedef CArrayFix<TTime> CAknQueryValueDateArray::TimeArray
 

Typedef for array containing TTime items.


Member Enumeration Documentation

anonymous enum
 
Enumerator:
KSafeSizeOfDescriptorForTTimeFormat 

Constructor & Destructor Documentation

IMPORT_C CAknQueryValueDateArray::~CAknQueryValueDateArray  ) 
 
CAknQueryValueDateArray::CAknQueryValueDateArray  )  [protected]
 

Member Function Documentation

IMPORT_C TimeArray* CAknQueryValueDateArray::Array  )  const
 

Get the array of values as a TArray.

Note that client can use any implementation of array class, but the array is treated as a TArray.

Returns:
array of values, ownership is not passed
void CAknQueryValueDateArray::ConstructL TInt  aResourceId  )  [protected]
 

2nd stage construction.

IMPORT_C const HBufC* CAknQueryValueDateArray::FormatString  )  const
 

Return the TTime format string that is used to generate MDesCArray values.

Returns:
format string
IMPORT_C TInt CAknQueryValueDateArray::FormattedStringSize  )  const
 

See const TInt FormattedStringSize() const;.

virtual IMPORT_C TInt CAknQueryValueDateArray::MdcaCount  )  const [virtual]
 
Returns:
count of contained array
virtual IMPORT_C TPtrC CAknQueryValueDateArray::MdcaPoint TInt  aIndex  )  const [virtual]
 

Returns array element, converting value to text.

WARNING: the returned pointer is only valid until the next time this method is invoked.

Parameters:
aIndex  of element to return
Returns:
descriptor representing array element, ownership is not passed
static IMPORT_C CAknQueryValueDateArray* CAknQueryValueDateArray::NewL TInt  aResourceId  )  [static]
 

Two-phased constructor.

static IMPORT_C CAknQueryValueDateArray* CAknQueryValueDateArray::NewLC TInt  aResourceId  )  [static]
 

Two-phased constructor.

IMPORT_C void CAknQueryValueDateArray::SetArray TimeArray aArray  ) 
 

Set the array of values.

Note that client can use any implementation of array class, but must pass in a TArray generated from it (by calling the Array() method on the array class)

Parameters:
aArray  array of values, ownership is not passed

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top