summaryrefslogtreecommitdiffstats
path: root/korn/intid.h
blob: 34a68092e7240858d571d967e8736f67701723a8 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef IntId_h
#define IntId_h

#include "mailid.h"

/**
 * Mail ID for mailboxes, which identify their mails by an integer number
 */
class KornIntId : public KornMailId
{
	/**
	 * the mail id
	 */
	int _id;
public:
	/**
	 * KornIntId Destructor
	 */
	virtual ~KornIntId();

	/**
	 * KornIntId Constructor
	 * @param id: mail id
	 */
	KornIntId(int id);

	/**
	 * KornIntId Copy Constructor
	 * @param src: KornIntId to copy from
	 */
	KornIntId(const KornIntId& src);

	/**
	 * Return the mail id
	 * @return the mail id
	 */
	int getId() const {return _id;}

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

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

#endif