mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +00:00
Monotone-Parent: c35e5e0bbfa47c91a6b8c9b68bf31ca78ee421fc
Monotone-Revision: 0866c0c584ab301776f7eea26a8ec8135a9c106c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-12-14T20:54:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
2c246f3e7a
commit
7eba4a5a01
4 files changed
+142
No files matched your search
@@ -0,0 +1,62 @@
|
||||
/* EOBitmaskQualifier.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2010 Inverse inc
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import "EOBitmaskQualifier.h"
|
||||
|
||||
@implementation EOBitmaskQualifier
|
||||
|
||||
- (id) initWithKey: (NSString *) newKey
|
||||
mask: (uint32_t) newMask
|
||||
isZero: (BOOL) newIsZero
|
||||
{
|
||||
if ((self = [self init]))
|
||||
{
|
||||
ASSIGN (key, newKey);
|
||||
isZero = newIsZero;
|
||||
mask = newMask;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[key release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSString *) key
|
||||
{
|
||||
return key;
|
||||
}
|
||||
|
||||
- (uint32_t ) mask
|
||||
{
|
||||
return mask;
|
||||
}
|
||||
|
||||
- (BOOL) isZero
|
||||
{
|
||||
return isZero;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user