Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

defines.h

Go to the documentation of this file.
00001 #ifndef DEFINE_CONSTANTS_H
00002 #define DEFINE_CONSTANTS_H
00003 
00004 #include <opie2/oresource.h>
00005 using namespace Opie::Core;
00006 
00007 #define USER_AGENT          "OpieMail v0.3"
00008 
00009 #define PIC_COMPOSEMAIL     "mail/composemail"
00010 #define PIC_SENDQUEUED      "mail/sendqueued"
00011 #define PIC_SHOWFOLDERS     "mail/showfolders"
00012 #define PIC_SYNC            "mail/sync"
00013 #define PIC_IMAPFOLDER      "mail/imapfolder"
00014 #define PIC_MBOXFOLDER      "mail/mboxfolder"
00015 #define PIC_POP3FOLDER      "mail/pop3folder"
00016 #define PIC_INBOXFOLDER     "mail/inbox"
00017 #define PIC_OUTBOXFOLDER    "mail/outbox"
00018 #define PIC_LOCALFOLDER     "mail/localfolder"
00019 
00020 #define PIC_OFFLINE         "mail/notconnected"
00021 #define PIC_DOCUMENT        "DocsIcon"
00022 
00023 #define ICON_COMPOSEMAIL    QIconSet( OResource::loadPixmap( PIC_COMPOSEMAIL, OResource::SmallIcon ) )
00024 #define ICON_SENDQUEUED     QIconSet( OResource::loadPixmap( PIC_SENDQUEUED, OResource::SmallIcon ) )
00025 #define ICON_SHOWFOLDERS    QIconSet( OResource::loadPixmap( PIC_SHOWFOLDERS, OResource::SmallIcon ) )
00026 #define ICON_SEARCHMAILS    QIconSet( OResource::loadPixmap( PIC_SEARCHMAILS, OResource::SmallIcon ) )
00027 #define ICON_EDITSETTINGS   QIconSet( OResource::loadPixmap( PIC_EDITSETTINGS, OResource::SmallIcon ) )
00028 #define ICON_EDITACCOUNTS   QIconSet( OResource::loadPixmap( PIC_EDITACCOUNTS, OResource::SmallIcon ) )
00029 #define ICON_SYNC           QIconSet( OResource::loadPixmap( PIC_SYNC, OResource::SmallIcon ) )
00030 #define ICON_READMAIL       QIconSet( OResource::loadPixmap( PIC_DOCUMENT, OResource::SmallIcon) )
00031 
00032 #define PIXMAP_IMAPFOLDER   QPixmap( OResource::loadPixmap( PIC_IMAPFOLDER, OResource::SmallIcon ) )
00033 #define PIXMAP_POP3FOLDER   QPixmap( OResource::loadPixmap( PIC_POP3FOLDER, OResource::SmallIcon ) )
00034 #define PIXMAP_INBOXFOLDER  QPixmap( OResource::loadPixmap( PIC_INBOXFOLDER, OResource::SmallIcon ) )
00035 #define PIXMAP_MBOXFOLDER   QPixmap( OResource::loadPixmap( PIC_MBOXFOLDER, OResource::SmallIcon ) )
00036 #define PIXMAP_OUTBOXFOLDER QPixmap( OResource::loadPixmap( PIC_OUTBOXFOLDER, OResource::SmallIcon ) )
00037 #define PIXMAP_LOCALFOLDER  QPixmap( OResource::loadPixmap( PIC_LOCALFOLDER, OResource::SmallIcon ) )
00038 #define PIXMAP_OFFLINE      QPixmap( OResource::loadPixmap( PIC_OFFLINE, OResource::SmallIcon ) )
00039 
00040 #define IMAP_PORT           "143"
00041 #define IMAP_SSL_PORT       "993"
00042 #define SMTP_PORT           "25"
00043 #define SMTP_SSL_PORT       "465"
00044 #define POP3_PORT           "110"
00045 #define POP3_SSL_PORT       "995"
00046 #define NNTP_PORT           "119"
00047 #define NNTP_SSL_PORT       "563"
00048 
00049 /* used for decoding imapfoldername */
00050 #define UNDEFINED 64
00051 #define MAXLINE  76
00052 #define UTF16MASK       0x03FFUL
00053 #define UTF16SHIFT      10
00054 #define UTF16BASE       0x10000UL
00055 #define UTF16HIGHSTART  0xD800UL
00056 #define UTF16HIGHEND    0xDBFFUL
00057 #define UTF16LOSTART    0xDC00UL
00058 #define UTF16LOEND      0xDFFFUL
00059 
00060 /* used for making menuids transparent */
00061 #define FOLDER_MENU_REFRESH_HEADER 0
00062 #define FOLDER_MENU_DELETE_ALL_MAILS 1
00063 #define FOLDER_MENU_NEW_SUBFOLDER 2
00064 #define FOLDER_MENU_DELETE_FOLDER 3
00065 #define FOLDER_MENU_MOVE_MAILS 4
00066 
00067 #define SERVER_MENU_DISCONNECT 5
00068 #define SERVER_MENU_OFFLINE 6
00069 #define SERVER_MENU_REFRESH_FOLDER 7
00070 #define SERVER_MENU_CREATE_FOLDER 8
00071 #define SERVER_MENU_SUBSCRIBE 9
00072 
00073 #endif

Generated on Sat Nov 5 16:17:36 2005 for OPIE by  doxygen 1.4.2