Update ooo320-m1
[ooovba.git] / goodies / inc / mailenum.hxx
blobcd3de017555461f0aaefcece3ce08fb16e3b09dd
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: mailenum.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _MAILENUM_HXX
31 #define _MAILENUM_HXX
33 // enum ------------------------------------------------------------------
35 enum MailState
37 MAIL_STATE_SUCCESS = 0,
38 MAIL_STATE_FAILURE,
39 MAIL_STATE_ATTACHED_NOT_FOUND,
40 MAIL_STATE_NO_MEMORY,
41 MAIL_STATE_LOGIN_FAILURE,
42 MAIL_STATE_RECEIVER_NOT_FOUND,
43 MAIL_STATE_TOO_MANY_FILES,
44 MAIL_STATE_TOO_MANY_RECEIVERS,
45 MAIL_STATE_NO_RECEIVERS,
46 MAIL_STATE_USER_CANCEL,
47 MAIL_STATE_DRIVER_NOT_AVAILABLE
50 enum MailDriver
52 MAIL_DRIVER_DETECT = 0,
53 MAIL_DRIVER_BEGIN,
54 MAIL_DRIVER_VIM = MAIL_DRIVER_BEGIN,
55 MAIL_DRIVER_MAPI,
56 MAIL_DRIVER_CMC,
57 MAIL_DRIVER_SMP,
58 MAIL_DRIVER_UNIX,
59 MAIL_DRIVER_SMTP,
60 MAIL_DRIVER_END
63 enum MailPriority
65 MAIL_PRIORITY_LOW = 0,
66 MAIL_PRIORITY_NORMAL,
67 MAIL_PRIORITY_URGENT
70 enum MailReceiverRole
72 MAIL_RECEIVER_TO = 0,
73 MAIL_RECEIVER_CC,
74 MAIL_RECEIVER_BCC,
75 MAIL_RECEIVER_NEWSGROUP
78 enum MailAction
80 MAIL_ACTION_DYING, // Server stirbt
81 MAIL_ACTION_SEND, // Mail wurde versendet
82 MAIL_ACTION_READ, // Mail wurde als gelesen gekennzeichnet
83 MAIL_ACTION_REMOVED, // Mail wurde gel"oscht
84 MAIL_ACTION_UPDATED, // alle Mails wurden neu eingelesen
85 MAIL_ACTION_NEXT, // Sprung zur n"achsten Mail
86 MAIL_ACTION_PREV // Sprung zur vorherigen Mail
89 // Textformat zum Versenden von Nachrichten ------------------------------
91 #define TXTFORMAT_ASCII ((BYTE)0x01)
92 #define TXTFORMAT_HTML ((BYTE)0x02)
93 #define TXTFORMAT_RTF ((BYTE)0x04)
94 #define TXTFORMAT_OFFICE ((BYTE)0x08)
97 #endif