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

Client Class Reference

#include <Client.h>

Inheritance diagram for Client:

List of all members.


Detailed Description

Yes, this should probably be called a Hub

Definition at line 78 of file Client.h.


Public Types

typedef X< 4 > BytesSent
typedef X< 1 > Connected
typedef X< 0 > Connecting
typedef X< 3 > Data
typedef X< 7 > Failed
typedef List::iterator Iter
typedef X< 2 > Line
typedef list< PtrList
typedef X< 5 > ModeChange
typedef ClientPtr
typedef X< 8 > Shutdown
typedef X< 6 > TransmitDone

Public Member Functions

void addListener (Listener *aListener)
 Client (const string &hubURL, char separator)
virtual void connect ()
virtual void connect (const User *user)=0
void disconnect ()
virtual string escape (string const &str) const
StringMap & escapeParams (StringMap &sm)
template<typename T0, class T1, class T2, class T3, class T4, class T5, class T6>
void fire (T0 type, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6) throw ()
template<typename T0, class T1, class T2, class T3, class T4, class T5>
void fire (T0 type, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5) throw ()
template<typename T0, class T1, class T2, class T3, class T4>
void fire (T0 type, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) throw ()
template<typename T0, class T1, class T2, class T3>
void fire (T0 type, const T1 &p1, const T2 &p2, const T3 &p3) throw ()
template<typename T0, class T1, class T2>
void fire (T0 type, const T1 &p1, const T2 &p2) throw ()
template<typename T0, class T1>
void fire (T0 type, const T1 &p1) throw ()
template<typename T0>
void fire (T0 type) throw ()
const string & getAddress () const
const string & getAddressPort () const
virtual int64_t getAvailable () const =0
const string & getDescription () const
const string & getIp () const
string getIpPort () const
string getLocalIp () const
User::PtrgetMe ()
const User::PtrgetMe () const
virtual const string & getName () const =0
virtual bool getOp () const =0
short getPort () const
virtual size_t getUserCount () const =0
virtual void hubMessage (const string &aMessage)=0
virtual void info (bool alwaysSend)=0
bool isConnected () const
virtual User::NickMap & lockUserList ()=0
virtual void on (BytesSent, size_t, size_t) throw ()
virtual void on (Data, u_int8_t *, size_t) throw ()
virtual void on (Line, const string &) throw ()
virtual void password (const string &pwd)=0
virtual void privateMessage (const User *user, const string &aMessage)=0
void removeListener (Listener *aListener)
void removeListeners ()
void scheduleDestruction () const
virtual void search (int aSizeMode, int64_t aSize, int aFileType, const string &aString, const string &aToken)=0
virtual void send (const string &aMessage)=0
virtual void sendUserCmd (const string &aUserCmd)=0
void setDescription (const string &aDesc)
void setMe (const User::Ptr &aMe)
virtual void unlockUserList ()=0
void updated (User::Ptr &aUser)

Static Public Member Functions

static string getCounts ()

Protected Member Functions

virtual string checkNick (const string &nick)=0
virtual string getHubURL ()=0
 GETSET (bool, registered, Registered)
 GETSET (u_int32_t, reconnDelay, ReconnDelay)
 GETSET (string, defpassword, Password)
 GETSET (string, nick, Nick)
void reloadSettings ()
void setPort (short aPort)
void updateCounts (bool aRemove)

Protected Attributes

Counts lastCounts
CriticalSection listenerCS
ListenerList listeners
User::Ptr me
BufferedSocket * socket
ListenerList tmp

Static Protected Attributes

static Counts counts

Private Types

enum  CountType { COUNT_UNCOUNTED, COUNT_NORMAL, COUNT_REGISTERED, COUNT_OP }

Private Member Functions

 Client (const Client &)
virtual void on (BufferedSocketListener::Shutdown) throw ()
Clientoperator= (const Client &)

Private Attributes

string address
string addressPort
CountType countType
string description
u_int16_t port

Classes

struct  Counts

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

Generated by  Doxygen 1.6.0   Back to index