Debian Codegraph @

Framework/Pantomime/CWFolderInformation.m

raw
1 /*
2 ** CWFolderInformation.m
3 **
4 ** Copyright (c) 2002-2004 Ludovic Marcotte
5 ** Copyright (C) 2017 Riccardo Mottola
6 **
7 ** Author: Ludovic Marcotte <[email protected]>
8 ** Riccardo Mottola <[email protected]>
9 **
10 ** This library is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU Lesser General Public
12 ** License as published by the Free Software Foundation; either
13 ** version 2.1 of the License, or (at your option) any later version.
14 **
15 ** This library is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** Lesser General Public License for more details.
19 **
20 ** You should have received a copy of the GNU General Public License
21 ** along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 #import <Pantomime/CWFolderInformation.h>
25
26 //
27 //
28 //
29 @implementation CWFolderInformation
30
31 - (id) init
32 {
33 self = [super init];
34 if (self)
35 {
36 _nb_of_messages = 0;
37 _nb_of_unread_messages = 0;
38 _size = 0;
39 }
40 return self;
41 }
42
43
44 //
45 //
46 //
47 - (NSUInteger) nbOfMessages
48 {
49 return _nb_of_messages;
50 }
51
52
53 //
54 //
55 //
56 - (void) setNbOfMessages: (NSUInteger) theValue
57 {
58 _nb_of_messages = theValue;
59 }
60
61
62 //
63 //
64 //
65 - (NSUInteger) nbOfUnreadMessages
66 {
67 return _nb_of_unread_messages;
68 }
69
70
71 //
72 //
73 //
74 - (void) setNbOfUnreadMessages: (NSUInteger) theValue
75 {
76 _nb_of_unread_messages = theValue;
77 }
78
79
80 //
81 //
82 //
83 - (NSUInteger) size
84 {
85 return _size;
86 }
87
88
89 //
90 //
91 //
92 - (void) setSize: (NSUInteger) theSize
93 {
94 _size = theSize;
95 }
96
97 @end