2006-06-15 21:34:10 +02:00
|
|
|
/*
|
2017-12-23 14:59:32 +01:00
|
|
|
Copyright (C) 2005-2017 Inverse inc.
|
2006-06-15 21:34:10 +02:00
|
|
|
Copyright (C) 2004-2005 SKYRIX Software AG
|
|
|
|
|
2017-12-23 14:59:32 +01:00
|
|
|
This file is part of SOGo.
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2017-12-23 14:59:32 +01:00
|
|
|
SOGo is free software; you can redistribute it and/or modify it under
|
2006-06-15 21:34:10 +02:00
|
|
|
the terms of the GNU Lesser General Public License as published by the
|
|
|
|
Free Software Foundation; either version 2, or (at your option) any
|
|
|
|
later version.
|
|
|
|
|
2017-12-23 14:59:32 +01:00
|
|
|
SOGo is distributed in the hope that it will be useful, but WITHOUT ANY
|
2006-06-15 21:34:10 +02:00
|
|
|
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
|
2017-12-23 14:59:32 +01:00
|
|
|
License along withS OGo; see the file COPYING. If not, write to the
|
2006-06-15 21:34:10 +02:00
|
|
|
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __Mailer_UIxMailRenderingContext_H__
|
|
|
|
#define __Mailer_UIxMailRenderingContext_H__
|
|
|
|
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
#include <NGObjWeb/WOContext.h>
|
|
|
|
|
|
|
|
|
2006-06-15 21:34:10 +02:00
|
|
|
/*
|
|
|
|
UIxMailRenderingContext
|
|
|
|
|
|
|
|
The rendering context is used to track nesting of mail part viewers.
|
|
|
|
*/
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
@class NSArray;
|
|
|
|
@class NSData;
|
|
|
|
@class NSDictionary;
|
|
|
|
@class WOComponent;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@interface UIxMailRenderingContext : NSObject
|
|
|
|
{
|
|
|
|
WOComponent *viewer; /* non-retained! */
|
|
|
|
WOContext *context; /* non-retained! */
|
|
|
|
NSDictionary *flatContents; /* IMAP4 name to NSData */
|
|
|
|
}
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
- (id) initWithViewer: (WOComponent *) _viewer
|
|
|
|
context: (WOContext *) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* state */
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
- (void) reset;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* fetching */
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
- (NSDictionary *) flatContents;
|
|
|
|
- (NSData *) flatContentForPartPath: (NSArray *) _partPath;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* viewer components */
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
- (WOComponent *) viewerForBodyInfo: (id)_info;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface WOContext(UIxMailPart)
|
|
|
|
|
2007-08-01 20:54:52 +02:00
|
|
|
- (void) pushMailRenderingContext: (UIxMailRenderingContext *) _mctx;
|
|
|
|
- (UIxMailRenderingContext *) popMailRenderingContext;
|
|
|
|
- (UIxMailRenderingContext *) mailRenderingContext;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* __Mailer_UIxMailRenderingContext_H__ */
|