1MAIL::ACCOUNT::LOGOU(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::LOGOU(3x)
2
3
4

NAME

6       mail::account::logout - Disconnect from the server
7

SYNOPSIS

9       #include <libmail/mail.H>
10
11
12       class myCallback : public mail::callback {
13       public:
14           void success(std::string msg);
15           void fail(std::string msg);
16       };
17
18       mail::account *account;
19
20       account->logout(myCallback &callback);
21

USAGE

23       Close the mail account. The application should wait until either
24       callback.success or callback.fail is called (not much of a difference,
25       really, in both cases the mail::account object disconnects from the
26       server). The disconnected method of the mail::callback::disconnect
27       object, originally passed to mail::account::open, is also invoked.
28

RETURN CODES

30       The application must wait until callback´s success or fail method is
31       invoked. The success method is invoked when this request is succesfully
32       processed. The fail method is invoked if this request cannot be
33       processed. The application must not destroy callback until either the
34       success or fail method is invoked.
35
36           Note
37           callback´s fail method may be invoked even after other callback
38           methods were invoked. This indicates that the request was partially
39           completed before the error was encountered.
40
41       In this case, however, there is no substantial difference between
42       success and fail.  mail::account::logout does not destroy the
43       mail::account object, the object may be destroyed after either callback
44       function is invoked.
45
46
47
48[FIXME: source]                   05/08/2010          MAIL::ACCOUNT::LOGOU(3x)
Impressum