using System;
using Novell.CASA.MiCasa.Common;
using Novell.CASA.MiCasa.Communication;

namespace Novell.CASA.MiCasa.Common
{
	/// <summary>
	/// Summary description for MiCASAStore.
	/// </summary>
	public class MiCASAStore
	{
		public MiCASAStore()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public static bool IsLocked()
		{
			Object o = MiCasaRequestReply.Send(MiCasaRequestReply.VERB_GET_STORE_STATUS);

			if ((o != null) && ((System.Int32)o == 2))				
				return true;
			else
				return false;				
		}
	}
}