HEAD: rearrange things a bit so we can have a libwvbase.so, which contains
[wvapps.git] / evolution / listusers.cc
blobbbf122b98f684cbfef6068ed07763ef3377722cd
1 #include "listusers.h"
3 bool ListUsers::apply_response(WvStringList &parts,
4 WvStream &stream,
5 ExchangeItStorage *storage)
7 if (parts.count() < 1)
9 log("Malformed response: no response!!\n");
10 return false;
13 WvString line;
14 WvString response = parts.popstr();
16 if (response == "USERS")
18 user_store.remove();
19 while (!!(line = stream.getline(TIMEOUT)))
21 log("<< (%s)\n", line);
22 user_store[line].setmeint(1);
25 else
27 log("Unknown response to LISTUSERS: %s\n", response);
28 return false;
31 return true;
34 void ListUsers::get_command(WvString &command,
35 WvStringList &params,
36 WvStringList &lines)
38 // When they're not used, it's still important to zap() these!
39 params.zap();
40 lines.zap();
42 command = "LISTUSERS";