home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / OptionFolderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.8 KB  |  88 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    OptionFolderView.h -- class definition for OptionFolderView
  20.    Created: Dora Hsu<dora@netscape.com>, 23-Sept-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_optionfolderview_h
  26. #define _xfe_optionfolderview_h
  27.  
  28. #include "MNView.h"
  29. #include "msgcom.h"
  30. #include <Xm/Xm.h>
  31.  
  32. typedef enum
  33. {
  34.  MSG_TextEncodingNotSet = 0,
  35.  MSG_8bit = 1,
  36.  MSG_MimeCompliant
  37. }MSG_TEXT_ENCODING;
  38.  
  39. typedef enum
  40. {
  41.  MSG_BinaryEncodingNotSet = 0,
  42.  MSG_Mime = 1,
  43.  MSG_UUencode
  44. }MSG_BINARY_ENCODING;
  45.  
  46.  
  47. class XFE_OptionFolderView: public XFE_MNView
  48. {
  49.   public:
  50.     XFE_OptionFolderView(XFE_Component *toplevel_component, 
  51.                 XFE_View *parent_view,
  52.                             MSG_Pane *p = NULL, 
  53.                 MWContext *context = NULL);
  54.  
  55.     virtual ~XFE_OptionFolderView();
  56.     void    createWidgets(Widget parent);
  57.     Boolean isPrioritySelected(MSG_PRIORITY priority);
  58.     void    selectPriority(MSG_PRIORITY priority);
  59.     void    selectTextEncoding(MSG_TEXT_ENCODING priority);
  60.     void    selectBinaryEncoding(MSG_BINARY_ENCODING priority);
  61.      void     updateAllOptions();
  62.   protected:
  63.     static void     selectPriorityCallback(Widget w, XtPointer client, XtPointer);
  64.     static void     returnReceiptChangeCallback(Widget w, XtPointer client, XtPointer);
  65.     static void     encryptedChangeCallback(Widget w, XtPointer client, XtPointer);
  66.     static void     signedChangeCallback(Widget w, XtPointer client, XtPointer);
  67.     static void     selectTextEncodingCallback(Widget w, XtPointer client, XtPointer);
  68.     static void     selectBinaryEncodingCallback(Widget w, XtPointer client, XtPointer);
  69.     void handleReturnReceipt(Boolean set);
  70.     void handleEncrypted(Boolean set);
  71.     void handleSigned(Boolean set);
  72.   private:
  73.     Boolean m_bSigned;        // Not used for now
  74.     Boolean m_bEncrypted;         // Not used for now
  75.     Boolean m_bReturnReceipt;    // Not used for now
  76.     Widget  m_optionW;
  77.     Widget  m_textEncodingOptionW;
  78.     Widget  m_binaryEncodingOptionW;
  79.     Widget  m_returnReceiptW;
  80.     Widget  m_encryptedW;
  81.     Widget  m_signedW;
  82.     MSG_PRIORITY m_selectedPriority;
  83.     XFE_CALLBACK_DECL(updateSecurityOption)
  84. };
  85.  
  86. #endif
  87.  
  88.