blob: d4a189aaccf3286dc63135a4606a32ef467dbbb7 (
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
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* This interface is implemented by libmime. This interface is used by
* a Content-Type handler "Plug In" (i.e. vCard) for accessing various
* internal information about the object class system of libmime. When
* libmime progresses to a C++ object class, this would probably change.
*/
#ifndef nsMimeObjectClassAccess_h_
#define nsMimeObjectClassAccess_h_
#include "mozilla/Attributes.h"
#include "nsISupports.h"
#include "nsIMimeObjectClassAccess.h"
class nsMimeObjectClassAccess : public nsIMimeObjectClassAccess {
public:
nsMimeObjectClassAccess();
/* this macro defines QueryInterface, AddRef and Release for this class */
NS_DECL_ISUPPORTS
// These methods are all implemented by libmime to be used by
// content type handler plugins for processing stream data.
// This is the write call for outputting processed stream data.
NS_IMETHOD MimeObjectWrite(void *mimeObject,
char *data,
int32_t length,
bool user_visible_p) override;
// The following group of calls expose the pointers for the object
// system within libmime.
NS_IMETHOD GetmimeInlineTextClass(void **ptr) override;
NS_IMETHOD GetmimeLeafClass(void **ptr) override;
NS_IMETHOD GetmimeObjectClass(void **ptr) override;
NS_IMETHOD GetmimeContainerClass(void **ptr) override;
NS_IMETHOD GetmimeMultipartClass(void **ptr) override;
NS_IMETHOD GetmimeMultipartSignedClass(void **ptr) override;
NS_IMETHOD GetmimeEncryptedClass(void **ptr) override;
NS_IMETHOD MimeCreate(char *content_type, void * hdrs,
void * opts, void**ptr) override;
private:
virtual ~nsMimeObjectClassAccess();
};
#endif /* nsMimeObjectClassAccess_h_ */
|