Public Types | Public Member Functions
Tonido::Data::Peer Class Reference

Holds a Peer Object. More...

List of all members.

Public Types

typedef boost::shared_ptr< PeerSharedPtr
typedef std::vector
< Peer::SharedPtr > 
Collection

Public Member Functions

 Peer ()
 Ctor.
 Peer (const PeerID &a_peer, const std::string &a_emailId, const std::string &a_name, const std::string &a_location, const Data::RawData::SharedPtr &a_rawData, const std::string &a_lastOnline, int a_gmtOffset)
 ~Peer (void)
 Dtor.
const std::string & getEmailId ()
 Gets EmailID of this peer.
void setEmailId (const std::string &a_emailId)
 Set Peer's Email Id.
const PeerIDgetPeerID ()
 Get Peer ID.
void setPeerID (const PeerID &a_peer)
 Set Peer Id.
const std::string & getName ()
 Get Name of the Peer.
void setName (const std::string &a_name)
 Set Peer's Name.
const std::string & getLocation ()
 Get Location of the Peer.
void setLocation (const std::string &a_location)
 Set Peer's Location.
const Data::RawData::SharedPtr & getImage ()
 Get Peer's Image.
void setImage (const Data::RawData::SharedPtr &a_rawData)
 Set Peer's Image.
std::string getLastOnline ()
 Returns when the Peer was last online.
void setLastOnline (const std::string &a_online)
 Updates the last online status.
void updateLastOnline ()
 Updates the last online status to now()
void setGMTOffset (int a_gmtOffset)
 Set Peer GMT Offset.
int getGMTOffset ()
 Get Peer GMT Offset.
std::string getLocalTime ()
 Get Peer's local time.

Detailed Description

Holds a Peer Object.


Constructor & Destructor Documentation

Tonido::Data::Peer::Peer ( )

Ctor.

details if needed ...

Tonido::Data::Peer::~Peer ( void  )

Dtor.

details if needed ...


Member Function Documentation

const std::string& Tonido::Data::Peer::getEmailId ( )

Gets EmailID of this peer.

Returns:
email id of the peer
int Tonido::Data::Peer::getGMTOffset ( )

Get Peer GMT Offset.

Returns:
GMT of the peer
const Data::RawData::SharedPtr& Tonido::Data::Peer::getImage ( )

Get Peer's Image.

Returns:
image of the peer
std::string Tonido::Data::Peer::getLastOnline ( )

Returns when the Peer was last online.

Returns:
when the peer was last online
std::string Tonido::Data::Peer::getLocalTime ( )

Get Peer's local time.

Returns:
local time of the peer
const std::string& Tonido::Data::Peer::getLocation ( )

Get Location of the Peer.

Returns:
location of the peer
const std::string& Tonido::Data::Peer::getName ( )

Get Name of the Peer.

Returns:
the name of the peer
const PeerID& Tonido::Data::Peer::getPeerID ( )

Get Peer ID.

Returns:
peer id
void Tonido::Data::Peer::setEmailId ( const std::string &  a_emailId)

Set Peer's Email Id.

Parameters:
[in]a_emailIdemail id to set
void Tonido::Data::Peer::setGMTOffset ( int  a_gmtOffset)

Set Peer GMT Offset.

Parameters:
[in]a_gmtOffsetGMT of the peer to set
void Tonido::Data::Peer::setImage ( const Data::RawData::SharedPtr &  a_rawData)

Set Peer's Image.

Parameters:
[in]a_rawDataimage of the peer to set
void Tonido::Data::Peer::setLastOnline ( const std::string &  a_online)

Updates the last online status.

Parameters:
[in]a_onlinestatus of the peer to update
void Tonido::Data::Peer::setLocation ( const std::string &  a_location)

Set Peer's Location.

Parameters:
[in]a_locationlocation of the peer to set
void Tonido::Data::Peer::setName ( const std::string &  a_name)

Set Peer's Name.

Parameters:
[in]a_namename of the peer to set
void Tonido::Data::Peer::setPeerID ( const PeerID a_peer)

Set Peer Id.

Internal Use Only

Parameters:
[in]a_peerpeer id to set

Generated on Wed Oct 12 2011 21:46:53. © CodeLathe LLC 2007-2011. All Rights Reserved.