User Class Reference

Class to store user information (applies to friends also). More...

#include "user/user.h"

List of all members.

Public Member Functions

 User (const QString &address, const QPointF &coordinates, const QString &name, const QString &note, const QUrl &imageUrl, const QString &timestamp, const bool &type, const QString &userId, const QString &units=0, const double &value=0)
 Constructor, initializes member data.
 User ()
 Default constructor, initializes member data as NULL/0.
void setAddress (const QString &address)
 Set address.
void setCoordinates (const QPointF &coordinates)
 Set coordinates ( x = lon, y = lat ).
void setDistance (const double &value, const QString &units)
 Set distance.
void setNote (const QString &note)
 Set note.
void setProfileImage (const QPixmap &image)
 Set profile image.
void setProfileImageUrl (const QUrl &imageUrl)
 Set download address for profile image.
void setTimestamp (const QString &timestamp)
 Set timestamp for last status update, timestamp is in literal mode.
const QString & address () const
 Get address.
const QPointF & coordinates () const
 Get coordinates.
void distance (double &value, QString &units) const
 Get distance and units.
const QString & name () const
 Get name.
const QString & note () const
 Get note/status message.
const QPixmap & profileImage () const
 Get profile image.
const QUrl & profileImageUrl () const
 Get download address for profile image.
const QString & timestamp () const
 Get timestamp of last status update.
const bool & type () const
 Get user type.
const QString & userId () const
 Get userId.

Private Attributes

QString m_address
 placeholder for address information
QPointF m_coordinates
 placeholder for coordinates
QString m_name
 placeholder for name
QString m_note
 placeholder for note
QUrl m_profileImageUrl
 placeholder for image url
QString m_timestamp
 placeholer for timestamp
bool m_type
 placeholder for user type
QString m_units
 placeholder for distance unit type
QString m_userId
 placeholder for userId
double m_value
 placeholder for distance value
QPixmap m_profileImage
 placeholder for image

Detailed Description

Class to store user information (applies to friends also).

Author:
Henri Lampela

Member Function Documentation

const QString & User::address (  )  const

Get address.

Returns:
QString address
const QPointF & User::coordinates (  )  const

Get coordinates.

Returns:
QPointF coordinates
void User::distance ( double &  value,
QString &  units 
) const

Get distance and units.

Parameters:
value distance
units unit type
const QString & User::name (  )  const

Get name.

Returns:
QString profile name
const QString & User::note (  )  const

Get note/status message.

Returns:
QString note
const QPixmap & User::profileImage (  )  const

Get profile image.

Returns:
QPixmap image
const QUrl & User::profileImageUrl (  )  const

Get download address for profile image.

Returns:
QString url
void User::setAddress ( const QString &  address  ) 

Set address.

Parameters:
address street address
void User::setCoordinates ( const QPointF &  coordinates  ) 

Set coordinates ( x = lon, y = lat ).

Parameters:
coordinates coordinates
void User::setDistance ( const double &  value,
const QString &  units 
)

Set distance.

Parameters:
value distance
units unit type
void User::setNote ( const QString &  note  ) 

Set note.

Parameters:
note note/status message
void User::setProfileImage ( const QPixmap &  image  ) 

Set profile image.

Parameters:
image Image
void User::setProfileImageUrl ( const QUrl &  imageUrl  ) 

Set download address for profile image.

Parameters:
imageUrl image url of big image
void User::setTimestamp ( const QString &  timestamp  ) 

Set timestamp for last status update, timestamp is in literal mode.

Parameters:
timestamp timestamp
const QString & User::timestamp (  )  const

Get timestamp of last status update.

Returns:
QString timestamp
const bool & User::type (  )  const

Get user type.

Returns:
bool user type (true = user, false = friend)
const QString & User::userId (  )  const

Get userId.

Returns:
QString userId

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

Generated on Thu Jun 10 09:44:07 2010 for Situare client for Maemo by  doxygen 1.6.1