xref: /AOO41X/main/svl/inc/svl/mailenum.hxx (revision 39a19a47feaddbaa21988da8c7bf801707fd3d48)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _MAILENUM_HXX
24 #define _MAILENUM_HXX
25 
26 // enum ------------------------------------------------------------------
27 
28 enum MailState
29 {
30     MAIL_STATE_SUCCESS = 0,
31     MAIL_STATE_FAILURE,
32     MAIL_STATE_ATTACHED_NOT_FOUND,
33     MAIL_STATE_NO_MEMORY,
34     MAIL_STATE_LOGIN_FAILURE,
35     MAIL_STATE_RECEIVER_NOT_FOUND,
36     MAIL_STATE_TOO_MANY_FILES,
37     MAIL_STATE_TOO_MANY_RECEIVERS,
38     MAIL_STATE_NO_RECEIVERS,
39     MAIL_STATE_USER_CANCEL,
40     MAIL_STATE_DRIVER_NOT_AVAILABLE
41 };
42 
43 enum MailDriver
44 {
45     MAIL_DRIVER_DETECT = 0,
46     MAIL_DRIVER_BEGIN,
47     MAIL_DRIVER_VIM = MAIL_DRIVER_BEGIN,
48     MAIL_DRIVER_MAPI,
49     MAIL_DRIVER_CMC,
50     MAIL_DRIVER_SMP,
51     MAIL_DRIVER_UNIX,
52     MAIL_DRIVER_SMTP,
53     MAIL_DRIVER_END
54 };
55 
56 enum MailPriority
57 {
58     MAIL_PRIORITY_LOW = 0,
59     MAIL_PRIORITY_NORMAL,
60     MAIL_PRIORITY_URGENT
61 };
62 
63 enum MailReceiverRole
64 {
65     MAIL_RECEIVER_TO = 0,
66     MAIL_RECEIVER_CC,
67     MAIL_RECEIVER_BCC,
68     MAIL_RECEIVER_NEWSGROUP
69 };
70 
71 enum MailAction
72 {
73     MAIL_ACTION_DYING,      // Server stirbt
74     MAIL_ACTION_SEND,       // Mail wurde versendet
75     MAIL_ACTION_READ,       // Mail wurde als gelesen gekennzeichnet
76     MAIL_ACTION_REMOVED,    // Mail wurde gel"oscht
77     MAIL_ACTION_UPDATED,    // alle Mails wurden neu eingelesen
78     MAIL_ACTION_NEXT,       // Sprung zur n"achsten Mail
79     MAIL_ACTION_PREV        // Sprung zur vorherigen Mail
80 };
81 
82 // Textformat zum Versenden von Nachrichten ------------------------------
83 
84 #define TXTFORMAT_ASCII     ((sal_uInt8)0x01)
85 #define TXTFORMAT_HTML      ((sal_uInt8)0x02)
86 #define TXTFORMAT_RTF       ((sal_uInt8)0x04)
87 #define TXTFORMAT_OFFICE    ((sal_uInt8)0x08)
88 
89 
90 #endif
91 
92