summaryrefslogblamecommitdiffstats
path: root/src/client/util/room.h
blob: 46f8c021cdbd678428b3a1bd591a3a8eb0fddaef (plain) (tree)
1
2
3
4
5
6
7
8
9


              

                 
             


                     
                                                                       




                                     

  
                                                       


                                                                             

 


                                                   

      
#ifndef ROOM_H
#define ROOM_H

#include <QDebug>

struct Room {
	QString mgr;
	QString name;
	int priority;
	Room (const QString &_name, const QString &_mgr, int _priority)
	{
		mgr = _mgr;
		name = _name;
		priority = _priority;
	};
};

inline QDebug& operator<<(QDebug& debug, const Room& r)
{
	debug << r.name << "{mgr=" << r.mgr << ",prio=" << r.priority << "}";
	return debug;
}

inline bool operator<(const Room& a, const Room& b)
{
	return a.priority < b.priority;
}
#endif