/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    Drwho_Node.h
 *
 *  $Id: Drwho_Node.h 93651 2011-03-28 08:49:11Z johnnyw $
 *
 *  @author Douglas C. Schmidt
 */
//=============================================================================


#ifndef _DRWHO_NODE_H
#define _DRWHO_NODE_H

#include "global.h"

/**
 * @class Drwho_Node
 *
 * @brief Stores information about a host for a specific friend.
 */
class Drwho_Node
{
public:
  Drwho_Node (const char *host, Drwho_Node *next);
  Drwho_Node (void);

  int get_active_count (void);
  int get_inactive_count (void);
  int set_active_count (int count);
  int set_inactive_count (int count);
  int set_idle_time (int idle_time);
  int get_idle_time (void);
  const char *get_host_name (void);
  const char *set_host_name (const char *str);
  const char *get_login_name (void);
  const char *set_login_name (const char *);
  const char *get_real_name (void);
  const char *set_real_name (const char *);

  const char *key_name1_;
  const char *key_name2_;
  const char *tty_name_;
  int idle_time_;
  int active_count_;
  int inactive_count_;
  Drwho_Node *next_;
};

#endif /* _DRWHO_NODE_H */
