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

NAME

8       mail::account::logout - Disconnect from the server
9

SYNOPSIS

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

USAGE

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

RETURN CODES

32       The application must wait until callback's success or fail method is
33       invoked. The success method is invoked when this request is succesfully
34       processed. The fail method is invoked if this request cannot be
35       processed. The application must not destroy callback until either the
36       success or fail method is invoked.
37
38           Note
39           callback's fail method may be invoked even after other callback
40           methods were invoked. This indicates that the request was partially
41           completed before the error was encountered.
42
43       In this case, however, there is no substantial difference between
44       success and fail.  mail::account::logout does not destroy the
45       mail::account object, the object may be destroyed after either callback
46       function is invoked.
47

AUTHOR

49       Sam Varshavchik
50
51
52
53ConeĀ©                             08/25/2016          MAIL::ACCOUNT::LOGOU(3x)
Impressum