mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
POP3: InetMessage::Clear
git-svn-id: svn://ultimatepp.org/upp/trunk@7275 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c6e14d8c63
commit
ff539ef6c2
2 changed files with 6 additions and 0 deletions
|
|
@ -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]; }
|
||||
|
|
|
|||
|
|
@ -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; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue