summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/Drwho_Node.h
blob: b62c06124c6ba6df3d5dd9b628fcc96dfd37dfee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    Drwho_Node.h
 *
 *  $Id$
 *
 *  @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 */