/*
********************************************************
Copyright 2000 MBARI.
MBARI Proprietary Information. All rights reserved.
NOTE: This file is automatically generated.
DO NOT MODIFY.
********************************************************
*/

#ifndef __DropWeightIF_H
#define __DropWeightIF_H

#include "TaskInterface.h"


#define DropWeightIFServerName "DropWeightIFServer"

/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : DropWeightIF.idl                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*
CLASS 
DropWeightIF

DESCRIPTION
TaskInterface to DropWeight device driver 

AUTHOR
Tom O'Reilly

*/
class DropWeightIF : public TaskInterface {

  friend class DropWeightIF_SK;

  public:

  
  enum Event {
    Online,
    Offline,
    Installed,
    Released
  };

  enum Weight {
    Descend,
    Ascend
  };

  
  
  DropWeightIF(const char *name, int timeout = 10);

  DropWeightIF(const char *name, const char *serverName, int timeout = 10);

  ~DropWeightIF();

  /////////////////////////////////////////////////////////
  // Release drop-weight
  long release(DropWeightIF::Weight weight);

  /////////////////////////////////////////////////////////
  // Weight released?
  Boolean released(DropWeightIF::Weight weight);

  ///////////////////////////////////////////////////////////////////
  // Set watchdog timeout
  // [input] timeout: Timeout (seconds)
  long setWatchdogTimeout(long timeout, DropWeightIF::Weight weight);

  ///////////////////////////////////////////////////////////////////
  // Get watchdog timeout
  long watchdogTimeout(DropWeightIF::Weight weight);

  ///////////////////////////////////////////////////////////////////
  // Reset watchdog timer
  long resetWatchdog(DropWeightIF::Weight weight);

  
  protected:

  // Message codes for each method
  enum DropWeightIFMsgCode {
    ReleaseMsgCode,
    ReleasedMsgCode,
    SetWatchdogTimeoutMsgCode,
    WatchdogTimeoutMsgCode,
    ResetWatchdogMsgCode
  };

  // Define message structure for each method
  struct ReleaseMsg : Request, Reply {
    long returnVal;
    DropWeightIF::Weight weight;
  
  } _releaseMsg;

  struct ReleasedMsg : Request, Reply {
    Boolean returnVal;
    DropWeightIF::Weight weight;
  
  } _releasedMsg;

  struct SetWatchdogTimeoutMsg : Request, Reply {
    long returnVal;
    long timeout;
    DropWeightIF::Weight weight;
  
  } _setWatchdogTimeoutMsg;

  struct WatchdogTimeoutMsg : Request, Reply {
    long returnVal;
    DropWeightIF::Weight weight;
  
  } _watchdogTimeoutMsg;

  struct ResetWatchdogMsg : Request, Reply {
    long returnVal;
    DropWeightIF::Weight weight;
  
  } _resetWatchdogMsg;

};

#endif

