#ifndef _LOCKINDICATOR_H
#define _LOCKINDICATOR_H
static char LockIndicator_h_id[] = "$Header: /usr/tiburon/unix/gui/tmacs/RCS/LockIndicator.h,v 1.1 1996/10/28 09:13:46 oreilly Exp $";

/*
$Log: LockIndicator.h,v $
Revision 1.1  1996/10/28 09:13:46  oreilly
Initial revision

*/

#include <Vk/VkComponent.h>
#include "DataManager.h"

#define lockedColor "red"
#define unlockedColor "green"
#define lockedString "Locked"
#define unlockedString "Unlocked"

class LockIndicator : public VkComponent
{
  public:
  LockIndicator(const char *name, Widget parent);
  ~LockIndicator()
  {
  }
  
  virtual const char *className()
  {
    return "LockIndicator";
  }
  
  // Return TRUE of DmObject handle(s) have provider
  Boolean locked(DmObject *dmObject);

  // Set LED and associated indicators to Locked or Unlocked state
  Boolean set(Boolean locked);
  
  protected:
  Widget _indicatorWidget;
};


#endif
