cmlabs::ConnectionProfile Class Reference

#include <JSocket.h>

Inheritance diagram for cmlabs::ConnectionProfile:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::ConnectionProfile:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConnectionProfile (JString name="")
 ConnectionProfile (const ConnectionProfile &profile)
 ConnectionProfile (XMLNode *node)
Objectclone () const
bool equals (const Object *obj) const
bool fromXML (XMLNode *node)
JString toXML ()
JString print ()
JString toHTML ()
const ConnectionProfileoperator= (const ConnectionProfile &profile)
bool setSpeed (long upbps, long downbps)
bool addDataStat (long upbytes, long downbytes, const JTime &time=JTime())
long getSpeedUpload ()
long getSpeedDownload ()
long getAvgUpload ()
long getAvgDownload ()
long getMaxAvgUpload ()
long getMaxAvgDownload ()
double getTotalUpload ()
double getTotalDownload ()
long getTotalUploadCount ()
long getTotalDownloadCount ()
JString getSpeedString ()
JString getRateString ()
JString getMaxRateString ()
JString getTotalString ()
JTime getLastActivity ()

Public Attributes

int maxConnectionHistory
bool isDirectlyConnected
JString name

Private Member Functions

bool recalc ()

Private Attributes

long speedUploadBps
long speedDownloadBps
long avgUploadBps
long avgDownloadBps
long maxAvgUploadBps
long maxAvgDownloadBps
double totalUpload
double totalDownload
long totalUploadCount
long totalDownloadCount
TimeSeries uploadHistory
TimeSeries downloadHistory


Detailed Description

Definition at line 356 of file JSocket.h.


Constructor & Destructor Documentation

cmlabs::ConnectionProfile::ConnectionProfile ( JString  name = ""  ) 

Definition at line 2599 of file JSocket.cpp.

cmlabs::ConnectionProfile::ConnectionProfile ( const ConnectionProfile profile  ) 

Definition at line 2615 of file JSocket.cpp.

cmlabs::ConnectionProfile::ConnectionProfile ( XMLNode node  ) 

Definition at line 2649 of file JSocket.cpp.


Member Function Documentation

Object * cmlabs::ConnectionProfile::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 2665 of file JSocket.cpp.

bool cmlabs::ConnectionProfile::equals ( const Object obj  )  const [virtual]

Reimplemented from cmlabs::Object.

Definition at line 2684 of file JSocket.cpp.

bool cmlabs::ConnectionProfile::fromXML ( XMLNode node  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 2688 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 2710 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::print (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 2873 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::toHTML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 2894 of file JSocket.cpp.

const ConnectionProfile & cmlabs::ConnectionProfile::operator= ( const ConnectionProfile profile  ) 

Definition at line 2631 of file JSocket.cpp.

bool cmlabs::ConnectionProfile::setSpeed ( long  upbps,
long  downbps 
)

Definition at line 2722 of file JSocket.cpp.

bool cmlabs::ConnectionProfile::addDataStat ( long  upbytes,
long  downbytes,
const JTime time = JTime() 
)

Definition at line 2728 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getSpeedUpload (  ) 

Definition at line 2770 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getSpeedDownload (  ) 

Definition at line 2775 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getAvgUpload (  ) 

Definition at line 2781 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getAvgDownload (  ) 

Definition at line 2786 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getMaxAvgUpload (  ) 

Definition at line 2792 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getMaxAvgDownload (  ) 

Definition at line 2797 of file JSocket.cpp.

double cmlabs::ConnectionProfile::getTotalUpload (  ) 

Definition at line 2802 of file JSocket.cpp.

double cmlabs::ConnectionProfile::getTotalDownload (  ) 

Definition at line 2807 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getTotalUploadCount (  ) 

Definition at line 2812 of file JSocket.cpp.

long cmlabs::ConnectionProfile::getTotalDownloadCount (  ) 

Definition at line 2816 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::getSpeedString (  ) 

Definition at line 2854 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::getRateString (  ) 

Definition at line 2858 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::getMaxRateString (  ) 

Definition at line 2863 of file JSocket.cpp.

JString cmlabs::ConnectionProfile::getTotalString (  ) 

Definition at line 2868 of file JSocket.cpp.

JTime cmlabs::ConnectionProfile::getLastActivity (  ) 

Definition at line 2750 of file JSocket.cpp.

bool cmlabs::ConnectionProfile::recalc (  )  [private]

Definition at line 2820 of file JSocket.cpp.


Member Data Documentation

Definition at line 387 of file JSocket.h.

Definition at line 388 of file JSocket.h.

Definition at line 397 of file JSocket.h.

Definition at line 403 of file JSocket.h.

Definition at line 404 of file JSocket.h.

Definition at line 406 of file JSocket.h.

Definition at line 407 of file JSocket.h.

Definition at line 409 of file JSocket.h.

Definition at line 410 of file JSocket.h.

Definition at line 412 of file JSocket.h.

Definition at line 413 of file JSocket.h.

Definition at line 415 of file JSocket.h.

Definition at line 416 of file JSocket.h.

Definition at line 418 of file JSocket.h.

Definition at line 419 of file JSocket.h.


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

Generated on Tue Jul 7 16:22:52 2009 for CoreLibrary by  doxygen 1.5.6