Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGProfile Class Reference

#include <GProfile.h>

Inheritance diagram for CGProfile:

CComObject List of all members.

Public Member Functions

 CGProfile ()
virtual ~CGProfile ()
void Create ()
void Clear ()
BOOL IsValid () const
CXMLElementGetXML (LPCTSTR pszElement=NULL, BOOL bCreate=FALSE)
BOOL Load (LPCTSTR pszFile=NULL)
BOOL Save (LPCTSTR pszFile=NULL)
BOOL FromXML (CXMLElement *pXML)
CString GetNick () const
CString GetLocation () const
CString GetContact (LPCTSTR pszType) const
DWORD GetPackedGPS () const
CG2PacketCreateAvatar ()

Public Attributes

CGuarded< GGUIDGUID

Protected Attributes

CXMLElementm_pXML

Static Protected Attributes

static LPCTSTR xmlns = _T("http://www.shareaza.com/schemas/GProfile.xsd")

Constructor & Destructor Documentation

CGProfile::CGProfile  ) 
 

Definition at line 46 of file GProfile.cpp.

References NULL.

CGProfile::~CGProfile  )  [virtual]
 

Definition at line 51 of file GProfile.cpp.

References Clear().


Member Function Documentation

void CGProfile::Clear  ) 
 

Definition at line 106 of file GProfile.cpp.

References m_pXML, and NULL.

Referenced by Create(), FromXML(), and ~CGProfile().

void CGProfile::Create  ) 
 

Definition at line 84 of file GProfile.cpp.

References CXMLElement::AddAttribute(), CXMLElement::AddElement(), Clear(), GUID, m_pXML, NULL, and xmlns.

Referenced by GetXML(), Load(), and CCertificateProfilePage::OnGuidCreate().

CG2Packet * CGProfile::CreateAvatar  ) 
 

Definition at line 284 of file GProfile.cpp.

References G2_PACKET_PROFILE_AVATAR, CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), CG2Packet::GetStringLen(), m_pXML, CG2Packet::New(), NULL, CPacket::WriteGetPointer(), CG2Packet::WritePacket(), and CG2Packet::WriteString().

Referenced by CUploadTransferHTTP::RequestHostBrowse().

BOOL CGProfile::FromXML CXMLElement pXML  ) 
 

Definition at line 169 of file GProfile.cpp.

References Clear(), GUIDX::Decode(), CXMLElement::GetAttributeValue(), GUID, m_pXML, NULL, and xmlns.

Referenced by Load(), CG2Neighbour::OnProfileDelivery(), CChatSession::OnProfileDelivery(), and CHostBrowser::OnProfilePacket().

CString CGProfile::GetContact LPCTSTR  pszType  )  const
 

Definition at line 234 of file GProfile.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), m_pXML, and NULL.

CString CGProfile::GetLocation  )  const
 

Definition at line 206 of file GProfile.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), m_pXML, and NULL.

Referenced by CNeighbourTipCtrl::OnCalcSize(), CNeighbourTipCtrl::OnPaint(), CWizardProfilePage::OnWizardNext(), and CWizardSheet::RunWizard().

CString CGProfile::GetNick  )  const
 

Definition at line 194 of file GProfile.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), m_pXML, and NULL.

Referenced by CLocalSearch::CreatePacketG2(), CNeighbourTipCtrl::OnCalcSize(), CEDNeighbour::OnConnected(), CDatagrams::OnCrawlRequest(), CChatSession::OnHeadersComplete(), CPrivateChatFrame::OnLocalMessage(), CNeighbourTipCtrl::OnPaint(), CChatSession::OnProfileDelivery(), CWizardProfilePage::OnSetActive(), CWizardProfilePage::OnWizardNext(), CRemote::PageNetworkNetwork(), CWizardSheet::RunWizard(), CBTClient::SendBeHandshake(), CUploadTransferHTTP::SendDefaultHeaders(), CEDClient::SendHello(), CDownloadTransferHTTP::SendRequest(), CNeighboursWnd::Update(), CBrowseHeaderCtrl::Update(), and CBrowseHostWnd::UpdateMessages().

DWORD CGProfile::GetPackedGPS  )  const
 

