summaryrefslogtreecommitdiffstats
path: root/korn/mailid.h
blob: 3ad3af97a6d5bd825289435facee8a9d82d3d3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MailId_h
#define MailId_h

#include <tqstring.h>

/**
 * Abstract base class for mail ids. Concrete mail ids store the id.
 * Its sole purpose is to treat all possible mail id format in a unique
 * way (by inheritence).
 */
class KornMailId
{
public:
	/**
	 * KornMailId Destructor
	 */
	virtual ~KornMailId();

	/**
	 * Return a string representation of this (for debuggin purposes only)
	 * @return a string representation
	 */
	virtual TQString toString() const = 0;

	/**
	 * Create an exact copy of this.
	 * @return the cloned object
	 */
	virtual KornMailId * clone() const = 0;
};


#endif