Last change
on this file since 20841 was 20590, checked in by mdewsnip, 15 years ago |
Completely rewrote the resumption token support, as its buginess finally tipped the "I can't stand it any more" scale...
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
796 bytes
|
Line | |
---|
1 | #ifndef _RESUMPTIONTOKEN_H_
|
---|
2 | #define _RESUMPTIONTOKEN_H_
|
---|
3 |
|
---|
4 | #include "text_t.h"
|
---|
5 |
|
---|
6 |
|
---|
7 | class ResumptionToken
|
---|
8 | {
|
---|
9 | private:
|
---|
10 | text_t build_date;
|
---|
11 | text_t set;
|
---|
12 | text_t metadata_prefix;
|
---|
13 | text_t from;
|
---|
14 | text_t until;
|
---|
15 | text_t position;
|
---|
16 |
|
---|
17 | bool valid;
|
---|
18 |
|
---|
19 | public:
|
---|
20 | ResumptionToken(const text_t &build_date, const text_t &set, const text_t &metadata_prefix,
|
---|
21 | const text_t &from, const text_t &until, const text_t &position);
|
---|
22 | ResumptionToken(const text_t &resumption_token_string);
|
---|
23 |
|
---|
24 | text_t getBuildDate() { return build_date; }
|
---|
25 | text_t getSet() { return set; }
|
---|
26 | text_t getMetadataPrefix() { return metadata_prefix; }
|
---|
27 | text_t getFrom() { return from; }
|
---|
28 | text_t getUntil() { return until; }
|
---|
29 | text_t getPosition() { return position; }
|
---|
30 |
|
---|
31 | text_t getResumptionTokenString();
|
---|
32 | bool isValid();
|
---|
33 | };
|
---|
34 |
|
---|
35 |
|
---|
36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.