POP3: InetMessage::Clear

git-svn-id: svn://ultimatepp.org/upp/trunk@7275 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-18 08:31:59 +00:00
parent c6e14d8c63
commit ff539ef6c2
2 changed files with 6 additions and 0 deletions

View file

@ -65,6 +65,8 @@ struct InetMessage {
bool Read(const String& msg);
bool ReadHeader(const String& msg);
void Clear() { part.Clear(); }
int GetCount() const { return part.GetCount(); }
const Part& operator[](int i) const { return part[i]; }

View file

@ -77,6 +77,10 @@ onst]_[_^String^ String][@(0.0.255) `&]_[*@3 msg])&]
If succesful, there is exactly part 0 present, with empty body.&]
[s3;%% &]
[s4; &]
[s5;:InetMessage`:`:Clear`(`): [@(0.0.255) void]_[* Clear]()&]
[s2;%% Clears the content (GetCount() will be 0).&]
[s3; &]
[s4; &]
[s5;:InetMessage`:`:GetCount`(`)const: [@(0.0.255) int]_[* GetCount]()_[@(0.0.255) const]&]
[s2;%% Returns a number of parts present.&]
[s3; &]