NokSync

KaarPoSoft

NokiaContact Class Reference

#include <NokiaContact.h>

Inheritance diagram for NokiaContact:

INokiaContact List of all members.

Detailed Description

Wrapper around PhonebookAdapterDS3::IContact2.


Public Member Functions

void  AddField (in long valueType, in AString stringValue, out long hResult, out long nmpResult)
  Add a field of information from the contact.
long  AmountOfFields (inout long hResult, inout long nmpResult)
  Return number of fields this contact has.
void  DeleteField (in long fieldIndex, out long hResult, out long nmpResult)
  Delete a field of information from the contact.
void  GetField (in long fieldIndex, inout long valueType, out AString stringValue, out long hResult, out long nmpResult)
  Get a field of information from the contact.
ACString  GetLastErrorString ()
  Return description of last error.
long  GetLocation (out long hResult, out long nmpResult)
  Get location of the contact.
void  SetField (in long fieldIndex, in AString stringValue, out long hResult, out long nmpResult)
  Set a field of information from the contact.
double  TimeStamp (inout long hResult, inout long nmpResult)
  Return timestamp of this contact (does not work).

Static Public Member Functions

static nsresult  INokiaContactFromIContact2Ptr (IContact2Ptr pIContact2, long location, void **aResult)
  Construct NokiaContact from IContact2Ptr.

Public Attributes

long  location
  Location index on NOKIA phone.
PhonebookAdapterDS3::IContact2Ptr  pIContact2
  Pointer to the underlying IContact2.

Member Function Documentation

void INokiaContact::AddField ( in long  valueType,
in AString  stringValue,
out long  hResult,
out long  nmpResult  
) [inherited]

Add a field of information from the contact.

Parameters:
valueType  Input: the type of value in the field (FieldType enumeration)
stringValue  Input: the value of the field
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)

long INokiaContact::AmountOfFields ( inout long  hResult,
inout long  nmpResult  
) [inherited]

Return number of fields this contact has.

Parameters:
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)
Returns:
Number of fields

void INokiaContact::DeleteField ( in long  fieldIndex,
out long  hResult,
out long  nmpResult  
) [inherited]

Delete a field of information from the contact.

Parameters:
fieldIndex  Input: the index of the field to delete
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)

void INokiaContact::GetField ( in long  fieldIndex,
inout long  valueType,
out AString  stringValue,
out long  hResult,
out long  nmpResult  
) [inherited]

Get a field of information from the contact.

Parameters:
fieldIndex  Input: the index of the field to get
valueType  Output: the type of value in the field (FieldType enumeration)
stringValue  Output: the value of the field
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)

ACString INokiaContact::GetLastErrorString (  )  [inherited]

Return description of last error.

Returns:
ACString

long INokiaContact::GetLocation ( out long  hResult,
out long  nmpResult  
) [inherited]

Get location of the contact.

Parameters:
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)
Returns:
The location

static nsresult NokiaContact::INokiaContactFromIContact2Ptr ( IContact2Ptr  pIContact2,
long  location,
void **  aResult  
) [static]

Construct NokiaContact from IContact2Ptr.

Parameters:
pIContact2  Pointer to the IContact2
location  Location index on NOKIA phone
aResult  Pointer to where pointer to NokiaContact should be stored
Returns:
NS_OK on success

void INokiaContact::SetField ( in long  fieldIndex,
in AString  stringValue,
out long  hResult,
out long  nmpResult  
) [inherited]

Set a field of information from the contact.

Parameters:
fieldIndex  Input: the index of the field to set
stringValue  Input: the value of the field
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)

double INokiaContact::TimeStamp ( inout long  hResult,
inout long  nmpResult  
) [inherited]

Return timestamp of this contact (does not work).

This does not seem to work, NOKIA phone always returns zero.

Parameters:
hResult  (see nsresult, hResult and nmpResult in NokSync)
nmpResult  (see nsresult, hResult and nmpResult in NokSync)
Returns:
Zero (!)


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

Doxygen.org   SourceForge.net