aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPFolderStatus.h
blob: 818cd790e8b4ef27ebe44530683f8795ccdb465d (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
53
54
55
56
57
58
59
60
//
//  MCIMAPFolderStatus.h
//  mailcore2
//
//  Created by Sebastian on 6/11/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef __MAILCORE_MCIMAPFOLDERSTATUS_H

#define __MAILCORE_MCIMAPFOLDERSTATUS_H

#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCMessageConstants.h>

#ifdef __cplusplus

namespace mailcore {
	
	class IMAPFolderStatus : public Object {
	public:

		IMAPFolderStatus();
		virtual ~IMAPFolderStatus();

		virtual void setUnseenCount(u_int32_t unseen);
		virtual u_int32_t unseenCount();

		virtual void setMessageCount(u_int32_t messages);
		virtual u_int32_t messageCount();

		virtual void setRecentCount(u_int32_t recent);
		virtual u_int32_t recentCount();

		virtual void setUidNext(u_int32_t uidNext);
		virtual u_int32_t uidNext();                

		virtual void setUidValidity(u_int32_t uidValidity);
		virtual u_int32_t uidValidity();

    public: // subclass behavior
		IMAPFolderStatus(IMAPFolderStatus * other);
		virtual Object * copy();		

	private:
		u_int32_t mUnseenCount;
		u_int32_t mMessageCount;
		u_int32_t mRecentCount;
		u_int32_t mUidNext;
		u_int32_t mUidValidity;

		void init();
	};
	
}

#endif

#endif