NameInfo Class

The NameInfo class is derived from VObject. It contains name information about the contact.

Defined in: nameinfo.hpp and nameinfo.cpp

Class Members

Data Members

public

string first

First name.

string middle

Middle name.

string last

Last name.

string title

Surname.

string nickName

Nick name.

string displayName

Combines the first, middle, last and nick names based on the value of displayFormat.

unsigned short displayFormat

Specifies the format of display name.

Member Functions

public

NameInfo (void)

Constructs a NameInfo object.

NameInfo (const NameInfo & that)

Constructs a NameInfo object that is a copy of the specified NameInfo object.

virtual ~NameInfo (void)

Destructs a NameInfo object.

NameInfo & operator= (const NameInfo & that)

Assignment operator.

bool operator== (const NameInfo & that)

Equality operator.

bool operator!= (const NameInfo & that)

INequality operator.

bool operator< (const NameInfo & that)

Less than operator.

bool operator> (const NameInfo & that)

Greater than operator.

virtual char * createDisplayName (void)

Creates the display name based on displayFormat, places it in displayName an returns a pointer to displayName's  char string.

void clear (void)

Clears all the data fields in the object.

virtual void populateEditView (void)

Overrides VObject's populateEditView function and initializes the object's data members with values that will be displayed during the view editing process.

friend ostream & operator<< (ostream & os, NameInfo & obj)

Stream object out.

friend istream & operator>> (istream & is,NameInfo & obj)

Stream object in.

Copyright 2002-2007 Outerface Technologies, Inc.