/*
 * ServerModel.h
 *
 *  Created on: 2011-3-14
 *      Author: Yewberry
 */

#ifndef SERVERMODEL_H_
#define SERVERMODEL_H_

#include "XModel.h"

class ServerModel : public XModel
{
	Q_OBJECT
public:
	enum { ID = 0, IP = 1, NAME = 2, DESC = 3, USR = 4, PWD = 5, ACTIVE = 6, UI_SCENE_POS = 7, STATUS = 8, STEP_STATUS = 9 };
	ServerModel(QObject *parent = 0);

	bool isActive(QString id);
	bool isWarning(QString id);
	QString stepStatus(QString id);

	QPointF getUiScenePos(QString id);
	void uiScenePos(QString id, QPointF pos);
};

#endif /* SERVERMODEL_H_ */