Definition at line 260 of file GProfile.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), m_pXML, NULL, and WORDLIM.

Referenced by CDatagrams::OnCrawlRequest().

CXMLElement * CGProfile::GetXML LPCTSTR  pszElement = NULL,
BOOL  bCreate = FALSE
 

Definition at line 68 of file GProfile.cpp.

References Create(), CXMLElement::GetElementByName(), m_pXML, and NULL.

Referenced by CContactProfilePage::AddAddress(), CProfileProfilePage::OnInitDialog(), CIdentityProfilePage::OnInitDialog(), CFavouritesProfilePage::OnInitDialog(), CContactProfilePage::OnInitDialog(), CBioProfilePage::OnInitDialog(), CAvatarProfilePage::OnInitDialog(), CProfileProfilePage::OnOK(), CIdentityProfilePage::OnOK(), CFavouritesProfilePage::OnOK(), CBioProfilePage::OnOK(), CAvatarProfilePage::OnOK(), CG2Neighbour::OnProfileChallenge(), CChatSession::OnProfileChallenge(), CWizardProfilePage::OnSetActive(), CWizardProfilePage::OnWizardNext(), CUploadTransferHTTP::RequestHostBrowse(), and CBrowseProfileCtrl::UpdateDocument2().

BOOL CGProfile::IsValid  )  const
 

Definition at line 59 of file GProfile.cpp.

References CXMLElement::GetElementByName(), m_pXML, and NULL.

Referenced by CNeighbourTipCtrl::OnCalcSize(), CChatSession::OnHeadersComplete(), CNeighbourTipCtrl::OnPaint(), CG2Neighbour::OnProfileChallenge(), CChatSession::OnProfileChallenge(), CChatSession::OnProfileDelivery(), CHostBrowser::OnProfilePacket(), CHandshake::OnRead(), CChatWindows::OpenPrivate(), CHostBrowser::ReadContent(), CUploadTransferHTTP::RequestHostBrowse(), CBrowseProfileCtrl::Update(), CBrowseHeaderCtrl::Update(), and CBrowseHostWnd::UpdateMessages().

BOOL CGProfile::Load LPCTSTR  pszFile = NULL  ) 
 

Definition at line 115 of file GProfile.cpp.

References Create(), CXMLElement::FromFile(), FromXML(), CSettings::General, NULL, Settings, and CSettings::sGeneral::UserPath.

Referenced by CShareazaApp::InitInstance().

BOOL CGProfile::Save LPCTSTR  pszFile = NULL  ) 
 

Definition at line 138 of file GProfile.cpp.

References CSettings::General, m_pXML, NULL, Settings, CXMLElement::ToString(), and CSettings::sGeneral::UserPath.

Referenced by CProfileManagerDlg::OnApply(), CProfileManagerDlg::OnOK(), and CWizardProfilePage::OnWizardNext().


Member Data Documentation

CGuarded< GGUID > CGProfile::GUID
 

Definition at line 40 of file GProfile.h.

Referenced by Create(), CNetwork::CreateID(), CLocalSearch::CreatePacketG2(), FromXML(), CNetwork::GetNodeRoute(), CChatSession::OnChatRequest(), CHandshake::OnConnected(), CEDNeighbour::OnConnected(), CCertificateProfilePage::OnGuidCreate(), CCertificateProfilePage::OnInitDialog(), CChatSession::OnProfileDelivery(), CG1Neighbour::OnPush(), CNetwork::RoutePacket(), CEDClient::SendHello(), CG2Neighbour::SendLNI(), and CLocalSearch::WriteTrailerG1().

CXMLElement* CGProfile::m_pXML [protected]
 

Definition at line 42 of file GProfile.h.

Referenced by Clear(), Create(), CreateAvatar(), FromXML(), GetContact(), GetLocation(), GetNick(), GetPackedGPS(), GetXML(), IsValid(), and Save().

LPCTSTR CGProfile::xmlns = _T("http://www.shareaza.com/schemas/GProfile.xsd") [static, protected]
 

Definition at line 35 of file GProfile.cpp.

Referenced by Create(), and FromXML().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:07 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2