Changeset View
Changeset View
Standalone View
Standalone View
src/dht/announcetask.h
Show All 24 Lines | |||||
25 | #include "task.h" | 25 | #include "task.h" | ||
26 | 26 | | |||
27 | namespace dht | 27 | namespace dht | ||
28 | { | 28 | { | ||
29 | class Database; | 29 | class Database; | ||
30 | 30 | | |||
31 | class KBucketEntryAndToken : public KBucketEntry | 31 | class KBucketEntryAndToken : public KBucketEntry | ||
32 | { | 32 | { | ||
33 | Key token; | 33 | QByteArray token; | ||
34 | public: | 34 | public: | ||
35 | KBucketEntryAndToken() {} | 35 | KBucketEntryAndToken() {} | ||
36 | KBucketEntryAndToken(const KBucketEntry & e, const Key & token) | 36 | KBucketEntryAndToken(const KBucketEntry & e, const QByteArray & token) | ||
37 | : KBucketEntry(e), token(token) {} | 37 | : KBucketEntry(e), token(token) {} | ||
38 | ~KBucketEntryAndToken() override {} | 38 | ~KBucketEntryAndToken() override {} | ||
39 | 39 | | |||
40 | const Key & getToken() const | 40 | const QByteArray & getToken() const | ||
41 | { | 41 | { | ||
42 | return token; | 42 | return token; | ||
43 | } | 43 | } | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | /** | 46 | /** | ||
47 | @author Joris Guisson <joris.guisson@gmail.com> | 47 | @author Joris Guisson <joris.guisson@gmail.com> | ||
48 | */ | 48 | */ | ||
Show All 38 Lines |