comparison jid.cpp @ 6:48045176d1c6

ContactT and Ji improvments
author Goffi <goffi@goffi.org>
date Fri, 12 Aug 2011 22:08:37 +0200
parents 220e5619bf87
children
comparison
equal deleted inserted replaced
5:0412dc960e3a 6:48045176d1c6
122 void Jid::setResource(const QString& resource) 122 void Jid::setResource(const QString& resource)
123 { 123 {
124 m_resource = resource; 124 m_resource = resource;
125 } 125 }
126 126
127 bool Jid::isValid() 127 const bool& Jid::isValid() const
128 { 128 {
129 return m_valid; 129 return m_valid;
130 } 130 }
131
132 Jid& Jid::operator=(const Jid& other)
133 {
134 m_user = other.getUser();
135 m_domain = other.getDomain();
136 m_resource = other.getResource();
137
138 return *this;
139 }