ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
tc
envelope.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
23
/* */
24
25
#ifndef ENVELOPE_H
26
#define ENVELOPE_H
27
28
#include <
tccore/workspaceobject.h
>
29
44
typedef
struct
MAIL_message_s
45
{
46
tag_t
tag
;
47
const
char
*
from_user
;
48
const
char
*
to_user
;
49
const
char
*
subject
;
50
const
char
*
text
;
51
logical
is_Cc_recipient
;
52
}
MAIL_message_t
;
53
54
typedef
int (*
MAIL_send_callback_t
) (
MAIL_message_t
message );
55
56
typedef
enum
MAIL_callback_position_e
57
{
58
MAIL_replaced_callback
,
59
MAIL_before_callback
,
60
MAIL_after_callback
61
}
MAIL_callback_position_t
;
62
63
typedef
enum
MAIL_to_or_cc_e
64
{
65
MAIL_send_to
,
66
MAIL_send_cc
67
}
MAIL_to_or_cc_t
;
68
69
#include <tc/libtc_exports.h>
70
71
#ifdef __cplusplus
72
extern
"C"
{
73
#endif
74
75
extern
TC_API
int
MAIL_envelope_extent
(
76
int
* n_instances,
77
tag_t
** instances
78
);
79
88
extern
TC_API
int
MAIL_create_envelope
(
89
const
char
subject[
WSO_name_size_c
+ 1],
90
const
char
comments[
WSO_desc_size_c
+ 1],
91
tag_t
* envelope
92
);
93
101
extern
TC_API
int
MAIL_initialize_envelope
(
102
tag_t
envelope,
103
const
char
subject[
WSO_name_size_c
+ 1],
104
const
char
comments[
WSO_desc_size_c
+ 1]
105
);
106
111
extern
TC_API
int
MAIL_initialize_envelope2
(
112
tag_t
envelope,
113
const
char
*subject,
114
const
char
*comments
115
);
116
121
extern
TC_API
int
MAIL_add_envelope_receiver
(
122
tag_t
envelope,
123
tag_t
receiver
124
);
125
130
extern
TC_API
int
MAIL_add_envelope_cc_receiver
(
131
tag_t
envelope,
132
tag_t
ccReceiver
133
);
134
138
extern
TC_API
int
MAIL_list_envelope_receivers
(
139
tag_t
envelope,
140
int
* count,
141
tag_t
** receivers
142
);
143
147
extern
TC_API
int
MAIL_list_envelope_to_receivers
(
148
tag_t
envelope,
149
int
* count,
150
tag_t
** receivers
151
);
152
156
extern
TC_API
int
MAIL_list_envelope_cc_receivers
(
157
tag_t
envelope,
158
int
* count,
159
tag_t
** ccReceivers
160
);
161
170
extern
TC_API
int
MAIL_send_envelope
(
171
tag_t
envelope
172
);
173
189
extern
TC_API
int
MAIL_register_send_callback
(
190
MAIL_send_callback_t
function_pointer,
191
MAIL_callback_position_t
position
192
);
193
201
extern
TC_API
int
MAIL_add_external_receiver
(
202
tag_t
envelope,
203
MAIL_to_or_cc_t
to_or_cc,
204
char
* receiver
205
);
206
209
#ifdef __cplusplus
210
}
211
#endif
212
213
#include <tc/libtc_undef.h>
214
215
#endif