home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsCacheMore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  73 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. /*
  20.    PrefsCacheMore.h -- Cache "more" preference dialog 
  21.    Created: Linda Wei <lwei@netscape.com>, 04-Dec-96.
  22.  */
  23.  
  24.  
  25. #ifndef _xfe_prefscachemore_h
  26. #define _xfe_prefscachemore_h
  27.  
  28. #include "Dialog.h"
  29. #include "PrefsDialog.h"
  30.  
  31. struct PrefsDataCacheMore
  32. {
  33.     MWContext *context;
  34. };
  35.  
  36. class XFE_PrefsCacheMoreDialog : public XFE_Dialog
  37.  
  38. {
  39. public:
  40.  
  41.     // Constructors, Destructors
  42.  
  43.     XFE_PrefsCacheMoreDialog(XFE_PrefsDialog *prefsDialog,
  44.                              Widget           parent,    
  45.                              char            *name,  
  46.                              Boolean          modal = TRUE);
  47.  
  48.     virtual ~XFE_PrefsCacheMoreDialog();
  49.  
  50.     virtual void show();                // pop up dialog
  51.     void initPage();                    // initialize dialog
  52.     Boolean verifyPage();               // verify page
  53.     void installChanges();              // install changes
  54.     MWContext *getContext();            // return the context
  55.  
  56.     // Callbacks
  57.  
  58.     friend void prefsCacheMoreCb_ok(Widget, XtPointer, XtPointer);
  59.     friend void prefsCacheMoreCb_cancel(Widget, XtPointer, XtPointer);
  60.     friend void prefsCacheMoreCb_clearDisk(Widget, XtPointer, XtPointer);
  61.     friend void prefsCacheMoreCb_clearMem(Widget, XtPointer, XtPointer);
  62.  
  63. private:
  64.  
  65.     // User data
  66.  
  67.     XFE_PrefsDialog              *m_prefsDialog;
  68.     PrefsDataCacheMore           *m_prefsDataCacheMore;
  69. };
  70.  
  71. #endif /* _xfe_prefssslconfig_h */
  72.  
  73.