/usr/include/GNUstep/Frameworks/Pantomime.framework/Versions/1.2/CWConstants.h is in libpantomime1.2-dev 1.2.2~r289+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | /*
** CWConstants.h
**
** Copyright (c) 2001-2007
** 2013 Free Software Foundation
**
** Author: Ludovic Marcotte <ludovic@Sophos.ca>
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library 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
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _Pantomime_H_CWConstants
#define _Pantomime_H_CWConstants
@class NSString;
//
// The current version of Pantomime.
//
#define PANTOMIME_VERSION @"1.2.0"
//
// Useful macros that we must define ourself on OS X.
//
#ifdef MACOSX
#define RETAIN(object) [object retain]
#define RELEASE(object) [object release]
#define AUTORELEASE(object) [object autorelease]
#define TEST_RELEASE(object) ({ if (object) [object release]; })
#define ASSIGN(object,value) ({\
id __value = (id)(value); \
id __object = (id)(object); \
if (__value != __object) \
{ \
if (__value != nil) \
{ \
[__value retain]; \
} \
object = __value; \
if (__object != nil) \
{ \
[__object release]; \
} \
} \
})
#define DESTROY(object) ({ \
if (object) \
{ \
id __o = object; \
object = nil; \
[__o release]; \
} \
})
#define NSLocalizedString(key, comment) \
[[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]
#define _(X) NSLocalizedString (X, @"")
#endif
//
// Only for older Mac versions
//
#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
#ifndef NSUInteger
#define NSUInteger unsigned int
#endif
#ifndef NSInteger
#define NSInteger int
#endif
#endif
//
// We must define NSObject: -subclassResponsibility: on OS X.
//
#ifdef MACOSX
#include <Pantomime/CWMacOSXGlue.h>
#endif
//
// Some macros, to minimize the code.
//
#define PERFORM_SELECTOR_1(del, sel, name) ({ \
\
BOOL zBOOL; \
\
zBOOL = NO; \
\
if (del && [del respondsToSelector: sel]) \
{ \
[del performSelector: sel \
withObject: [NSNotification notificationWithName: name \
object: self]]; \
zBOOL = YES; \
} \
\
zBOOL; \
})
#define PERFORM_SELECTOR_2(del, sel, name, obj, key) \
if (del && [del respondsToSelector: sel]) \
{ \
[del performSelector: sel \
withObject: [NSNotification notificationWithName: name \
object: self \
userInfo: [NSDictionary dictionaryWithObject: obj forKey: key]]]; \
}
#define PERFORM_SELECTOR_3(del, sel, name, info) \
if (del && [del respondsToSelector: sel]) \
{ \
[del performSelector: sel \
withObject: [NSNotification notificationWithName: name \
object: self \
userInfo: info]]; \
}
#define AUTHENTICATION_COMPLETED(del, s) \
POST_NOTIFICATION(PantomimeAuthenticationCompleted, self, [NSDictionary dictionaryWithObject: ((id)s != nil ?(id)s:(id)@"") forKey: @"Mechanism"]); \
PERFORM_SELECTOR_2(del, @selector(authenticationCompleted:), PantomimeAuthenticationCompleted, ((id)s != nil ?(id)s:(id)@""), @"Mechanism");
#define AUTHENTICATION_FAILED(del, s) \
POST_NOTIFICATION(PantomimeAuthenticationFailed, self, [NSDictionary dictionaryWithObject: ((id)s != nil ?(id)s:(id)@"") forKey: @"Mechanism"]); \
PERFORM_SELECTOR_2(del, @selector(authenticationFailed:), PantomimeAuthenticationFailed, ((id)s != nil ?(id)s:(id)@""), @"Mechanism");
#define POST_NOTIFICATION(name, obj, info) \
[[NSNotificationCenter defaultCenter] postNotificationName: name \
object: obj \
userInfo: info]
/*!
@typedef PantomimeEncoding
@abstract Supported encodings.
@discussion This enum lists the supported Content-Transfer-Encoding
values. See RFC 2045 - 6. Content-Transfer-Encoding Header Field
(all all sub-sections) for a detailed description of the
possible values.
@constant PantomimeEncodingNone No encoding.
@constant PantomimeEncoding7bit No encoding, same value as PantomimeEncodingNone.
@constant PantomimeEncodingQuotedPrintable The quoted-printable encoding.
@constant PantomimeEncodingBase64 The base64 encoding.
@constant PantomimeEncoding8bit Identity encoding.
@constant PantomimeEncodingBinary Identity encoding.
*/
typedef enum
{
PantomimeEncodingNone = 0,
PantomimeEncoding7bit = 0,
PantomimeEncodingQuotedPrintable = 1,
PantomimeEncodingBase64 = 2,
PantomimeEncoding8bit = 3,
PantomimeEncodingBinary = 4
} PantomimeEncoding;
/*!
@typedef PantomimeFolderFormat
@abstract The supported folder formats.
@discussion Pantomime supports various local folder formats. Currently,
the mbox and maildir formats are supported. Also, a custom
format is defined to represent folder which holds folders
(ie., not messages).
@constant PantomimeFormatMbox The mbox format.
@constant PantomimeFormatMaildir The maildir format.
@constant PantomimeFormatMailSpoolFile The mail spool file, in mbox format but without cache synchronization.
@constant PantomimeFormatFolder Custom format.
*/
typedef enum {
PantomimeFormatMbox = 0,
PantomimeFormatMaildir = 1,
PantomimeFormatMailSpoolFile = 2,
PantomimeFormatFolder = 3
} PantomimeFolderFormat;
/*!
@typedef PantomimeMessageFormat
@abstract The format of a message.
@discussion Pantomime supports two formats when encoding
plain/text parts. The formats are described in RFC 2646.
@constant PantomimeFormatUnknown Unknown format.
@constant PantomimeFormatFlowed The "format=flowed" is used.
*/
typedef enum
{
PantomimeFormatUnknown = 0,
PantomimeFormatFlowed = 1
} PantomimeMessageFormat;
/*!
@typedef PantomimeFlag
@abstract Valid message flags.
@discussion This enum lists valid message flags. Flags can be combined
using a bitwise OR.
@constant PantomimeAnswered The message has been answered.
@constant PantomimeDraft The message is an unsent, draft message.
@constant PantomimeFlagged The message is flagged.
@constant PantomimeRecent The message has been recently received.
@constant PantomimeSeen The message has been read.
@constant PantomimeDeleted The message is marked as deleted.
*/
typedef enum
{
PantomimeAnswered = 1,
PantomimeDraft = 2,
PantomimeFlagged = 4,
PantomimeRecent = 8,
PantomimeSeen = 16,
PantomimeDeleted = 32
} PantomimeFlag;
/*!
@typedef PantomimeFolderType
@abstract Flags/name attributes for mailboxes/folders.
@discussion This enum lists the potential mailbox / folder
flags which some IMAP servers can enforce.
Those flags have few meaning for POP3 and
Local mailboxes. Flags can be combined using
a bitwise OR.
@constant PantomimeHoldsFolders The folder holds folders.
@constant PantomimeHoldsMessages The folder holds messages.
@constant PantomimeNoInferiors The folder has no sub-folders.
@constant PantomimeNoSelect The folder can't be opened.
@constant PantomimeMarked The folder is marked as "interesting".
@constant PantomimeUnmarked The folder does not contain any new
messages since the last time it has been open.
*/
typedef enum
{
PantomimeHoldsFolders = 1,
PantomimeHoldsMessages = 2,
PantomimeNoInferiors = 4,
PantomimeNoSelect = 8,
PantomimeMarked = 16,
PantomimeUnmarked = 32
} PantomimeFolderType;
/*!
@typedef PantomimeSearchMask
@abstract Mask for Folder: -search: mask: options:
@discussion This enum lists the possible values of the
search mask. Values can be combined using
a bitwise OR.
@constant PantomimeFrom Search in the "From:" header value.
@constant PantomimeTo Search in the "To:" header value.
@constant PantomimeSubject Search in the "Subject:" header value.
@constant PantomimeContent Search in the message content.
*/
typedef enum
{
PantomimeFrom = 1,
PantomimeTo = 2,
PantomimeSubject = 4,
PantomimeContent = 8
} PantomimeSearchMask;
/*!
@typedef PantomimSearchOption
@abstract Options for Folder: -search: mask: options:
@discussion This enum lists the possible options when
performing a search.
@constant PantomimeCaseInsensitiveSearch Don't consider the case when performing a search operation.
@constant PantomimeRegularExpression The search criteria represents a regular expression.
*/
typedef enum
{
PantomimeCaseInsensitiveSearch = 1,
PantomimeRegularExpression = 2
} PantomimeSearchOption;
/*!
@typedef PantomimeFolderMode
@abstract Valid modes for folder.
@discussion This enum lists the valid mode to be used when
opening a folder.
@constant PantomimeUnknownMode Unknown mode.
@constant PantomimeReadOnlyMode The folder will be open in read-only.
@constant PantomimeReadWriteMode The folder will be open in read-write.
*/
typedef enum
{
PantomimeUnknownMode = 1,
PantomimeReadOnlyMode = 2,
PantomimeReadWriteMode = 3
} PantomimeFolderMode;
/*!
@typedef PantomimeForwardMode
@abstract Valid modes when forwarding a message.
@discussion This enum lists the valid mode to be
used when forwarding a message.
@constant PantomimeAttachmentForwardMode The message will be attached.
@constant PantomimeInlineForwardMode The text parts of the message will be
extracted and included inline in the
forwarded response.
*/
typedef enum
{
PantomimeAttachmentForwardMode = 1,
PantomimeInlineForwardMode = 2
} PantomimeForwardMode;
/*!
@typedef PantomimeContentDisposition
@abstract Valid modes when setting a Content-Disposition.
@discussion This enum lists the valid Content-Disposition
as stated in the RFC2183 standard.
@constant PantomimeAttachmentDisposition The part is separated from the mail body.
@constant PantomimeInlineDisposition The part is part of the mail body.
*/
typedef enum
{
PantomimeAttachmentDisposition = 1,
PantomimeInlineDisposition = 2
} PantomimeContentDisposition;
/*!
@typedef PantomimeReplyMode
@abstract Valid modes when replying to a message.
@discussion This enum lists the valid modes to be
used when replying to a message. Those
modes are to be used with CWMessage: -reply:
PantomimeSimpleReplyMode and PantomimeNormalReplyMode
can NOT be combined but can be individually combined
with PantomimeReplyAllMode.
@constant PantomimeSimpleReplyMode Reply to the sender, without a message content
@constant PantomimeNormalReplyMode Reply to the sender, with a properly build message content.
@constant PantomimeReplyAllMode Reply to all recipients.
*/
typedef enum
{
PantomimeSimpleReplyMode = 1,
PantomimeNormalReplyMode = 2,
PantomimeReplyAllMode = 4
} PantomimeReplyMode;
/*!
@typedef PantomimeRecipientType
@abstract Valid recipient types.
@discussion This enum lists the valid kind of recipients
a message can have.
@constant PantomimeToRecipient Recipient which will appear in the "To:" header value.
@constant PantomimeCcRecipient Recipient which will appear in the "Cc:" header value.
@constant PantomimeBccRecipient Recipient which will obtain a black carbon copy of the message.
@constant PantomimeResentToRecipient Recipient which will appear in the "Resent-To:" header value.
@constant PantomimeResentCcRecipient Recipient which will appear in the "Resent-Cc:" header value.
@constant PantomimeResentBccRecipient Recipient which will obtain a black carbon copy of the message
being redirected.
*/
typedef enum
{
PantomimeToRecipient = 1,
PantomimeCcRecipient = 2,
PantomimeBccRecipient = 3,
PantomimeResentToRecipient = 4,
PantomimeResentCcRecipient = 5,
PantomimeResentBccRecipient = 6
} PantomimeRecipientType;
#endif // _Pantomime_H_CWConstants
|