mailfilter  0.8.3
account.hh
Go to the documentation of this file.
1 // account.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef ACCOUNT_HH
20 #define ACCOUNT_HH
21 
22 #include <string>
23 #include <vector>
24 #include "defines.hh"
25 #include "protocol.hh"
26 #include "pop3.hh"
27 #include "apop.hh"
28 #include "connection.hh"
29 
30 using namespace std;
31 
32 class Account
33 {
34 protected:
35  string serv;
36  string user;
37  string pass;
38  int the_port;
39  vector<string> msg_ids;
42 
43 public:
44  void clear (void);
45  string server (void);
46  void set_server (const char*);
47  string usr (void);
48  void set_usr (const char*);
49  string passwd (void);
50  void set_passwd (const char*);
51  unsigned int port (void);
52  void set_port (unsigned int);
53  void set_protocol (unsigned int);
54  unsigned int protocol (void);
55  void set_connection (unsigned int = POSIX_SOCKETS)
56  __attribute__ ((unused));
57  int check (void);
58 };
59 
60 #endif
string user
Definition: account.hh:36
string pass
Definition: account.hh:37
string serv
Definition: account.hh:35
vector< string > msg_ids
Definition: account.hh:39
Definition: protocol.hh:32
Definition: account.hh:32
Protocol * proto
Definition: account.hh:40
int the_port
Definition: account.hh:38
Definition: connection.hh:29
Connection * conn
Definition: account.hh:41