#include <DailyUptime.h> [code]
Inherits Gnutella::Packets::Extensions::Ggep.
Inheritance diagram for Gnutella::Packets::Extensions::Ggeps::DailyUptime:


Definition at line 36 of file DailyUptime.h.
Public Types | |
| enum | Constants { MaximalUptime = 86400 } |
Public Member Functions | |
| DailyUptime (const GgepId &id, int flags, int dataSize) | |
| DailyUptime (int dailyUptime) | |
| DailyUptime * | copy () const |
| int | dailyUptime () const |
Static Public Member Functions | |
| static const DailyUptime * | findIn (const GgepBlock &ggepBlock) |
Static Public Attributes | |
| static const Ggep::GgepId | Id |
| The DU GGEP extension ID of length 2. | |
Protected Member Functions | |
| bool | prepareReadData (const QByteArray &rawData) |
| Verifies the structure of rawData. | |
| void | readData (QDataStream &stream) |
| Reads the extension data from stream. | |
| int | prepareWriteData () const |
| Prepares for writing the extension data and returns its length. | |
| void | writeData (QDataStream &stream) const |
| Writes the extension data to the stream;. | |
Private Attributes | |
| int | dailyUptime_ |
|
|
Definition at line 39 of file DailyUptime.h. |
|
||||||||||||||||
|
Definition at line 32 of file DailyUptime.cpp. |
|
|
Definition at line 39 of file DailyUptime.cpp. |
|
|
Implements Gnutella::Packets::Extensions::Ggep. Definition at line 56 of file DailyUptime.cpp. |
|
|
Definition at line 67 of file DailyUptime.h. |
|
|
Definition at line 45 of file DailyUptime.cpp. |
|
|
Verifies the structure of rawData.
Implements Gnutella::Packets::Extensions::Ggep. Definition at line 61 of file DailyUptime.cpp. |
|
|
Prepares for writing the extension data and returns its length.
Implements Gnutella::Packets::Extensions::Ggep. Definition at line 78 of file DailyUptime.cpp. |
|
|
Reads the extension data from stream.
Implements Gnutella::Packets::Extensions::Ggep. Definition at line 66 of file DailyUptime.cpp. |
|
|
Writes the extension data to the stream;.
Implements Gnutella::Packets::Extensions::Ggep. Definition at line 87 of file DailyUptime.cpp. |
|
|
Definition at line 60 of file DailyUptime.h. |
|
|
The DU GGEP extension ID of length 2.
Definition at line 44 of file DailyUptime.h. |