File: user.h

package info (click to toggle)
dc-qt 0.2.0.alpha-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,936 kB
  • ctags: 5,361
  • sloc: cpp: 28,936; makefile: 19
file content (47 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (4)
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
#ifndef USER_H__
#define USER_H__

#include "global.h"
#include "blockallocator.h"

#include <QString>
using namespace std;

class User : public BlockAllocator<User>
{
  
	enum {
    OP_BIT,
    ONLINE_BIT,
    DCPLUSPLUS_BIT,
    PASSIVE_BIT,
    QUIT_HUB_BIT,
    HIDDEN_BIT,
    HUB_BIT,
    BOT_BIT
  };
	public:
  enum {
    OP = 1<<OP_BIT,
    ONLINE = 1<<ONLINE_BIT,
    DCPLUSPLUS = 1<<DCPLUSPLUS_BIT,
    PASSIVE = 1<<PASSIVE_BIT,
    QUIT_HUB = 1<<QUIT_HUB_BIT,
    HIDDEN = 1<<HIDDEN_BIT,
    HUB = 1<<HUB_BIT,
    BOT = 1<<BOT_BIT
  };

  int id;
  QString nick;
  int flags;
  QString email;
  QString description;
  QString connection;
  QString tag;
  qint64 shared;
  int numSlots;
  int index;
};

#endif