Added first fetching of meetings trough UIManager
[qtmeetings] / src / Domain / Room.cpp
1 #include "Room.h"
2
3 Room::Room( const QString &aName, const QString &aAddress )
4 {
5         this->iName = aName;
6         this->iAddress = aAddress;
7 }
8
9 Room::~Room()
10 {
11 }
12
13 QString Room::address() const
14 {
15         return iAddress;
16 }
17
18 QString Room::name() const
19 {
20         return iName;
21 }
22
23 bool Room::equals( const Room &aOther ) const
24 {
25         if ( iName == aOther.iName
26                   && iAddress == aOther.iAddress )
27         {
28                 return true;
29         }
30         return false;
31 }
32
33 QString Room::toString() const
34 {
35         QString roomToString = QString( "[Room: name:%1 address:%2 ]" )
36                                      .arg( iName )
37                                      .arg( iAddress );
38
39         return roomToString;
40 }
41
42 bool Room::caseInsensitiveLessThan( const Room *aRoom1, const Room *aRoom2 )
43 {
44         return aRoom1->iName.toLower() < aRoom2->iName.toLower();
45 }