From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korn/intid.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 korn/intid.h (limited to 'korn/intid.h') diff --git a/korn/intid.h b/korn/intid.h new file mode 100644 index 00000000..ab4b4d3c --- /dev/null +++ b/korn/intid.h @@ -0,0 +1,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 QString toString() const; + + /** + * Create an exact copy of this. + * @return the cloned object + */ + virtual KornMailId * clone() const; +}; + +#endif -- cgit v1.2.3