Logo Search packages:      
Sourcecode: dc-qt version File versions  Download package

User Class Reference

#include <User.h>

Inheritance diagram for User:

BlockAllocator< User >

List of all members.


Detailed Description

A user connected to a hubs.

Definition at line 37 of file User.h.


Public Types

enum  {
  OP_BIT, ONLINE_BIT, DCPLUSPLUS_BIT, PASSIVE_BIT,
  QUIT_HUB_BIT, HIDDEN_BIT, HUB_BIT, BOT_BIT
}
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
}
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
}
typedef CIDMap::iterator CIDIter
typedef List::iterator Iter
typedef vector< PtrList
typedef int MaskType
typedef NickMap::iterator NickIter
typedef Pointer< UserPtr

Public Member Functions

StringMap & clientEscapeParams (StringMap &sm) const
void clientMessage (const string &aMsg)
void connect ()
void dec () throw ()
string getClientAddressPort () const
CID getClientCID () const
const string & getClientName () const
const string & getClientNick () const
bool getFavoriteGrantSlot () const
u_int32_t getFavoriteLastSeen () const
string getFullNick () const
void getParams (StringMap &ucParams)
 GETSET (short, udpPort, UDPPort)
 GETSET (int, slots, Slots)
 GETSET (int64_t, bytesShared, BytesShared)
 GETSET (CID, cid, CID)
 GETSET (string, ip, Ip)
 GETSET (string, lastHubName, LastHubName)
 GETSET (string, lastHubAddress, LastHubAddress)
 GETSET (string, tag, Tag)
 GETSET (string, description, Description)
 GETSET (string, email, Email)
 GETSET (string, nick, Nick)
 GETSET (string, connection, Connection)
const string & getUserDescription () const
typedef HASH_MAP_X (CID, Ptr, CID::Hash, equal_to< CID >, less< CID >) CIDMap
typedef HASH_MAP_X (string, Ptr, noCaseStringHash, noCaseStringEq, noCaseStringLess) NickMap
void inc () throw ()
bool isAnySet (MaskType aFlag) const
bool isClient (Client *aClient) const
bool isClientOp () const
bool isFavoriteUser () const
bool isOnline () const
bool isSet (MaskType aFlag) const
void operator delete (void *pBlock)
void * operator new (size_t)
void privateMessage (const string &aMsg)
void send (const string &msg)
void sendUserCmd (const string &aUserCmd)
void setBytesShared (const string &aSharing)
void setClient (Client *aClient)
void setFavoriteGrantSlot (bool grant)
void setFavoriteLastSeen (u_int32_t anOfflineTime=0)
void setFavoriteUser (FavoriteUser *aUser)
void setFlag (MaskType aFlag)
void setUserDescription (const string &aDescription)
bool unique () throw ()
void unsetFlag (MaskType aFlag)
 User (const string &aNick) throw ()
 User (const CID &aCID)

Static Public Member Functions

static UserAllocateBlock ()
static void ReleaseBlock (User *pBlock)
static void updated (User::Ptr &aUser)

Public Attributes

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

Private Types

enum  {
  OP_BIT, ONLINE_BIT, DCPLUSPLUS_BIT, PASSIVE_BIT,
  QUIT_HUB_BIT, HIDDEN_BIT, HUB_BIT, BOT_BIT
}

Private Member Functions

Useroperator= (const User &)
 User (const User &)

Private Attributes

Clientclient
RWLock cs
FavoriteUser * favoriteUser

Classes

struct  HashFunction

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index