6 //! Domain class. Describe a meeting room resource on Microsoft Exchange Server 2007.
8 * Domain class. Describe a meeting room resource on Microsoft Exchange Server 2007.
13 //! Enumeration of the status of the room.
15 * Enumeration of the status of the room. The room instance can have one of the two states.
19 BusyStatus, /*!< The room is reserved. */
20 FreeStatus /*!< The room is free. */
26 * Constructor to initialize a Room instance.
27 * \param aName The name of the meeting room.
28 * \param aAddress The mail address of the meeting room.
30 Room( const QString &aName, const QString &aAddress );
34 //! Gets the name of the room.
36 * Gets the name of the room.
37 * \return The string containing the name.
40 //! Gets the address of the room.
42 * Gets the address of the room.
43 * \return The string containing the address.
45 QString address() const;
46 //! Checks if two objects are equal.
48 * Checks if the another same type object is equal to the current instance.
49 * \param *aOther The pointer to another Room class instance.
50 * \return TRUE if equals; otherwise, FALSE.
52 bool equals( const Room &aOther ) const;
53 //! Makes a string to identify a room.
55 * Makes one string of the name and the address of the room.
56 * \return The string containing the name and address of the room.
58 QString toString() const;
59 //! Method to compare equalness of two rooms.
61 * Compares if two rooms are equal. Is not case sensitive.
62 * \param *aRoom1 A Pointer to the first room class instance.
63 * \param *aRoom2 A Pointer to the second room class instance.
64 * \return The string containing the name and address of the room.
66 static bool caseInsensitiveLessThan( const Room *aRoom1, const Room *aRoom2 );
69 //! The name for the room in this instance.
71 //! The address for the room in this instance.