|
a |
|
b/src/bincimapmime/address.h |
|
|
1 |
/* -*- Mode: c++; -*- */
|
|
|
2 |
/* --------------------------------------------------------------------
|
|
|
3 |
* Filename:
|
|
|
4 |
* src/mailbox/address.h
|
|
|
5 |
*
|
|
|
6 |
* Description:
|
|
|
7 |
* Declaration of the Address class.
|
|
|
8 |
* --------------------------------------------------------------------
|
|
|
9 |
* Copyright 2002-2004 Andreas Aardal Hanssen
|
|
|
10 |
*
|
|
|
11 |
* This program is free software; you can redistribute it and/or modify
|
|
|
12 |
* it under the terms of the GNU General Public License as published by
|
|
|
13 |
* the Free Software Foundation; either version 2 of the License, or
|
|
|
14 |
* (at your option) any later version.
|
|
|
15 |
*
|
|
|
16 |
* This program is distributed in the hope that it will be useful,
|
|
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
19 |
* GNU General Public License for more details.
|
|
|
20 |
*
|
|
|
21 |
* You should have received a copy of the GNU General Public License
|
|
|
22 |
* along with this program; if not, write to the Free Software
|
|
|
23 |
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
|
|
|
24 |
* --------------------------------------------------------------------
|
|
|
25 |
*/
|
|
|
26 |
#ifdef HAVE_CONFIG_H
|
|
|
27 |
#include <config.h>
|
|
|
28 |
#endif
|
|
|
29 |
|
|
|
30 |
#ifndef address_h_included
|
|
|
31 |
#define address_h_included
|
|
|
32 |
#include <string>
|
|
|
33 |
|
|
|
34 |
namespace Binc {
|
|
|
35 |
|
|
|
36 |
//------------------------------------------------------------------------
|
|
|
37 |
class Address {
|
|
|
38 |
public:
|
|
|
39 |
std::string name;
|
|
|
40 |
std::string local;
|
|
|
41 |
std::string host;
|
|
|
42 |
|
|
|
43 |
//--
|
|
|
44 |
std::string toParenList(void) const;
|
|
|
45 |
|
|
|
46 |
//--
|
|
|
47 |
Address(const std::string &name, const std::string &addr);
|
|
|
48 |
Address(const std::string &wholeaddr);
|
|
|
49 |
};
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
#endif
|